/* ==========================================================================
   Tablet styles — applies at viewport widths up to 1280px.
   Loaded after styles.css, so rules here override the desktop base.
   ========================================================================== */

@media (max-width: 1280px) {
  /* programme — desktop hover accordion is disabled here (gated in main.js);
      tablet/mobile uses a click collapse instead. The items stack vertically
      and toggle height (168px closed -> 249px open). JS only toggles the
      .is-open class (see main.js initProgramme); the height + text reveal are
      animated here with CSS transitions, since both ends are fixed px values. */

  .ui-programme-items {
    flex-direction: column;
    align-items: stretch;
  }

  .ui-programme-items .ui-programme-item {
    flex: none;
    max-width: none;
    min-height: 0;
    height: 168px;
    cursor: pointer;
    transition: height 0.4s ease;
  }

  .ui-programme-items .ui-programme-item.is-open {
    height: 249px;
  }

  .ui-programme-item-texts {
    transition:
      opacity 0.35s ease,
      visibility 0.35s ease;
  }

  .ui-programme-items .ui-programme-item.is-open .ui-programme-item-texts {
    opacity: 1;
    visibility: visible;
  }

  /* top bar  */
  .ui-top-bar ul li,
  .ui-top-bar ul li a {
    font-size: 12px;
  }

  .ui-top-bar .ui-top-bar-tag {
    font-size: 10px;
    /* Match the old <ul> gap at <=1280px (was 10px) so tablet/mobile spacing
       is unchanged now that the badge sits outside the scrolling list. */
    margin-right: 10px;
  }

  /* Narrower fixed marquee window on tablet (486px desktop -> 245px here). */
  .ui-top-bar .ui-tb-left-content {
    width: 245px;
  }

  /* Short label shows on desktop only; hidden here (<=1280px). Target the class
     rather than :last-child so the marquee's appended copies hide it too. */
  .ui-top-bar .ui-tb-left-content ul li.ui-tb-short {
    display: none;
  }

  .ui-top-bar ul {
    gap: 10px;
  }

  .ui-top-bar .ui-tb-right-content ul li a {
    font-size: 12px;
  }

  .ui-top-bar .ui-tb-right-content ul li .ui-top-bar-lang {
    padding-left: 5px;
  }

  .ui-top-bar {
    padding: 8px 20px;
  }

  /* If the menu is opened while the page is scrolled, the top bar is off-screen,
      so pin it (fixed) and slide it down with the menu panel (same 0.3s) to sit
      above the menu. At the top of the page the bar is already in view and MUST
      stay in normal flow: making it fixed there drops it from the flow and shifts
      the banner — and the Menu button inside it — up by the bar's height. Scroll
      is locked while the menu is open (body.ui-menu-open{overflow:hidden}), so
      is-page-scrolled can't change mid-open and this stays consistent.
      Scoped to .ui-root: the mobile menu panel carries its OWN .ui-top-bar copy,
      and pinning that one (position:fixed) would pull it out of the panel's flow
      and slide the menu body up under it. Only the page bar must pin. */


  /* end top bar */

  /* banner  */
  .ui-banner-row {
    position: relative;
  }

  .ui-banner-row .ui-banner-testimonials-wrapper {
    width: 100%;
    height: 596px;
    min-height: 596px;
    max-height: 596px;
    position: relative;
    border-radius: 0 0 20px 20px;
  }

  .ui-banner-row .ui-banner-content {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    top: 177px;
    z-index: 3;
  }

  .ui-banner-row
    .ui-banner-content
    .ui-banner-details
    .ui-banner-contnet-actions {
    max-width: 300px;
    flex-direction: column;
    margin-top: 0;
    align-items: normal;
  }

  /* Desktop-only banner header (logo + nav links). The top <nav> carries the
      logo and menu toggle on tablet/mobile, so hide the whole in-banner wrapper
      — matches what mobile.css already does at <=767px. */
  .ui-banner-row .ui-banner-content .ui-banner-menu-wrapper {
    display: none;
  }

  .ui-banner-row .ui-banner-content .ui-banner-details .ui-banner-title-1 p {
    color: #fff;
    font-size: 14px;
    max-width: 236px;
    margin-bottom: 0;
    line-height: normal;
  }

  .ui-banner-row .ui-banner-content .ui-banner-details .ui-banner-title-1 h1 {
    color: #fff;
    font-size: 42px;
    max-width: 264px;
    line-height: 58px;
  }

  .ui-banner-row .ui-banner-content .ui-banner-details .ui-banner-title-2 p.ui-h1-like {
    color: #fff;
    font-size: 42px;
    max-width: 237px;
    margin-left: auto;
    line-height: 58px;
  }

  .ui-banner-row .ui-banner-content .ui-banner-details .ui-banner-title-2 h5 {
    font-size: 18px;
    color: #fff;
    line-height: 64px;
  }

  .ui-banner-row .ui-banner-content .ui-banner-details .ui-banner-title-1 {
    margin-bottom: 0;
  }

  .ui-banner {
    padding: 0;
    z-index: 99;
  }

  .ui-banner-row .ui-banner-testimonials-wrapper::before {
    content: '';
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.35) 100%
    );
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: block;
    z-index: 2;
  }

  /* The banner CTA block (mentor/mécène) is desktop-only — the top <nav>
      carries the menu toggle on tablet/mobile. This @media covers <=1280px,
      so it hides on both tablet and mobile. */
  .ui-banner-row .ui-banner-testimonials-wrapper .ui-bt-actions.desktop {
    display: none;
  }

  .ui-banner-row .ui-banner-testimonials-wrapper .ui-bt-actions {
    position: relative;
    z-index: 3;
    padding-top: 31px;
  }

  .ui-banner-row .ui-banner-content .ui-banner-details .ui-banner-title-2 {
    margin-top: -44px;
  }

  .ui-banner-row
    .ui-banner-testimonials-wrapper
    .ui-bt-actions
    .ui-menu-toggle {
    display: flex;
    min-width: 86px;
    min-height: 34.4px;
    text-align: center;
    justify-content: center;
    font-family: Castoro;
    letter-spacing: 0.22px;
    font-size: 18px;
    line-height: normal;
    padding: 0;
    align-items: center;
  }

  /* When the menu is open the toggle becomes the "Fermer" close button (JS
      swaps the label — see main.js). It lives in .ui-bt-actions on tablet and
      in the JS-built .ui-mobile-head on mobile (main.js initMobileHead); both
      are stacking contexts pinned below the menu overlay (99999), so lift
      whichever currently holds the toggle above it. */
  body.ui-menu-open
    .ui-banner-row
    .ui-banner-testimonials-wrapper
    .ui-bt-actions,
  body.ui-menu-open .ui-banner .ui-mobile-head {
    z-index: 100000;
  }

  /* Hide the sibling CTAs (tablet) and the duplicate head logo (mobile) so
      only the toggle sits over the menu — the panel has its own header logo. */
  body.ui-menu-open
    .ui-banner-row
    .ui-banner-testimonials-wrapper
    .ui-bt-actions
    a:not(.ui-menu-toggle),
  body.ui-menu-open .ui-banner .ui-mobile-head .ui-logo {
    opacity: 0;
    pointer-events: none;
  }

  /* Recolour it in place (white button, black text). Deliberately does NOT
      touch position/top/right, so the button stays exactly where it already is
      when the menu opens — no jump, whatever the scroll state. The parent lift
      above is what keeps it on top of the menu. */
  body.ui-menu-open .ui-menu-toggle {
    background: #fff;
    color: #000;
    border-color: #fff;
  }

  body.ui-menu-open
    .ui-menu-mobile
    .ui-bt-actions
    .ui-btn-sky-blue:not(.outline):not(.ui-menu-toggle) {
    opacity: 1;
    pointer-events: auto;
    background: #fff;
    color: #000;
    border-color: #fff;
  }

  body.ui-menu-open .ui-menu-mobile .ui-bt-actions .ui-btn-sky-blue.outline {
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    color: #fff;
    border-color: #fff;
  }

  body.ui-menu-open .ui-menu-mobile a.ui-logo {
    opacity: 1;
    pointer-events: auto;
  }

  /* Off the home page the bar logo is sky-blue (header.php); the open menu
     paints the bar blue/orange, so the white copy takes its place there. */
  .ui-menu-mobile .ui-logo .ui-logo-menu,
  body.ui-menu-open .ui-menu-mobile .ui-logo.has-menu-logo .ui-logo-page {
    display: none;
  }

  body.ui-menu-open .ui-menu-mobile .ui-logo.has-menu-logo .ui-logo-menu {
    display: inline;
  }

  body.ui-menu-open .ui-menu-mobile {
    background: #70cbd3;
  }

  body.ui-menu-open:has(.ui-mobile-menu-wrapper.theme-2) .ui-menu-mobile {
    background: #e9511c;
    transition: none;
  }

  /* end banner  */

  /* archery-numbers */
  .ui-archery-numbers {
    width: 50%;
    position: relative;
    z-index: 4;
  }

  .ui-main-archery-number > img {
    width: 104px;
    aspect-ratio: 104 / 120;
  }

  .ui-main-archery-number-content > p:first-child {
    font-size: 12px;
  }

  .ui-main-archery-number-content > p:first-child br {
    display: none;
  }

  .ui-archery-number {
    width: 100%;
    min-height: 116px;
  }

  .ui-archery-number > h2 {
    font-size: 32px;
    line-height: 32px;
  }

  .ui-archery-number > h2 > span {
    font-size: 12px;
  }

  /* Tablet + mobile: highlight the odd numbers (overrides the desktop
      2nd/3rd-child rule; even ones reset to the default dark background). */
  .ui-archery-number:nth-child(odd) {
    background: rgba(112, 203, 211, 0.2);
    backdrop-filter: blur(4px);
  }

  .ui-archery-number:nth-child(even) {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: none;
  }

  /* end archery-numbers */

  /* menu mobile  */
  /* Reveal the top bar (base styles.css hides it for desktop). */
  .ui-menu-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    padding: 45px 19px 0px 21px;
    z-index: 9999;
    transition: background-color 0.3s ease;
  }

  .ui-menu-mobile .ui-bt-actions {
      display: flex;
      align-items: center;
      gap: 6px;
  }

  .ui-menu-mobile .ui-bt-actions .ui-btn-sky-blue {
    font-size: 18px;
    line-height: 24px;
    padding: 4px 12px;
    height: auto;
  }

  .ui-menu-mobile .ui-bt-actions .ui-menu-toggle {
    padding: 4px 20px;
    height: auto;
  }

  .ui-menu-mobile .ui-logo img {
    width: 60px;
    height: auto;
  }

  /* Top-bar fade on scroll: once the page is scrolled — or the banner reveal
     has body-locked it (scrollY stays 0 while locked, so trigger on both, as
     .ui-mobile-head does) — the logo and the mentor/mécène CTAs fade out. The
     Menu toggle stays visible the whole way down the page. */
  .ui-menu-mobile .ui-logo,
  .ui-menu-mobile .ui-bt-actions a:not(.ui-menu-toggle) {
    transition:
      opacity 0.3s ease,
      background-color 0.3s ease,
      color 0.3s ease,
      border-color 0.3s ease;
  }

  body.is-page-scrolled .ui-menu-mobile .ui-logo,
  body.popup-scroll-locked .ui-menu-mobile .ui-logo,
  body.banner-revealed .ui-menu-mobile .ui-logo,
  body.is-page-scrolled .ui-menu-mobile .ui-bt-actions a:not(.ui-menu-toggle),
  body.banner-revealed .ui-menu-mobile .ui-bt-actions a:not(.ui-menu-toggle),
  body.popup-scroll-locked
    .ui-menu-mobile
    .ui-bt-actions
    a:not(.ui-menu-toggle) {
    opacity: 0;
    pointer-events: none;
  }

  .ui-mobile-menu-wrapper {
    position: fixed;
    top: 0px;
    z-index: -1;
    right: 0;   
    left: 0;
    border-radius: 0 0 15px 15px;
    background: #70cbd3;

    display: block;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition:
      transform 0.3s ease,
      visibility 0.3s ease;
    padding-bottom: 102px;
    padding-inline: 10px;
    padding-top: 129.8px;
  }
  .ui-mobile-menu-wrapper.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* The in-wrapper header (logo + CTAs + close) is desktop-only; on
     tablet/mobile the fixed .ui-menu-mobile bar carries logo + Menu toggle, so
     the panel shows NO logo of its own. */
  .ui-mobile-menu-wrapper .ui-mobile-menu-header {
    display: none;
  }

  .ui-mobile-menu-wrapper .ui-mobile-menu-top-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
  }

  .ui-mobile-menu-wrapper .ui-mobile-menu-top-links ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 16px;
  }

  .ui-mobile-menu-wrapper .ui-mobile-menu-top-links ul li a {
    color: #000;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    /* 110% */
    display: flex;
  }

  .ui-mobile-menu-wrapper .ui-mobile-menu-top-links ul .ui-mobile-menu-lang {
    display: flex;
    align-items: center;
    gap: 3px;
    padding-left: 16px;
    border-left: 1px solid #000;
  }

  .ui-mobile-menu-wrapper
    .ui-mobile-menu-top-links
    ul
    .ui-mobile-menu-lang
    .active {
    text-decoration: underline;
    font-weight: 700;
  }

  .ui-mobile-menu-wrapper
    .ui-mobile-menu-top-links
    ul
    .ui-mobile-menu-lang
    span {
    display: flex;
    align-items: center;
    line-height: 10px;
  }

  .ui-mobile-menu-body ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #000;
    padding-block: 15px;
    color: #000;
    font-family: Castoro;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 18.2px;
    /* 75.833% */
  }

  .ui-mobile-menu-body ul li a svg {
    width: 25px;
    height: 25px;
  }

  .ui-mobile-menu-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .ui-mobile-menu-wrapper
    .ui-menu-items-content
    .ui-menu-item-links-boxs
    .ui-menu-item-links-box {
    min-height: 225px;
  }

  /* --- Detail view: a single panel shown inside the menu --- */

  /* Back button (between the header and the panel) */
  .ui-mobile-menu-back {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 16px;
    background: none;
    border: 0;
    color: #000;
    cursor: pointer;
  }

  .ui-mobile-menu-back svg {
    width: 20px;
    height: 20px;
  }

  .ui-mobile-menu-wrapper.is-detail .ui-mobile-menu-back {
    display: flex;
    border-radius: 15px;
    border: 1px solid #e9511c;
    background: #e9511c;
    width: 42px;
    height: 42px;
    justify-content: center;
    align-items: center;
    color: #fff;
  }

  .ui-mobile-menu-wrapper.is-detail.theme-2 .ui-mobile-menu-back {
    background: #70cbd3;
    border: 1px solid #e9511c;
  }

  /* In detail view: hide the list + top links, drop the bottom padding */
  .ui-mobile-menu-wrapper.is-detail {
    padding-bottom: 15px;
  }

  .ui-mobile-menu-wrapper.is-detail .ui-mobile-menu-top-links,
  .ui-mobile-menu-wrapper.is-detail .ui-mobile-menu-body {
    display: none;
  }

  /* Wrapper adopts the selected panel's theme colour (theme-1/3 = default
      blue, theme-2 = orange) */
  .ui-mobile-menu-wrapper.theme-2 {
    background: #e9511c;
  }

  .ui-mobile-menu-wrapper.theme-2 .ui-mobile-menu-back {
    color: #fff;
  }

  /* Panels render inline inside the wrapper (not absolutely positioned like
      the desktop mega-menu); the wrapper supplies the background colour */
  .ui-mobile-menu-wrapper .ui-menu-items-content {
    position: static;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  /* Keep a tall panel scrollable within the fixed wrapper */
  .ui-mobile-menu-wrapper {
    max-height: calc(100vh - 36px);
    overflow-y: auto;
  }

  .ui-menu-items-content .ui-menu-item-links-boxs {
    margin-bottom: 14px;
  }

  .ui-mobile-menu-wrapper
    .ui-menu-items-content[data-panel='laureats']
    .ui-menu-item-links-boxs
    .ui-menu-item-links-box {
    min-height: 174px;
  }

  .ui-mobile-menu-wrapper
    .ui-menu-items-content[data-panel='laureats']
    .ui-menu-item-bottom-links
    .ui-mi-center-link
    p:first-child {
    margin-bottom: 10px;
  }

  .ui-mobile-menu-wrapper
    .ui-menu-items-content[data-panel='laureats']
    .ui-menu-item-bottom-links {
    margin-bottom: 0;
    gap: 12px;
  }

  .ui-mobile-menu-wrapper
    .ui-menu-items-content[data-panel='laureats']
    .ui-menu-item-bottom-links
    .ui-mi-end-link {
    flex: 1;
    max-width: 100%;
    height: 73px;
  }

  .ui-mobile-menu-wrapper .ui-menu-actions,
  .ui-menu-temoignage-wrapper {
    display: none;
  }

  .ui-menu-articles-row .ui-menu-article-img {
    height: 145px;
  }

  .ui-menu-articles-row .ui-menu-article-content {
    padding-right: 10px;
  }

  .ui-menu-articles-row {
    gap: 10px;
  }

  .ui-menu-articles-row .ui-list-articles > a {
    font-size: 14px;
  }

  .ui-menu-articles-row .ui-article-item .ui-article-content p {
    margin-bottom: 0;
  }

  .ui-menu-articles-row .ui-article-item:first-child {
    border: none;
  }
  /* end menu mobile  */

  /* talents  */
  .ui-talents-wrapper {
    margin-top: 49px;
  }

  .ui-talents-wrapper .ui-talents-center-side .ui-talents-title {
    font-size: 32px;
  }

  .ui-talents-wrapper .ui-talents-center-side .ui-talents-title:nth-child(2) {
    margin-top: 0;
    margin-bottom: 0;
  }

  .ui-talents-wrapper .ui-talents-center-side p {
    font-size: 16px;
    position: absolute;
    bottom: 29px;
    left: 0;
    right: 0;
    max-width: 302px;
    margin: 0 auto;
    text-align: center;
    white-space: normal;
  }

  .ui-talents-wrapper .ui-talents-center-side p br {
    display: none;
  }

  .ui-talents-wrapper .ui-talents-center-side {
    position: relative;
  }

  .ui-talents-wrapper .ui-talents-left-side,
  .ui-talents-wrapper .ui-talents-right-side {
    width: 24%;
  }

  .ui-talents-bottom-text {
    font-size: 20px;
    max-width: 516px;
  }

  .ui-talents-wrapper .ui-tls-bottom-text p,
  .ui-talents-wrapper .ui-trs-bottom-text p {
    font-size: 14px;
  }

  .ui-talents-wrapper .ui-tls-bottom-text .ui-talents-source,
  .ui-talents-wrapper .ui-trs-bottom-text .ui-talents-source {
    font-size: 12px;
    line-height: 17px;
  }

  /* end talents  */

  /* programme  */
  .ui-programme-items {
    display: grid;
  }

  h2.ui-programme-item-title {
    writing-mode: initial;
    font-size: 20px;
  }

  .ui-programme-item-texts {
    top: unset;
    max-width: 504px;
    left: auto;
  }

  span.ui-programme-item-index {
    font-size: 32px;
  }

  .ui-programme-item-texts p:first-child {
    margin-bottom: 48px;
  }

  /* end programme  */
  /* promotions */
  .ui-promotions-wrapper .ui-promotions-row > h2 {
    font-size: 32px;
  }

  .ui-promotions-wrapper .ui-promotions-row .ui-promotions-head-right h2 {
    font-size: 32px;
  }

  .ui-promotions-wrapper
    .ui-promotions-row
    .ui-promotions-head-right
    .ui-promotion-avatars-wrapper
    .ui-promotion-avatars
    img {
    width: 58px;
    height: 58px;
  }

  .ui-promotions-wrapper
    .ui-promotions-row
    .ui-promotions-head-right
    .ui-promotion-avatars-wrapper
    .ui-promotion-avatars
    img:not(:last-child) {
    margin-right: -10px;
  }

  .ui-promotions-wrapper
    .ui-promotions-row
    .ui-promotions-head-right
    .ui-promotion-avatars-wrapper
    .ui-btn-primary {
    transform: translateX(0);
    opacity: 1;
  }

  .ui-promotions-wrapper
    .ui-promotions-row
    .ui-promotions-head-right
    .ui-promotion-avatars-wrapper {
    margin-bottom: 10px;
  }

  .ui-promotions-wrapper {
    padding-top: 20px;
  }

  /* end promotions */

  /* history */
  .ui-history-example-wrapper .ui-history-example-box {
    min-width: 536px;
  }

  .ui-history-example-wrapper .ui-history-example-box .ui-pe-box-image-row {
    position: relative;
  }

  .ui-history-example-wrapper
    .ui-history-example-box
    .ui-pe-box-image-row
    .ui-pe-box-image-content {
    position: static;
    flex: 1;
  }

  .ui-history-example-wrapper
    .ui-history-example-box
    .ui-pe-box-image-row
    .ui-pe-box-image {
    width: 253px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }

  .ui-history-example-wrapper
    .ui-history-example-box
    .ui-pe-box-image-row
    .ui-pe-box-image-content
    .ui-pe-box-ic-top
    p {
    display: none;
  }

  .ui-history-example-wrapper
    .ui-history-example-box
    .ui-pe-box-image-row
    .ui-pe-box-image-content
    .ui-pe-box-ic-top
    h3 {
    font-size: 24px;
  }

  .ui-history-example-wrapper
    .ui-history-example-box
    .ui-pe-box-image-row
    .ui-pe-box-image-content
    h4 {
    font-size: 26px;
    text-align: left;
  }

  .ui-history-example-wrapper .ui-history-example-box > p {
    color: #fff;
    display: block;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    /* 116.667% */
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
  }

  .ui-history-example-wrapper .ui-history-example-box {
    padding-top: 9px;
  }

  .ui-pe-box-texts-row > h5 {
    font-size: 16px;
    margin-bottom: 17px;
  }

  .ui-pe-box-texts-row .ui-pe-box-text-content {
    max-width: 368px;
  }

  .ui-history-example-wrapper {
    max-height: 713px;
  }

  .ui-pe-box-texts-row {
    margin-top: 10px;
  }

  /* end history */

  /* articles */
  .ui-articles-wrapper .ui-articles-head h2 {
    font-size: 32px;
  }

  .ui-article-item {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }

  .ui-article-item .ui-article-img img {
    width: 100%;
    height: 179px;
  }

  .ui-article-item .ui-article-img {
    width: 100%;
  }

  /* .ui-main-article .ui-main-article-img {
    height: 169px;
  } */

  .ui-main-article .ui-main-article-content {
    padding-inline: 32px;
    padding-block: 16px;
  }

  .ui-articles-wrapper {
    padding-inline: 20px;
  }

  .ui-main-article .ui-main-article-content h2 {
    font-size: 18px;
  }

  /* end articles */

  /* discover */
  .ui-discover-wrapper
    .ui-discover-row
    .ui-discover-content
    .ui-discover-title-1
    h2,
  .ui-discover-wrapper
    .ui-discover-row
    .ui-discover-content
    .ui-discover-title-2
    h2 {
    font-size: 32px;
    max-width: 171px;
    margin-bottom: 0;
    line-height: normal;
  }

  .ui-discover-wrapper
    .ui-discover-row
    .ui-discover-details
    .ui-discover-details-img {
    display: none;
  }

  .ui-discover-wrapper
    .ui-discover-row
    .ui-discover-details
    .ui-discover-details-text
    > p {
    font-size: 14px;
  }

  /* Move the button below both paragraphs. The button is first in the DOM, so
      grid `order` reorders it visually without touching the markup (paragraphs
      keep the default order 0; the button moves to order 1 = last). */
  .ui-discover-wrapper
    .ui-discover-row
    .ui-discover-details
    .ui-discover-details-text
    > .ui-btn-primary {
    order: 1;
  }

  .ui-discover-wrapper .ui-discover-row .ui-discover-img {
    width: 42%;
    min-height: 369px;
  }

  .ui-discover-wrapper .ui-discover-row .ui-discover-img img {
    width: 100%;
    height: 100%;
  }

  .ui-discover-wrapper
    .ui-discover-row
    .ui-discover-details
    .ui-discover-details-text {
    gap: 15px;
  }

  /* end discover */

  /* mentors */
  .ui-mentors-wrapper {
    max-height: 736px;
  }

  .ui-mentors-wrapper .ui-mentors-top-box {
    margin-left: 0;
    max-width: 271px;
  }

  .ui-mentors-wrapper .ui-mentors-top-box h3 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .ui-mentors-wrapper .ui-mentors-top-box > p {
    font-size: 14px;
  }

  .ui-mentors-wrapper .ui-mentors-bottom-box {
    max-width: 395px;
    margin-left: auto;
  }

  .ui-mentors-wrapper .ui-mentors-bottom-box > p {
    font-size: 14px;
  }

  /* end mentors */

  .ui-reviews-right h2,
  .ui-reviews-left h2 {
    font-size: 24px;
  }

  /* review */
  .ui-reviews-wrapper {
    min-height: auto;
    padding-block: 36px;
  }

  .ui-review-card {
    width: 267px;
    min-height: 259px;
    padding-block: 20px;
    padding-inline: 11px;
  }

  .ui-review-card > p {
    font-size: 16px;
  }

  .ui-reviews-images .ui-review-image img {
    width: 111px;
    aspect-ratio: 1;
  }

  .ui-reviews-row {
    gap: 10px;
  }

  .ui-reviews-images {
    gap: 10px;
  }

  /* end review */
  /* president */
  .ui-president-head {
    display: none;
  }

  .ui-president-wrapper {
    position: relative;
  }

  .ui-president-wrapper .ui-president-body .ui-president-img {
    width: 56%;
    aspect-ratio: 409 / 310;
  }

  .ui-president-wrapper .ui-president-body .ui-president-img img {
    object-position: right;
  }

  .ui-president-wrapper .ui-president-body .ui-president-content p {
    font-size: 14px;
    line-height: normal;
  }

  .ui-president-wrapper .ui-president-body .ui-president-content {
    justify-content: space-between;
  }

  .ui-president-tablet-title {
    display: block;
  }

  .ui-president-tablet-title > h2 {
    color: #000;
    font-family: Castoro;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.88px;
  }

  .ui-president-wrapper .ui-president-body {
    gap: 10px;
  }

  .ui-president-wrapper
    .ui-president-body
    .ui-president-content
    .ui-btn-sky-blue {
    margin-left: 0;
  }

  .ui-president-wrapper {
    padding-inline: 18px;
  }

  .ui-president-tablet-title > h2:last-child {
    text-align: right;
    color: #70cbd3;
  }

  /* end president */

  /* quote */
  .ui-quote-wrapper {
    padding-inline: 18px;
  }

  .ui-quote-wrapper--levers {
    padding-inline: 20px;
  }
  /* end quote */

  /* partners */
  .ui-partners-wrapper {
    padding-block: 30px;
  }

  .ui-partners-wrapper > h2 {
    font-size: 32px;
    line-height: normal;
    margin-bottom: 20px;
  }

  .ui-partners-logos .ui-partners-logo img {
    width: 81px;
  }

  /* end partners */

  /* five-levers */
  .ui-five-levers-cards {
    overflow: hidden;
  }

  .ui-five-levers-wrapper .ui-five-levers-row .ui-fl-first-row-item h2,
  .ui-five-levers-wrapper .ui-five-levers-row .ui-fl-last-row-item h2 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .ui-partners-logos .ui-partners-logo.ui-partners-logo--cta {
    padding: 2px;
    justify-content: center;
  }

  .ui-partners-logos .ui-partners-logo.ui-partners-logo--cta h2 {
    font-size: 24px;
    margin-bottom: 0;
    line-height: normal;
  }

  .ui-five-levers-card > h3 {
    font-size: 32px;
    position: absolute;
    top: 97px;
    right: 15px;
  }

  .ui-partners-logos .ui-partners-logo.ui-partners-logo--cta p {
    display: none;
  }

  .ui-five-levers-wrapper .ui-five-levers-row .ui-fl-first-row-item h3 {
    font-size: 32px;
    line-height: normal;
  }

  .ui-five-levers-wrapper .ui-five-levers-row .ui-fl-last-row-item p {
    font-size: 14px;
    line-height: normal;
  }

  .ui-five-levers-card .ui-five-levers-card-head > h3 {
    font-size: 32px;
    /* line-height: normal; */
  }

  .ui-five-levers-card .ui-five-levers-card-head > p {
    font-size: 10px;
    line-height: normal;
  }

  .ui-five-levers-card .ui-five-levers-card-footer > h3 {
    font-size: 24px;
  }

  .ui-five-levers-card .ui-five-levers-card-footer > p {
    font-size: 16px;
  }

  .ui-five-levers-card {
    width: 300px;
    height: 393px;
    padding-inline: 15px;
  }

  .ui-five-levers-wrapper .ui-five-levers-row {
    gap: 10px;
  }

  .ui-five-levers-wrapper .ui-five-levers-row .ui-fl-first-row-item {
    max-width: 188px;
  }

  .ui-five-levers-wrapper .ui-five-levers-bottom h2 {
    font-size: 32px;
  }

  .ui-five-levers-wrapper .ui-five-levers-bottom a {
    display: none;
  }

  .ui-five-levers-wrapper .ui-five-levers-bottom {
    justify-content: flex-end;
  }

  /* end five-levers */

  /* footer */
  footer.ui-footer .ui-footer-row .ui-footer-links-box > .ui-h2-like {
    font-size: 20px;
  }

  footer.ui-footer .ui-footer-row .ui-footer-links-box > ul li a {
    font-size: 14px;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-newsletter-box
    .ui-footer-newsletter
    .ui-footer-newsletter-content
    h2 {
    font-size: 14px;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-newsletter-box
    .ui-footer-newsletter
    .ui-footer-newsletter-content
    p {
    font-size: 14px;
    line-height: normal;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-newsletter-box
    .ui-footer-newsletter
    .ui-footer-newsletter-form
    form
    input {
    font-size: 14px;
    line-height: normal;
    max-width: 88px;
    min-width: 0;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-newsletter-box
    .ui-footer-newsletter
    .ui-footer-newsletter-form
    form
    button {
    font-size: 14px;
    line-height: normal;
  }

  footer.ui-footer .ui-footer-row .ui-footer-ressources-box .ui-frb-cart > p {
    font-size: 14px;
  }

  footer.ui-footer .ui-footer-row .ui-footer-ressources-box .ui-frb-cart > a {
    font-size: 14px;
  }

  footer.ui-footer .ui-footer-row .ui-footer-ressources-box .ui-frb-links > h2 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-ressources-box
    .ui-frb-links
    > .ui-frb-links-list
    ul
    li
    a {
    font-size: 14px;
    line-height: normal;
  }

  footer.ui-footer .ui-footer-row .ui-footer-newsletter-box .ui-footer-logo {
    width: 54px;
    height: 58px;
    margin-bottom: 19px;
  }

  footer.ui-footer .ui-footer-row .ui-footer-ressources-box {
    padding: 10px 6px;
    height: auto;
    min-height: 298px;
    width: 40%;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-newsletter-box
    .ui-footer-newsletter {
    padding-inline: 5px;
    padding-block: 11px;
    height: 205px;
  }

  footer.ui-footer .ui-footer-row .ui-footer-links-box {
    padding: 10px;
    width: 40%;
    height: auto;
    min-height: 298px;
  }

  .ui-footer-bottom-links-wrapper p {
    font-size: 14px;
  }

  .ui-footer-bottom-links-wrapper .ui-footer-bottom-links a {
    font-size: 14px;
  }

  footer.ui-footer .ui-footer-row .ui-footer-newsletter-box {
    max-width: 168px;
  }

  footer.ui-footer .ui-footer-row .ui-footer-ressources-box .ui-frb-cart {
    padding: 5px 3px;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-ressources-box
    .ui-frb-links
    > .ui-frb-links-list
    ul:first-child {
    gap: 3px;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-ressources-box
    .ui-frb-links
    > .ui-frb-links-list
    ul {
    gap: 2px;
    display: grid;
  }

  /* end footer */
}

/* Top bar slides down with the mobile/tablet menu when it opens (see
   body.ui-menu-open .ui-top-bar). Kept top-level so it's usable inside the
   media query above. */
@keyframes ui-top-bar-slide-down {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
