/* Page builder: the layout blocks (Section, Marge, Image + contenu) and the site's look for the core blocks (titles, texts, buttons, columns, images).
   Loaded on the site and in the editor. Defaults sit in :where() so a choice made in the editor (size, font, colour) or a module's own rule always wins. */

/* Section: ground, spacing above and below, gap between its blocks */
.me-section{position:relative}
.fond-blanc{background:var(--blanc)}
.fond-beige{background:var(--craie)}
.fond-nuit{background:var(--nuit);color:#fff}
.fond-corail{background:var(--corail);color:var(--nuit)}
.haut-grand{padding-top:clamp(80px,9.7vw,140px)}.bas-grand{padding-bottom:clamp(80px,9.7vw,140px)}
.haut-moyen{padding-top:clamp(50px,5.6vw,80px)}.bas-moyen{padding-bottom:clamp(50px,5.6vw,80px)}
.haut-petit{padding-top:40px}.bas-petit{padding-bottom:40px}
.haut-aucun{padding-top:0}.bas-aucun{padding-bottom:0}
.has-y{overflow:clip}
.me-y{position:absolute;right:3%;top:0;height:100%;width:auto;aspect-ratio:135.28/136.9;color:rgba(2,50,65,.05);pointer-events:none}  /* the Y fills the band's height */
.fond-nuit .me-y{color:rgba(255,255,255,.06)}.fond-corail .me-y{color:rgba(255,255,255,.14)}
.has-y>.me-stack{position:relative}

/* stacks: the blocks of a Section, a Marge or the text half of Image + contenu, one under the other */
.me-stack{display:flex;flex-direction:column;gap:var(--gap,30px);min-width:0}
.me-stack>*{margin-block:0!important}
.gap-20{--gap:20px}.gap-30{--gap:30px}.gap-60{--gap:clamp(40px,4.2vw,60px)}.gap-120{--gap:clamp(60px,8.3vw,120px)}

/* Marge: side margins (.wrap) and a width on the 12-column grid (span n = n columns + n-1 gutters of 1320) */
.me-marge>.inner{width:100%}
.me-marge>.pos-gauche{margin-left:0}
.me-marge>.pos-centre{margin-inline:auto}
.w-10{max-width:83.08%}.w-8{max-width:66.16%}.w-6{max-width:49.24%}
@media (max-width:980px){.w-10,.w-8,.w-6{max-width:none}}

/* Image + contenu */
.me-moitie.fond-beige{background:var(--craie)}
@media (max-width:980px){.me-moitie{grid-template-columns:1fr}.me-moitie.rev .bleed-media{order:0}.me-moitie .bleed-media{min-height:70vw}.me-moitie .bleed-txt{padding:60px var(--gut)}}

/* titles: IvyPresto Light by default, Montserrat when chosen; a word in italics turns coral */
:where(.wp-block-heading){font-family:var(--display);font-weight:300;line-height:1.05;letter-spacing:-.01em;text-wrap:balance;color:var(--nuit);margin:0}
:where(h1.wp-block-heading){font-size:var(--wp--preset--font-size--titre-xl)}
:where(h2.wp-block-heading){font-size:var(--wp--preset--font-size--titre-m)}
:where(h3.wp-block-heading){font-size:var(--wp--preset--font-size--titre-xs)}
:where(h4.wp-block-heading){font-size:var(--wp--preset--font-size--sous-titre)}
:where(h5.wp-block-heading,h6.wp-block-heading){font-size:var(--wp--preset--font-size--texte-xl)}
.wp-block-heading.has-body-font-family{font-weight:500;line-height:1.3;letter-spacing:0}
.wp-block-heading em{font-style:italic;font-weight:inherit;color:var(--corail)}
.on-dark :where(.wp-block-heading){color:#fff}
.fond-corail .wp-block-heading em{color:#fff}

/* texts: large grey by default in the builder's blocks */
:where(.me-stack,.wp-block-column)>:where(p,ul,ol){font-size:18px;line-height:1.6;color:var(--muted)}
:where(.on-dark) :where(.me-stack,.wp-block-column)>:where(p,ul,ol){color:rgba(255,255,255,.78)}
:where(.fond-corail) :where(.me-stack,.wp-block-column)>:where(p,ul,ol){color:rgba(2,50,65,.85)}
:where(.me-stack,.wp-block-column) :where(ul,ol){padding-left:1.2em}
:where(.me-stack,.wp-block-column) li+li{margin-top:.4em}

/* buttons: the site's four looks; the arrow is drawn here, "sans flèche" removes it */
.wp-block-button .wp-block-button__link{display:inline-flex;align-items:center;gap:12px;min-height:52px;padding:0 28px;border:1px solid transparent;border-radius:var(--r-btn);background:var(--corail);color:#fff;font-family:var(--body);font-weight:600;font-size:14px;letter-spacing:.04em;line-height:1.2;text-decoration:none;white-space:nowrap;transition:background .3s,color .3s,border-color .3s}
.wp-block-button .wp-block-button__link::after{content:"";flex:none;width:18px;height:18px;background:currentColor;transition:transform .3s;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.wp-block-button .wp-block-button__link:hover::after{transform:translateX(4px)}
.wp-block-button.no-arrow .wp-block-button__link::after{content:none}
.wp-block-button .wp-block-button__link:hover{background:var(--corail-d);color:#fff}
.wp-block-button.is-style-nuit .wp-block-button__link,.fond-corail .wp-block-button:not([class*="is-style-"]) .wp-block-button__link,.fond-corail .wp-block-button.is-style-corail .wp-block-button__link{background:var(--nuit);color:#fff}
.wp-block-button.is-style-nuit .wp-block-button__link:hover,.fond-corail .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover,.fond-corail .wp-block-button.is-style-corail .wp-block-button__link:hover{background:var(--nuit-2)}
.wp-block-button.is-style-contour .wp-block-button__link{background:none;border-color:var(--nuit);color:var(--nuit)}
.wp-block-button.is-style-contour .wp-block-button__link:hover{background:var(--nuit);color:#fff}
.on-dark .wp-block-button.is-style-contour .wp-block-button__link{border-color:#fff;color:#fff}
.on-dark .wp-block-button.is-style-contour .wp-block-button__link:hover{background:#fff;color:var(--nuit)}
.wp-block-button.is-style-lien .wp-block-button__link{min-height:0;padding:0 0 4px;gap:10px;border:0;border-bottom:1px solid currentColor;border-radius:0;background:none;color:var(--nuit)}
.wp-block-button.is-style-lien .wp-block-button__link::after{width:16px;height:16px}
.on-dark .wp-block-button.is-style-lien .wp-block-button__link{color:#fff}

/* columns and images */
.wp-block-columns{margin:0}
.wp-block-image{margin:0}
.wp-block-image img{display:block;width:100%;height:auto}
@media (max-width:781px){.wp-block-columns .wp-block-buttons.is-content-justification-right{justify-content:flex-start}}  /* columns stacked on phones: buttons back on the left, under the text */
