/* ================================================================
   JVMH | pages du nouveau design dans Elementor
   Les conteneurs (.hp-c) et widgets Elementor deviennent « transparents » :
   la mise en page vient des classes du design (site.css + hp.css), comme sur la version thème.
   ================================================================ */
.elementor .e-con.hp-c,.e-con.hp-c{
  --padding-top:0;--padding-right:0;--padding-bottom:0;--padding-left:0;
  --margin-top:0;--margin-right:0;--margin-bottom:0;--margin-left:0;
  --margin-block-start:0;--margin-block-end:0;--margin-inline-start:0;--margin-inline-end:0;
  --gap:0;--row-gap:0;--column-gap:0;--widgets-spacing:0;--widgets-spacing-row:0;--widgets-spacing-column:0;
  --width:auto;--min-height:0;--content-width:none;--container-max-width:none;
  min-width:0;max-width:none;width:auto;border:0
}
/* flux de texte ou colonnes : affichage bloc */
.elementor .e-con.hp-c.hp-wall,.elementor .e-con.hp-c.hp-article,.elementor .e-con.hp-c.chap-body,.elementor .e-con.hp-c.hp-zone2-copy{display:block}
/* les classes du design reprennent la main sur l'affichage et les marges */
.e-con.hp-c.wrap{padding:0 var(--gutter);max-width:var(--maxw);margin:0 auto;width:100%}
.e-con.hp-c.sec,.e-con.hp-c.hp-read,.e-con.hp-c.hp-zone2{padding-block:clamp(84px,11vw,150px)}
.e-con.hp-c.hp-hero{padding-top:calc(84px + clamp(40px,5vw,72px))}
.e-con.hp-c.hp-wall-sec,.e-con.hp-c.hp-posts{padding-top:0}
.e-con.hp-c.hp-vhero,.e-con.hp-c.mp-hero{display:flex}
.e-con.hp-c.hp-vhero{min-height:min(92svh,900px);flex-direction:row;align-items:flex-end}
.e-con.hp-c.hp-vhero-in{padding-bottom:clamp(56px,9vh,110px)}
.e-con.hp-c.grid,.e-con.hp-c.collage,.e-con.hp-c.bento,.e-con.hp-c.hp-read-grid,.e-con.hp-c.hp-zone2-grid,.e-con.hp-c.hp-legal-grid,.e-con.hp-c.hp-posts-grid,.e-con.hp-c.hp-bento{display:grid}
.e-con.hp-c.hp-ctas{display:flex}
.e-con.hp-c.method .pin{display:flex}
.e-con.hp-c > .e-con-inner{display:contents}

/* widgets : l'enveloppe d'Elementor n'intervient pas dans la mise en page */
:where(.hp-c > .elementor-widget){margin-block-end:0;padding:0;width:auto;max-width:none}
.hp-c > .elementor-widget:not(:last-child){margin-block-end:0}
/* les enveloppes qui portent une classe du design gardent ses espacements */
.hp-c > .elementor-widget.hp-ctas{gap:12px;margin-top:34px}
.hp-hero .hp-c > .elementor-widget.hp-ctas,.hp-vhero .hp-c > .elementor-widget.hp-ctas{margin-top:34px}
.hp-c > .elementor-widget > .elementor-widget-container{display:contents}
.hp-c .elementor-widget-text-editor{color:inherit;font:inherit}
.hp-c .elementor-widget-text-editor p:last-child{margin-bottom:0}
.hp-c .elementor-widget-image{overflow:hidden;text-align:initial}
.hp-c .elementor-widget-image img{display:block;width:100%;height:100%;object-fit:cover;max-width:none;border-radius:0}
.hp-c .elementor-widget-image a{display:contents}
.hp-c .elementor-widget-html,.hp-c .elementor-widget-shortcode{min-width:0}
.hp-c .elementor-shortcode{display:contents}
.hp-fill{display:contents;color:inherit}
.elementor-widget-shortcode.hp-short > .elementor-widget-container,.elementor-widget-shortcode.hp-short .elementor-shortcode{display:contents}

