@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@700;800;900&family=Open+Sans:wght@400;600;700&display=swap");


/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --md-blue: #1f5b81;              /* Syctom blue (also set inline by the page) */
  --md-sky: #91cfe4;               /* light blue (page background, footer) */
  --md-red: #e9473d;               /* extra colour */
  --md-green: #4f9a3a;             /* compost green, decorative */
  --md-paper: #ffffff;
  --md-mist: #eef7fb;
  --md-line: #d7e8f0;

  --md-ink-soft: #46677d;

  --md-font-round: "M PLUS Rounded 1c", "Nunito", "Segoe UI", sans-serif;
  --md-font-text: "Open Sans", "Segoe UI", Arial, sans-serif;

  --md-gutter: clamp(1rem, 4vw, 2rem);
  --md-radius: 16px;
  --md-shadow: 0 2px 4px rgba(31, 91, 129, 0.08), 0 16px 32px -20px rgba(31, 91, 129, 0.45);
  --md-stripe: linear-gradient(90deg, var(--md-blue) 0 33.33%, var(--md-green) 33.33% 66.66%, var(--md-red) 66.66% 100%);
}


/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* the page sets 15px / 19px inline, which is cramped for reading */
html body {
  margin: 0;
  font-family: var(--md-font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--md-gutter);
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

.col,
[class*="vc_col-sm-"] {
  min-width: 0;
}


/* ==========================================================================
   3. Theme machinery that would hide the page or does nothing here
   ========================================================================== */

#ajax-loading-screen,          /* full-page loading cover */
.ns-loading-cover,
#header-space,                 /* spacer for the theme's fixed header */
#search-outer,                 /* search overlay */
#slide-out-widget-area,        /* slide-out menu (empty on this site) */
#slide-out-widget-area-bg,
header#top .span_9,            /* menu column: only search and menu buttons */
.slide-out-widget-area-toggle,
#to-top {
  display: none !important;
}

/* Images and blocks the theme fades in with scripts: always visible */
.img-with-animation,
.wpb_animate_when_almost_visible {
  opacity: 1 !important;
  transform: none !important;
}


/* ==========================================================================
   4. Header: logo with the sorting stripe beneath
   ========================================================================== */

#header-outer {
  position: sticky !important;
  top: 0;
  z-index: 100;
  padding: 0.9rem 0 calc(0.9rem + 6px) !important;
  background-color: var(--md-paper) !important;
  box-shadow: 0 6px 18px -14px rgba(31, 91, 129, 0.6);
}

#header-outer::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: var(--md-stripe);
}

header#top .row {
  display: flex;
  align-items: center;
  justify-content: center;
}

header#top .span_3 {
  float: none !important;
  width: auto !important;
  text-align: center !important;
}

#logo {
  display: block;
  line-height: 0;
}

/* the page sets 120px (24px on phones) inline */
html body #header-outer #logo img {
  width: auto;
  height: 84px !important;
}

@media (max-width: 1000px) {
  html body #header-outer header#top #logo img {
    height: 52px !important;
  }
}


/* ==========================================================================
   5. Page sections
   ========================================================================== */

.container-wrap {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.main-content > .row > .wpb_row {
  position: relative;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding: 0 !important;
}

/* Rows with nothing in them */
.main-content > .row > .wpb_row:not(:has(img, h1, h2, h3, p, a)) {
  display: none;
}

.wpb_row .col.span_12,
.wpb_row [class*="vc_col-sm-"] {
  float: none;
  width: auto;
}

.row-bg-wrap,
.column-bg-overlay {
  display: none;
}

/* Headings: rounded, with a short green bar */
.main-content h1,
.main-content h2 {
  margin: 0 auto 1rem;
  font-family: var(--md-font-round);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
}

.main-content h1 {
  font-size: clamp(1.7rem, 1.15rem + 2.4vw, 2.75rem);
}

.main-content h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
}

.main-content h1::after,
.main-content h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 6px;
  margin: 0.85rem auto 0;
  border-radius: 3px;
  background-color: var(--md-green);
}

/* The h3 blocks are introductions: set as readable lead text */
.wpb_text_column h3 {
  max-width: 52rem;
  margin: 0 auto 1rem;
  font-family: var(--md-font-text);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
}

/* Spacers set in the page builder */
.divider-wrap .divider[style*="height: 100px"] {
  height: 2.5rem !important;
}

.divider-wrap .divider[style*="height: 25px"] {
  height: 0.75rem !important;
}

