/* Prépsy native editorial archetype (Gutenberg + public) — scoped and script-free.
   Deliberately use the same CSS inside the editor canvas and public template.
   Hero animation repeats the 40-second original Elementor oscillation,
   using only the original 8 KB PNG and <1 KB SVG theme media assets. */
:where(.prepsy-editorial-template#content,.editor-styles-wrapper .is-root-container,.prepsy-editorial-template .prepsy-editorial-native,.editor-styles-wrapper .prepsy-editorial-native) {
 --pe-primary:#0047d8; --pe-secondary:#4c91ff; --pe-ink:#0c2a48;
 --pe-soft:#eff5fe; --pe-grey:#eff1f6; --pe-edge:#d9e6f5;
 font-family:Poppins,system-ui,sans-serif; font-size:16px;
 line-height:1.62; color:var(--pe-ink);
 background:#fff; width:100%; max-width:none; margin:0; padding:0;
 box-sizing:border-box;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-native *,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-native *::before,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-native *::after {box-sizing:border-box;}
.prepsy-editorial-template#content,.prepsy-editorial-template#content .prepsy-editorial-native,
.prepsy-editorial-template#content > .page-content {max-width:none;width:100%;padding:0;margin:0;}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-native a {color:var(--pe-primary);}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-native a:focus-visible {outline:3px solid #1764eb;outline-offset:3px;}
/* Hero uses the original light ring background and oscillating ellipse,
   but not the legacy global .bg-animated-blue class or Elementor CSS. */
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero {
 isolation:isolate;position:relative;overflow:hidden;
 width:100%;max-width:none;margin:0;padding:140px 24px 76px;
 background-color:#fff;
 background-image:url('https://prepsy.fr/wp-content/uploads/2024/11/Vector-2.svg');
 background-repeat:no-repeat;background-size:min(75vw,960px) auto;background-position:right top;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero::before {
 content:"";position:absolute;z-index:-1;pointer-events:none;
 width:200vw;height:180vh;top:-70vh;left:-85vw;
 background:url('https://prepsy.fr/wp-content/uploads/2024/10/elypse-be-full-size.png') center/contain no-repeat;
 animation:prepsy-editorial-oscillate 40s ease-in-out infinite;
}
@keyframes prepsy-editorial-oscillate {
 0%,100%{transform:rotate(0deg)}
 50%{transform:rotate(45deg)}
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero-inner {
 width:min(100%,1080px);margin:0 auto;max-width:1080px;position:relative;z-index:1;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-breadcrumbs {
 font-size:13px;color:var(--pe-secondary);margin:0 0 24px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-breadcrumbs a {color:var(--pe-secondary);text-decoration:none;}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-chips {
 display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-chip {
 display:inline-flex;align-items:center;min-height:32px;padding:3px 13px;
 border:1px solid #84b0ff;border-radius:25px;color:var(--pe-secondary);
 background:rgba(255,255,255,.58);font-size:13px;font-weight:500;line-height:1.35;
 margin:0;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-overline {
 color:var(--pe-secondary);font-size:24px;font-weight:400;margin:12px 0 0;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero h1 {
 font-family:inherit;font-weight:700;letter-spacing:-.025em;
 color:var(--pe-primary);font-size:clamp(40px,5vw,64px);line-height:1.16;
 margin:0 0 100px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero-image {
 width:min(100%,960px);max-width:960px;margin:0;position:relative;z-index:1;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero-image img {
 display:block;width:100%;height:auto;aspect-ratio:1200/500;object-fit:cover;
 border-radius:14px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-social {
 position:absolute;right:0;bottom:90px;z-index:2;display:flex;
 flex-direction:column;gap:16px;list-style:none;margin:0;padding:0;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-social a {
 background:#eff4ff;color:var(--pe-primary);border-radius:50%;
 display:flex;align-items:center;justify-content:center;
 width:34px;height:34px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-social svg {fill:var(--pe-primary);}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-body {
 width:min(100% - 36px,960px);max-width:960px;margin:0 auto 55px;
 padding:4px 0 0;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-body h2 {
 font-family:inherit;font-size:clamp(25px,2.9vw,31px);
 line-height:1.29;font-weight:700;letter-spacing:-.01em;color:var(--pe-primary);
 margin:37px 0 18px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-body p,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-body li {
 color:var(--pe-ink);font-size:16px;line-height:1.7;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-body p {margin:0 0 19px;}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-body ul {list-style:disc;margin:4px 0 16px;padding-left:23px;}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-body li {padding-left:3px;margin:0 0 7px;}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-symptoms-cta {
 display:flex;justify-content:center;margin:70px 0 58px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-native a.wp-block-button__link {
 color:#fff;background:var(--pe-primary);
 font-family:inherit;font-weight:600;font-size:15px;text-decoration:none;
 border-radius:24px;display:inline-flex;align-items:center;justify-content:center;
 min-height:44px;padding:10px 25px;line-height:1.4;
 border:1px solid var(--pe-primary);
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-native a.wp-block-button__link:hover {
 color:var(--pe-primary);background:#fff;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-contact {
 background:#244462;color:#fff;width:100%;max-width:none;
 margin:0;padding:54px 24px 70px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-contact-inner {
 max-width:960px;width:100%;margin:0 auto;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-contact h2 {
 color:#fff;text-align:center;font-family:inherit;
 font-size:clamp(24px,3vw,31px);font-weight:700;
 line-height:1.3;margin:0 0 33px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-contact .wp-block-shortcode {color:#fff;}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-contact label,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-contact .forminator-label {color:#fff;}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-related {
 width:100%;max-width:none;background:#f8f9fd;
 padding:66px 24px 86px;margin:0;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-related-inner {max-width:1100px;width:100%;margin:auto;}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-related h2 {
 color:var(--pe-primary);font-size:clamp(25px,3vw,30px);
 line-height:1.28;font-weight:700;text-align:center;margin:0 0 40px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query ul.wp-block-post-template {
 list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:30px;margin:0;padding:0;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query li.wp-block-post {
 margin:0;padding:0;list-style:none;min-width:0;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query figure.wp-block-post-featured-image {
 margin:0 0 14px;overflow:hidden;border-radius:20px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query figure.wp-block-post-featured-image img {
 width:100%;height:200px;object-fit:cover;display:block;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query .wp-block-post-title {
 color:var(--pe-primary);font-size:20px;line-height:1.35;
 font-weight:600;text-align:left;margin:0 0 13px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query .wp-block-post-title a {color:inherit;text-decoration:none;}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query .wp-block-post-excerpt {
 color:var(--pe-ink);font-size:15px;line-height:1.55;margin:0;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query .wp-block-post-excerpt__excerpt {
 margin:0 0 15px;font-size:inherit;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query .wp-block-post-excerpt__more-link {
 font-size:14px;text-decoration:underline;color:var(--pe-primary);
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-all-posts {margin:55px 0 0;justify-content:flex-start;}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-all-posts a.wp-block-button__link {
 background:transparent;color:var(--pe-primary);border-color:#8cb2ff;
}
@media(max-width:1024px){
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero {padding-top:40px;background-size:92vw auto;}
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero::before {top:-65vh;left:-70vw;width:160vw;height:170vh;}
}
/* At tablet widths the native header is in-flow (20px top margin +
   68px toolbar). Paint the Hero behind it without moving breadcrumb/content.
   Unlike the editor canvas, the public template actually has that header. */
@media (min-width:701px) and (max-width:1024px) {
 .prepsy-editorial-template .prepsy-editorial-hero {
  margin-top:-88px;
  padding-top:128px;
 }
}
@media(max-width:700px){
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero {padding:35px 18px 35px;background-size:90vw auto;}
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero h1 {margin-bottom:45px;}
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-social {
  position:static;display:flex;flex-direction:row;justify-content:center;margin:20px 0 0;gap:17px;
 }
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-breadcrumbs {display:none;}
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-body {width:min(100% - 34px,960px);}
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-symptoms-cta {margin:45px 0;}
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-contact {padding:45px 18px 50px;}
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-related {padding:54px 18px 62px;}
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query ul.wp-block-post-template {grid-template-columns:1fr;gap:34px;}
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-query figure.wp-block-post-featured-image img {height:auto;aspect-ratio:1.8;object-fit:cover;}
}
@media(prefers-reduced-motion:reduce) {
 :where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero::before {animation:none;}
}
/* Page layout contract shared by the public template and Gutenberg canvas.
   A full-width section spans the page; its inner constrained layout determines
   the readable content width. Native Group alignment remains the source of truth. */
:where(.prepsy-editorial-template#content,.editor-styles-wrapper .is-root-container)
> :is(.wp-block-group.alignfull,.wp-block-group.prepsy-editorial-hero,
      .wp-block-group.prepsy-editorial-related,.wp-block-group.prepsy-editorial-contact,
      .wp-block-group.prepsy-editorial-native) {
 width:100%!important;max-width:none!important;margin-inline:0!important;
}
/* Root-level atomic blocks without a Section use the theme's native readable
   content size, consistently on the public page and in the editor. */
:where(.prepsy-editorial-template#content,.editor-styles-wrapper .is-root-container)
> :is(.wp-block-heading,p,.wp-block-list,.wp-block-quote,.wp-block-table,
      .wp-block-columns):not(.alignfull):not(.alignwide) {
 box-sizing:border-box;
 width:calc(100% - 36px);
 max-width:var(--wp--style--global--content-size,800px);margin-inline:auto;
}
/* Gutenberg's iframe adds a constrained root wrapper absent on the public
   template. This adapter only removes that editor chrome constraint; all
   visual styles above remain shared and are not duplicated. */
.editor-styles-wrapper .is-root-container {
 max-width:none!important;width:100%!important;padding:0!important;
}
.editor-styles-wrapper .prepsy-editorial-hero .block-editor-inner-blocks,
.editor-styles-wrapper .prepsy-editorial-hero .block-editor-block-list__layout {position:relative;}
.editor-styles-wrapper .prepsy-editorial-query .wp-block-post-template__layout {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;}


/* The animated/static hero styles are selectable even on a fresh Group.
   The existing V2 pattern keeps its original layout and art. */
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-hero-anime,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-hero-statique {
  position:relative;isolation:isolate;overflow:hidden;
  background-image:url('https://prepsy.fr/wp-content/uploads/2024/11/Vector-2.svg');
  background-repeat:no-repeat;background-position:right top;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-hero-anime::before,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-hero-statique::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;
  top:-70vh;left:-85vw;width:200vw;height:180vh;
  background:url('https://prepsy.fr/wp-content/uploads/2024/10/elypse-be-full-size.png') center/contain no-repeat;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-hero-anime::before {
  animation:prepsy-editorial-oscillate 40s ease-in-out infinite;
}

/* Visual choices exposed through the Block sidebar Styles panel.
   A style variant changes a class, not an opaque hand-entered CSS rule. */
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-hero.is-style-prepsy-hero-statique::before {
  animation:none;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-info,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-attention {
  border-radius:16px;padding:24px 28px;margin-block:24px;
  color:#0c2a48;max-width:960px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-info {
  background:#e9f1ff;border:1px solid #adcfff;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-attention {
  background:#fff3d8;border:1px solid #f2ae2f;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-info h2,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-info h3,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-attention h2,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-attention h3 {
  font-size:22px;line-height:1.3;color:#0047d8;margin:0 0 10px;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-info p,
:where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-attention p {
  margin:0;line-height:1.65;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-native .wp-block-button.is-style-prepsy-contour a.wp-block-button__link {
  color:#0047d8;background:transparent;border:1px solid #8cb2ff;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper) .prepsy-editorial-native .wp-block-button.is-style-prepsy-principal a.wp-block-button__link {
  color:white;background:#0047d8;border-color:#0047d8;
}
/* The actual Forminator form is rendered on the public page. In Gutenberg
   show a clear editing placeholder rather than pretending to emulate its JS. */
.editor-styles-wrapper .prepsy-editorial-contact .wp-block-shortcode {
  background:#fff;border-radius:12px;border:1px dashed #adcfff;
  padding:16px;margin:14px 0;color:#0c2a48;
}
.editor-styles-wrapper .prepsy-editorial-contact .wp-block-shortcode::before {
  content:"Formulaire de contact Prépsy — modifier dans Forminator #16502";
  display:block;font-weight:600;font-size:14px;line-height:1.5;
  color:#0047d8;margin:0 0 9px;
}

@media(prefers-reduced-motion:reduce){
  :where(.prepsy-editorial-template,.editor-styles-wrapper) .wp-block-group.is-style-prepsy-hero-anime::before {
    animation:none;
  }
}

/* Atomic native sections: combine with any core Heading, Paragraph, Image,
   Columns or Buttons. Same stylesheet in Gutenberg and on the public page.
   Tokens come from theme.json, not a second palette. */
:where(.prepsy-editorial-template,.editor-styles-wrapper)
.wp-block-group:is(.is-style-prepsy-section-blanche,.is-style-prepsy-section-brume,.is-style-prepsy-section-bleue) {
  box-sizing:border-box;
  width:100%;max-width:none;margin-block:0;
  padding:clamp(40px,6vw,76px) clamp(18px,3vw,36px);
  color:var(--wp--preset--color--prepsy-ink,#0c2a48);
}
:where(.prepsy-editorial-template,.editor-styles-wrapper)
.wp-block-group.is-style-prepsy-section-blanche {
  background-color:var(--wp--preset--color--prepsy-white,#fff);
}
:where(.prepsy-editorial-template,.editor-styles-wrapper)
.wp-block-group.is-style-prepsy-section-brume {
  background-color:var(--wp--preset--color--prepsy-mist,#e9f1ff);
}
:where(.prepsy-editorial-template,.editor-styles-wrapper)
.wp-block-group.is-style-prepsy-section-bleue {
  background-color:var(--wp--preset--color--prepsy-primary,#0047d8);
  color:var(--wp--preset--color--prepsy-white,#fff);
}
/* Section titles/text inherit the section color by default.
   Explicit editor text-color choices retain precedence. */
:where(.prepsy-editorial-template,.editor-styles-wrapper)
.wp-block-group:is(.is-style-prepsy-section-blanche,.is-style-prepsy-section-brume,.is-style-prepsy-section-bleue)
:is(.wp-block-heading,p):not(.has-text-color) {
  color:inherit;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper)
.wp-block-group:is(.is-style-prepsy-section-blanche,.is-style-prepsy-section-brume)
h2.wp-block-heading:not(.has-text-color) {
  color:var(--wp--preset--color--prepsy-primary,#0047d8);
}
:where(.prepsy-editorial-template,.editor-styles-wrapper)
.wp-block-group:is(.is-style-prepsy-section-blanche,.is-style-prepsy-section-brume,.is-style-prepsy-section-bleue)
h2.wp-block-heading {
  font-family:inherit;font-weight:700;
  font-size:clamp(25px,2.9vw,31px);line-height:1.29;
}
:where(.prepsy-editorial-template,.editor-styles-wrapper)
.wp-block-group.is-style-prepsy-section-bleue a:not(.wp-block-button__link) {
  color:inherit;text-decoration:underline;
}