/* éléments d'origine devenus des enveloppes Elementor (figures du collage, du bento, cartes) */
.collage > .elementor-widget-image,.bento > .elementor-widget-image{position:relative;overflow:hidden;background:var(--surface-2)}
.bento > .elementor-widget-html{position:relative;overflow:hidden}
.offer .media.elementor-widget-image,.hp-cover.elementor-widget-image,.hp-legal-pic.elementor-widget-image{overflow:hidden}
.hp-wall .elementor-widget-image{break-inside:avoid;margin:0 0 16px!important;cursor:zoom-in}
.hp-wall .elementor-widget-image img{height:auto;object-fit:initial}
.bento .t4.elementor-widget-html{display:flex;flex-direction:column;justify-content:space-between}
.bento .t7.elementor-widget-html{display:flex;align-items:center;justify-content:space-between}

/* éditeur Elementor : pas d'animations d'apparition qui cacheraient le contenu */
.elementor-editor-active .rv-up{opacity:1!important;transform:none!important}
.elementor-editor-active .reveal-img{clip-path:none!important}

/* éléments positionnés du design : la règle d'Elementor (position:relative) ne doit pas l'emporter */
html body .hp-c > .elementor-widget.hp-vhero-bg,html body .hp-c > .elementor-widget.hp-vhero-scrim,html body .hp-c > .elementor-widget.bgimg{position:absolute;inset:0}
html body .hp-c > .elementor-widget.hp-vhero-bg img{width:100%;height:100%;object-fit:cover}

/* réglages par défaut d'Elementor neutralisés (affichage, direction, alignements) : le CSS du design décide.
   Spécificité élevée : Elementor les réécrit bloc par bloc dans son CSS de page. */
html body .elementor .e-con.hp-c.hp-c{--display:block;--flex-direction:row;--flex-wrap:nowrap;--align-items:normal;--justify-content:normal;--align-content:normal;--align-self:auto;--flex-grow:0;--flex-shrink:1;--flex-basis:auto;--order:initial;--overflow:visible}
/* @alias-figure */
html body .mega-pres .elementor-widget-image{aspect-ratio:16/10;overflow:hidden}
html body .mega-pres .elementor-widget-image img{width:100%;height:100%;object-fit:cover}
html body .collage .elementor-widget-image{overflow:hidden;background:var(--surface-2)}
html body .why .elementor-widget-image{overflow:hidden;aspect-ratio:16/10;background:var(--surface-2)}
html body .why .elementor-widget-image img{width:100%;height:100%;object-fit:cover}
html body .hp-article .elementor-widget-image{margin:44px 0;overflow:hidden;background:var(--surface-2)}
html body .hp-article .elementor-widget-image.one{aspect-ratio:16/10}
html body .hp-article .elementor-widget-image img{width:100%;height:100%;object-fit:cover}
html body .hp-article .pgal .elementor-widget-image{margin:0;aspect-ratio:4/5;cursor:zoom-in}
html body .hp-article .pgal .elementor-widget-image:first-child:nth-last-child(odd){grid-column:1/-1;aspect-ratio:16/10}
html body .hp-chaps .chap-body .elementor-widget-image{margin:40px 0 0;overflow:hidden;background:var(--surface-2)}
html body .hp-chaps .chap-body .elementor-widget-image.one{aspect-ratio:16/10}
html body .hp-chaps .chap-body .elementor-widget-image img{width:100%;height:100%;object-fit:cover}
html body .hp-chaps .chap-body .pgal .elementor-widget-image{margin:0;aspect-ratio:4/5;cursor:zoom-in}
html body .hp-chaps .chap-plain .chap-body .elementor-widget-image.one{aspect-ratio:21/9}
html body .hp-wall .elementor-widget-image{break-inside:avoid;margin:0 0 16px;overflow:hidden;background:var(--surface-2);cursor:zoom-in}
html body .hp-wall .elementor-widget-image:hover img{transform:scale(1.04)}
html body .hp-wall .elementor-widget-image.more{display:none}
html body .hp-wall-sec.all .hp-wall .elementor-widget-image.more{display:block}
html body .hp-article .elementor-widget-image.in{margin:40px 0;overflow:hidden}
html body .hp-article .elementor-widget-image.in img{width:100%;height:auto}
