/* ==========================================================================
   Erlen – mise en page (header, sections de la page d'accueil, footer)
   Les formes (titres, panneaux, blobs, pastilles) sont dans erlen-shapes.css.
   Core Framework : html = 62.5 % → 1rem = 10px. Les tailles sont donc en px
   ou en variables CF (--space-*).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
  font-family: "Nunito", system-ui, sans-serif;
  color: #291307;
  background: #fff;
	line-height: 1.4;
}

.brxe-container.erl-wrap {
  width: 100%;
  max-width: 1292px;
  margin-inline: auto;
  padding-inline: var(--erl-gutter, 16px);
}

.erl-section {
  position: relative;
  padding-block: var(--space-l, 40px);
  overflow-x: clip; /* les pastilles décoratives ne créent pas de scroll horizontal */
}

/* Boutons */
.brxe-button.erl-btn {
  display: inline-flex;
  align-items: center;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.brxe-button.erl-btn:hover { transform: translateY(-2px); }
.brxe-button.erl-btn--dark    { background: #0e0e0e; color: #fff; }
.brxe-button.erl-btn--outline { border-color: #291307; color: #291307; background: transparent; }
.brxe-button.erl-btn--sm      { padding: 12px 18px; font-size: 14px; }


/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.erl-header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 8px;
}
.erl-header .erl-logo { width: 156px; height: auto; }

.erl-header__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: auto;
}

.erl-nav .bricks-nav-menu { gap: 20px; }
.erl-nav .bricks-nav-menu > li { margin: 0; }
.erl-nav .bricks-nav-menu > li > a {
  padding-bottom: 1px;
  border-bottom: 6px solid transparent;
  color: #291307;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .84px;
}
.erl-nav .bricks-nav-menu > li.current-menu-item > a,
.erl-nav .bricks-nav-menu > li > a:hover { border-bottom-color: #9bffb9; }


/* --------------------------------------------------------------------------
   Menu mobile : bouton rond (Toggle) + panneau plein écran en blob (Offcanvas)
   Contenu éditable dans Bricks : Header › Menü mobile › Panel › Inhalt
   -------------------------------------------------------------------------- */
.erl-burger,
.erl-mobile-menu { display: none; }

@media (max-width: 991px) {
  .erl-header__nav { display: none; }
  .erl-burger,
  .erl-mobile-menu { display: flex; }
}

/* Bouton rond */
.brxe-toggle.erl-burger {
  --burger-size: 58px;
  --burger-bar: 24px;
  position: relative;
  z-index: 100001; /* reste au-dessus du panneau ouvert : il sert aussi à fermer */
  align-items: center;
  justify-content: center;
  width: var(--burger-size);
  height: var(--burger-size);
  padding: 0;
  border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%; /* rond « organique » */
  background: var(--primary, #203147);
  transition: border-radius .5s ease, background-color .3s ease, transform .3s ease;
}
.brxe-toggle.erl-burger:hover { transform: scale(1.05); }
.brxe-toggle.erl-burger:focus-visible { outline: 3px solid var(--mint, #98e3b4); outline-offset: 3px; }
.brxe-toggle.erl-burger.is-active {
  border-radius: 45% 55% 42% 58% / 58% 44% 56% 42%;
  background: var(--primary, #203147);
}

/* Les 3 barres → croix */
.erl-burger .brxa-wrap {
  position: relative;
  display: block;
  width: var(--burger-bar);
  height: 16px;
}
.erl-burger .brxa-inner,
.erl-burger .brxa-inner::before,
.erl-burger .brxa-inner::after {
  position: absolute;
  left: 0;
  width: var(--burger-bar);
  height: 3px;
  border-radius: 3px;
  background: #fff;
  transition: transform .35s cubic-bezier(.6, 0, .3, 1.4), opacity .2s ease, top .35s ease;
}
.erl-burger .brxa-inner { top: 50%; margin-top: -1.5px; }
.erl-burger .brxa-inner::before,
.erl-burger .brxa-inner::after { content: ""; }
.erl-burger .brxa-inner::before { top: -7px; }
.erl-burger .brxa-inner::after  { top: 7px; width: 16px; }

.erl-burger.is-active .brxa-inner { background: transparent; }
.erl-burger.is-active .brxa-inner::before { top: 0; transform: rotate(45deg); }
.erl-burger.is-active .brxa-inner::after  { top: 0; width: var(--burger-bar); transform: rotate(-45deg); }

/* Panneau : un blob qui part du bouton et grandit jusqu'à couvrir l'écran */
.erl-mobile-menu {
  --menu-ox: calc(100vw - 45px); /* centre du bouton, mis à jour par erlen-menu.js */
  --menu-oy: 45px;
  --menu-speed: .7s;
  position: fixed;
  inset: 0;
  z-index: 100000;
  /* garde le panneau visible pendant l'animation de fermeture */
  transition: visibility 0s linear var(--menu-speed);
}
.erl-mobile-menu.brx-open { transition-delay: 0s; }
.erl-mobile-menu:not(.brx-open) { pointer-events: none; }
.erl-mobile-menu .brx-offcanvas-inner {
  position: fixed;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  transform: none !important;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: transparent;
  transition-property: visibility;
  transition-duration: var(--menu-speed);
}
.erl-mobile-menu .brx-offcanvas-inner::before {
  content: "";
  position: fixed;
  left: var(--menu-ox);
  top: var(--menu-oy);
  z-index: -1;
  width: 300vmax;
  aspect-ratio: 420 / 380;
  translate: -50% -50%;
  scale: 0;
  rotate: -25deg;
  background: var(--secondary, #cbbef3);
  -webkit-mask: var(--blob-4) center / 100% 100% no-repeat;
          mask: var(--blob-4) center / 100% 100% no-repeat;
  transition: scale var(--menu-speed) cubic-bezier(.7, 0, .25, 1), rotate var(--menu-speed) cubic-bezier(.7, 0, .25, 1);
}
.erl-mobile-menu.brx-open .brx-offcanvas-inner::before { scale: 1; rotate: 0deg; }

/* Contenu (bloc éditable) */
.erl-mobile-menu__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l, 32px);
  padding: 100px 24px 48px;
  text-align: center;
  opacity: 0;
  translate: 0 20px;
  transition: opacity .3s ease, translate .3s ease;
}
.erl-mobile-menu.brx-open .erl-mobile-menu__content {
  opacity: 1;
  translate: 0 0;
  transition: opacity .4s ease calc(var(--menu-speed) * .55), translate .5s cubic-bezier(.2, 1.3, .4, 1) calc(var(--menu-speed) * .55);
}

.erl-mobile-nav .bricks-nav-menu {
  flex-direction: column;
  align-items: center;
  gap: var(--space-m, 24px);
}
.erl-mobile-nav .bricks-nav-menu > li { margin: 0; }
.erl-mobile-nav .bricks-nav-menu > li > a {
  font-family: "Nunito", sans-serif;
  font-size: 2.2em;
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary, #203147);
  text-decoration: none;
  border-bottom: 5px solid transparent;
  transition: border-color .2s ease;
}
.erl-mobile-nav .bricks-nav-menu > li.current-menu-item > a,
.erl-mobile-nav .bricks-nav-menu > li > a:hover { border-bottom-color: var(--mint, #98e3b4); }

@media (prefers-reduced-motion: reduce) {
  .erl-mobile-menu { --menu-speed: .01s; }
  .erl-mobile-menu__content { transition: none !important; }
}


/* --------------------------------------------------------------------------
   Hero (Willkommen)
   -------------------------------------------------------------------------- */
.erl-hero {
  display: grid;
  grid-template-columns: minmax(0, 499px) minmax(0, 586px);
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 50px 50px 120px;
}

.erl-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.erl-eyebrow   { margin: 0; font-size: 18px; font-weight: 800; color: #291307; }
.erl-hero__title {
  margin: 0;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.05;
  color: #18242e;
}
.erl-lead      { margin: 0; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.25; color: #291307; }

.erl-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.erl-hero__media { width: 100%; height: auto; }

.erl-hero__dot-1 { position: absolute; left: 41%; top: 19%; --dot-size: 79px;  --parallax: 50px; --parallax-rot: -10deg; }
.erl-hero__dot-2 { position: absolute; left: 73%; top: 86%; --dot-size: 126px; --parallax: 90px; }


/* --------------------------------------------------------------------------
   Unsere Schule (image + texte)
   -------------------------------------------------------------------------- */
.erl-split {
  display: grid;
  grid-template-columns: minmax(0, 551px) minmax(0, 661px);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.erl-split__media { position: relative; }
.erl-split__media .brxe-image { width: 100%; height: auto; }

.erl-split__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.erl-text-lg {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 300;
  line-height: 1.35;
  color: #1a1a1a;
}

.erl-schule__dot-1 { position: absolute; left: 72%; top: 88%; --dot-size: 96px;  --parallax: 70px; }
.erl-schule__dot-2 { position: absolute; left: 95%; top: 86%; --dot-size: 46px;  --parallax: 35px; --parallax-rot: -12deg; }


/* Titres de section : typo commune */
.erl-title { margin: 0; font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; line-height: 1.2; }


/* --------------------------------------------------------------------------
   Ziele & Pädagogik (3 blobs + titre)
   -------------------------------------------------------------------------- */
.erl-pillars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 100px auto auto;
  align-items: start;
  padding-bottom: 60px;
}

.erl-pillars > .erl-title  { grid-area: 2 / 5 / 3 / 10; justify-self: center; z-index: 2; }
.erl-pillars__yellow       { grid-area: 1 / 1 / 3 / 5;  --blob-width: 390px; }
.erl-pillars__red          { grid-area: 2 / 8 / 4 / 13; --blob-width: 500px; justify-self: end; margin-top: 20px; }
.erl-pillars__violet       { grid-area: 3 / 3 / 4 / 8;  --blob-width: 470px; margin-top: -40px; }

.erl-pillars .erl-blob__title { font-size: 28px; font-weight: 800; }

.erl-pillars__dot-1 { position: absolute; left: 56%; bottom: 90px; --dot-size: 24px;  --parallax: -40px; }
.erl-pillars__dot-2 { position: absolute; left: 63%; bottom: 20px; --dot-size: 56px;  --parallax: 80px; --parallax-rot: 14deg; }


/* --------------------------------------------------------------------------
   Neuigkeiten
   -------------------------------------------------------------------------- */
.erl-news { padding-top: 40px; }

.erl-news__grid {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 660px);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.erl-news__media { width: 100%; height: auto; }

.erl-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.erl-card {
  position: relative;
  overflow: hidden; /* limite le lien « carte entière » à la carte */
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 40px;
  border-radius: 15px;
  border-bottom: 1px solid rgb(118 118 118 / .15);
  background: #fff;
}
.erl-card__title { margin: 0; font-size: 23px; font-weight: 800; color: #291307; }
.erl-card__text  { margin: 0; font-size: 15px; line-height: 1.65; color: #5e6b72; }
.erl-card__more  {
  position: absolute;
  right: 23px;
  bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #0c0c0c;
}
.erl-card__more::after { content: ""; position: absolute; inset: -200px -23px -12px -9999px; } /* carte entière cliquable */

.erl-news__dot-1 { position: absolute; left: 79%; top: -27px; --dot-size: 88px;  --parallax: 60px; --parallax-rot: -8deg; }
.erl-news__dot-2 { position: absolute; left: 6%;  top: 93%;  --dot-size: 117px; --parallax: 100px; }
.erl-news__dot-3 { position: absolute; left: 17%; top: 114%; --dot-size: 55px;  --parallax: 45px; --parallax-rot: -14deg; }


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.erl-footer-section { padding-block: 60px 40px; }

/* Fond déformé (Figma « Rectangle 4 ») : bord haut incliné, coin bas gauche relevé */
.erl-footer {
  --fill: var(--primary, #203147);
  --r: clamp(28px, 3.5vw, 48px);
  --tl-y: clamp(20px, 3.4vw, 45px);
  --bl-y: clamp(14px, 2vw, 27px);
  padding-top: clamp(20px, 3.4vw, 45px);
  padding-bottom: clamp(14px, 2vw, 27px);
  color: #fff;
}

.erl-footer__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  padding: 72px 96px 60px;
}

.erl-footer__eyebrow { margin: 0; font-size: 18px; font-weight: 800; color: var(--mint, #98e3b4); }

.erl-footer__head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.erl-footer__title { margin: 0; font-size: clamp(32px, 3.4vw, 48px); font-weight: 800; color: #fff; }
.erl-footer__logo  { width: 141px; height: auto; flex-shrink: 0; }

.erl-pill {
  display: inline-block;
  margin-top: -24px;
  padding: 12px 21px;
  border-radius: 999px;
  background: var(--tertiary, #6cd48c);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.erl-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  padding-block: 25px;
}

.erl-footer__col { display: flex; flex-direction: column; gap: 12px; }
.erl-footer__col-title { margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.erl-footer__details   { font-size: 14px; line-height: 1.6; }
.erl-footer__details p { margin: 0; }
.erl-footer__note      { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.4; }

.erl-footer__bottom {
  width: 100%;
  padding: 30px 96px;
  border-top: 8px solid var(--mint, #98e3b4);
}
.erl-footer__copy { margin: 0; font-size: 13px; }
@media (max-width: 1100px) { .erl-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .erl-footer__cols { grid-template-columns: minmax(0, 1fr); } }

/* Variante claire (classe erl-footer--light sur le bloc du footer) :
   fond violet pâle, textes navy, seule la bande copyright reste navy.
   La bande reprend exactement le bas de la forme (pente + arrondi). */
.erl-footer.erl-footer--light {
  --fill: var(--secondary-l-3, #ebe5ff);
  padding-bottom: 0;
  color: var(--primary, #203147);
}
.erl-footer--light .erl-footer__eyebrow {
  /* cartouche navy, légèrement penché comme les titres en forme */
  display: inline-block;
  padding: .3em .85em .38em;
  border-radius: 10px 14px 12px 8px;
  background: var(--primary, #203147);
  color: #fff;
  rotate: -1.5deg;
}
.erl-footer--light .erl-footer__title,
.erl-footer--light .erl-footer__col-title { color: var(--primary, #203147); }
.erl-footer--light .erl-footer__details   { color: #3b4654; }

.erl-footer--light .erl-footer__bottom {
  --r: inherit;    /* reprend l'arrondi et la pente du footer */
  --bl-y: inherit;
  padding-bottom: calc(30px + var(--bl-y));
  border-top-color: var(--tertiary, #6cd48c);
  background: var(--primary, #203147);
  color: #fff;
  clip-path: shape(
    from 0 0,
    line to 100% 0,
    line to 100% calc(100% - var(--r)),
    curve to calc(100% - var(--r)) 100% with 100% 100%,
    line to var(--r) calc(100% - var(--bl-y)),
    curve to 0 calc(100% - var(--bl-y) - var(--r)) with 0 calc(100% - var(--bl-y)),
    close
  );
}
@supports not (clip-path: shape(from 0 0, line to 100% 0)) {
  .erl-footer--light .erl-footer__bottom { clip-path: none; border-radius: 0 0 var(--r) var(--r); }
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {

  .erl-hero,
  .erl-split,
  .erl-news__grid { grid-template-columns: minmax(0, 1fr); }
  .erl-hero { padding: 40px 28px 90px; }

  .erl-pillars {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    justify-items: center;
    gap: 24px;
  }
  .erl-pillars > *,
  .erl-pillars > .erl-title { grid-area: auto; justify-self: center; margin-top: 0; }
  .erl-pillars > .erl-title { order: -1; }

  .erl-footer__main  { padding: 48px 28px 40px; }
  .erl-footer__bottom { padding: 24px 28px; }
  .erl-footer--light .erl-footer__bottom { padding-bottom: calc(24px + var(--bl-y)); }
}

@media (max-width: 600px) {
  .erl-footer__head { flex-direction: column-reverse; }
  .erl-pill { margin-top: 0; }
  .erl-hero__dot-1, .erl-schule__dot-2, .erl-news__dot-3 { display: none; }
}