/* Centred images (the poster, the teaching kits picture) */
.img-with-aniamtion-wrap {
  margin: 1.5rem 0;
  text-align: center;
}

.img-with-aniamtion-wrap .inner {
  display: inline-block;
  max-width: 100%;
}

.img-with-aniamtion-wrap[data-max-width="75%"] .inner {
  max-width: 75%;
}

.img-with-aniamtion-wrap img {
  border-radius: var(--md-radius);
}

@media (max-width: 767px) {
  .img-with-aniamtion-wrap[data-max-width="75%"] .inner {
    max-width: 100%;
  }
}


/* ==========================================================================
   6. "Zoom sur..." tiles framed in the three colours
   ========================================================================== */

.zoom > .col.span_12 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.zoom .img-with-aniamtion-wrap {
  margin: 0;
}

.zoom .img-with-aniamtion-wrap .inner {
  display: block;
}

.zoom a {
  display: block;
  overflow: hidden;
  border-bottom: 8px solid var(--md-tile, var(--md-blue));
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zoom a:hover,
.zoom a:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(31, 91, 129, 0.08), 0 22px 40px -20px rgba(31, 91, 129, 0.6);
}

.zoom img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
}

.zoom .bleu  { --md-tile: var(--md-blue); }
.zoom .vert  { --md-tile: var(--md-green); }
.zoom .rouge { --md-tile: var(--md-red); }

@media (max-width: 999px) {
  .zoom.vc_custom_1506958832830 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 599px) {
  .zoom > .col.span_12 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 22rem;
    margin: 0 auto;
  }
}


/* ==========================================================================
   7. Videos: poster with a play button
   ========================================================================== */

.nectar-video-box {
  max-width: 60rem;
  margin: 0.5rem auto 0;
}

.nectar-video-box > .inner-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
}

.nectar-video-box img {
  display: block;
  width: 100%;
  height: auto;
}

.nectar-video-box .full-link,
.nectar-video-box a.play_button_2 {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.nectar-video-box .play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(4rem, 9vw, 5.5rem);
  height: clamp(4rem, 9vw, 5.5rem);
  translate: -50% -50%;
  border-radius: 50%;
  background-color: var(--md-red);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
  transition: scale 0.2s ease;
}

.nectar-video-box .play .inner-wrap {
  display: flex;
  line-height: 0;
}

.nectar-video-box .play svg {
  width: 1.5rem;
  height: 2rem;
  margin-left: 0.3rem;
}

.nectar-video-box .play path {
  fill: #ffffff;
}

.nectar-video-box a:hover .play,
.nectar-video-box a:focus-visible .play {
  scale: 1.08;
}

/* A poster with no video link gets no play button */
.nectar-video-box:not(:has(a)) .play {
  display: none;
}


/* ==========================================================================
   8. Footer (its light blue comes from the page)
   ========================================================================== */

#footer-outer {
  position: relative;
  padding: calc(1.75rem + 6px) var(--md-gutter) 2rem;
}

#footer-outer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--md-stripe);
}

#footer-outer .textwidget p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

#footer-outer .textwidget a {
  display: inline-block;
  padding: 0.3rem 0.4rem;
}


/* ==========================================================================
   9. Pop-ups (Popup Maker) and cookie notice: only when opened
   ========================================================================== */

.pum:not(.pum-active) {
  display: none !important;
}

.pum.pum-active {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 1rem 1rem;
  background-color: rgba(18, 52, 74, 0.6);
}

.pum-container {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: 1.75rem;
  background-color: var(--md-paper);
  border-top: 6px solid var(--md-blue);
  border-radius: 12px;
}

.pum-title {
  margin-bottom: 0.75rem;
  font-family: var(--md-font-round);
  font-size: 1.35rem;
  font-weight: 800;
}

.pum-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--md-blue);
  background: none;
  border: 0;
  cursor: pointer;
}

#cookie-notice.cookie-notice-hidden {
  display: none;
}

#cookie-notice:not(.cookie-notice-hidden) {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  padding: 0.9rem var(--md-gutter);
  font-size: 0.9rem;
}

#cookie-notice .cookie-notice-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  max-width: 70rem;
  margin: 0 auto;
}

#cookie-notice .cn-buttons-container {
  display: flex;
  gap: 0.5rem;
}

#cookie-notice .cn-button {
  padding: 0.45rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--md-blue);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

#cookie-notice .cn-close-icon {
  display: none;
}


/* ==========================================================================
   10. Focus and motion
   ========================================================================== */

:focus-visible {
  outline: 3px solid var(--md-red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}