/* ==========================================================================
   Mobile styles — applies at viewport widths up to 767px.
   Loaded after tablet.css, so rules here override both desktop and tablet.
   ========================================================================== */

@media (max-width: 767px) {
  .ui-talents-wrapper .ui-talents-center-side p br {
    display: none;
  }

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

  .ui-top-bar .ui-tb-right-content {
    display: none;
  }

  .ui-top-bar .ui-tb-left-content ul {
    width: max-content;
  }

  /* Marquee viewport: clip the scrolling strip (animated in animations.js).
     Full-width here (flex:1) — reset the desktop/tablet fixed width. */
  .ui-top-bar .ui-tb-left-content {
    flex: 1;
    width: auto;
    min-width: 0;
    overflow: hidden;
  }

  .ui-banner-row
    .ui-banner-content
    .ui-banner-details
    .ui-banner-contnet-actions {
    max-width: 100%;
    margin-top: 50px;
  }
  .ui-banner-row .ui-banner-testimonials-wrapper {
    height: calc(100vh - 36px);
    min-height: 820px;
  }
  .ui-banner-row
    .ui-banner-testimonials-wrapper
    .ui-bt-actions
    a:not(.ui-menu-toggle) {
    display: none;
  }

  .ui-menu-mobile .ui-bt-actions a:not(.ui-menu-toggle) {
    display: none;
  }

  /* Home page only: the bar's 45px top padding clears the 36px top bar, which
     is only there at the top of the page. Once scrolled (the logo has faded
     out, tablet.css), the Menu button moves up instead of leaving an empty band
     above the pinned articles title. Inner pages lay out around the bar as it
     is, so they keep the 45px. */
  body.home .ui-menu-mobile {
    transition:
      background-color 0.3s ease,
      padding-top 0.3s ease;
  }

  body.home.is-page-scrolled .ui-menu-mobile {
    padding-top: 8px;
  }

  .ui-banner-row .ui-banner-content .ui-banner-menu-wrapper .ui-logo img {
    width: 49px;
    height: 52px;
  }

  .ui-banner-row .ui-banner-content {
    left: 14px;
    right: 14px;
    top: 15px;
  }

  .ui-banner-row
    .ui-banner-testimonials-wrapper
    .ui-bt-actions
    .ui-menu-toggle {
    padding: 4px 0px;
  }

  .ui-banner-row .ui-banner-content .ui-banner-details .ui-banner-title-2 p.ui-h1-like {
    line-height: 50px;
  }

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

  .ui-banner-row .ui-banner-content .ui-banner-details .ui-banner-title-2 h5 {
    line-height: 40px;
  }

  /* mobile head — logo + Menu toggle moved here by JS (main.js initMobileHead) */
  .ui-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 10px;
    position: fixed;
    top: 35px;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 9999;
    transition:
      top 0.3s ease,
      background 0.3s ease,
      padding 0.3s ease;
  }

  /* Once scrolled (JS adds .is-scrolled): slide to the very top and fill in. */
  .ui-mobile-head.is-scrolled,
  body.is-page-scrolled .ui-mobile-head,
  body.popup-scroll-locked .ui-mobile-head {
    top: 0;
    padding: 8px 10px;
  }

  .ui-banner-row .ui-banner-content .ui-banner-menu-wrapper {
    display: none;
  }

  .ui-banner-row .ui-banner-content {
    padding-top: 130px;
  }

  .ui-mobile-head .ui-logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
  }

  /* Once scrolled, fade the logo out and drop it from the tab order. */
  .ui-mobile-head.is-scrolled .ui-logo,
  body.is-page-scrolled .ui-mobile-head .ui-logo,
  body.popup-scroll-locked .ui-mobile-head .ui-logo {
    opacity: 0;
    pointer-events: none;
  }

  .ui-mobile-head .ui-logo img {
    width: 49px;
    height: 52px;
    filter: invert(1);
  }

  .ui-menu-mobile .ui-logo img {
    width: 45px;
    height: 48px;
  }
  /* mobile menu  */
  .ui-mobile-menu-wrapper
    .ui-mobile-menu-header
    .ui-mobile-menu-actions
    > a:not(.ui-mobile-menu-close) {
    display: none;
  }
  .ui-mobile-menu-wrapper {
    padding: 111.8px 10px 10px;
  }
  .ui-mobile-menu-wrapper .ui-mobile-menu-header .ui-logo img {
    width: 49px;
    height: 52px;
  }

  .ui-mobile-menu-wrapper .ui-mobile-menu-top-links {
    justify-content: center;
  }
  /* numbers — mobile uses the same pinned reveal as desktop (animations.js
      initBannerNumbers): the banner is pinned (bg + menu + details stay) and the
      numbers scrub up over it. Here they're just full-width. */
  .ui-banner-row .ui-banner-testimonials-wrapper .ui-archery-numbers {
    left: 15px;
    right: 15px;
    width: auto;
    margin: 0;
  }

  .ui-main-archery-number {
    display: none;
  }

  /* end numbers  */

  /* In the submenu (detail) view, keep the top links + actions visible on
      mobile (tablet.css hides the top links there; the body stays hidden). */
  .ui-mobile-menu-wrapper.is-detail .ui-mobile-menu-top-links {
    display: flex;
  }

  /* Stack as a column so the actions can sit at the bottom. The wrapper's
      full height comes from the base rule below (top/bottom anchoring), so the
      column has a definite height and .ui-menu-actions (margin-top:auto) pins
      to the true bottom. */
  .ui-mobile-menu-wrapper.is-detail {
    display: flex;
    flex-direction: column;
  }

  .ui-mobile-menu-wrapper.is-detail .ui-menu-actions {
    display: flex;
    order: 1;
    /* after the panel (order 0) */
    margin-top: auto;
    /* push to the bottom of the menu */
  }

  /* Full-screen overlay. Anchor to BOTH viewport edges (top:0 + bottom:0)
      instead of sizing with 100vh: on mobile, 100vh (and 100dvh/svh/lvh) report
      the layout viewport, which is shorter than the visible area, so the page
      showed through below the menu. Edge anchoring fills the real viewport, and
      overflow-y:auto (tablet.css) scrolls a taller-than-screen panel.
      max-height:none overrides tablet.css's calc(100vh - 36px) cap so the
      bottom anchor isn't clipped. */
  .ui-mobile-menu-wrapper {
    border-radius: 0;
    padding-bottom: 45px;
    top: 0;
    bottom: 0;
    min-height: 0;
    max-height: none;
  }

  body:has(.ui-mobile-head.is-scrolled) .ui-mobile-menu-wrapper,
  body.is-page-scrolled .ui-mobile-menu-wrapper,
  body.popup-scroll-locked .ui-mobile-menu-wrapper {
    top: 0;
  }

  .ui-mobile-menu-wrapper .ui-mobile-menu-body {
    margin-bottom: 50px;
  }

  .ui-menu-temoignage-wrapper {
    display: flex;
    margin-top: 52px;
  }

  .ui-menu-temoignage-wrapper img {
    width: 30%;
    aspect-ratio: 89/120;
    object-fit: cover;
    border-radius: 15px;
  }

  .ui-menu-temoignage-wrapper .ui-menu-temoignage {
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.15);
    padding: 6px;
    flex: 1;
  }

  .ui-menu-temoignage-wrapper .ui-menu-temoignage p:first-child {
    color: #000;
    font-family: Inter;
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
  }

  .ui-menu-temoignage-wrapper .ui-menu-temoignage {
    flex-direction: column;
    display: flex;
    justify-content: space-between;
  }

  .ui-menu-temoignage-wrapper .ui-menu-temoignage p:last-child {
    color: #000;
    text-align: right;
    font-family: 'Playfair Display';
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    /* 140% */
    letter-spacing: 0.6px;
    text-transform: uppercase;
  }

  .ui-mobile-menu-wrapper .ui-menu-actions {
    display: flex;
    gap: 6px;
    margin-top: 20px;
  }

  .ui-mobile-menu-wrapper .ui-menu-actions > a {
    font-size: 14px;
    flex: 1;
  }

  .ui-menu-items-content .ui-menu-item-bottom-links {
    display: none;
  }

  .ui-menu-items-content .ui-menu-item-links-boxs {
    flex-direction: column;
    align-items: normal;
  }

  .ui-menu-items-content .ui-menu-item-links-boxs .ui-menu-item-links-box > .ui-h4-like {
    font-size: 24px;
  }

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

  .ui-menu-items-content
    .ui-menu-item-links-boxs
    .ui-menu-item-links-box
    > ul
    > li
    a {
    font-size: 16px;
  }

  .ui-mobile-menu-wrapper.is-detail .ui-mobile-menu-back {
    min-height: 42px;
  }

  .ui-menu-articles-row .ui-list-articles {
    position: initial;
  }

  .ui-menu-articles-row {
    flex-direction: column;
  }

  .ui-menu-articles-row .ui-menu-article-img {
    display: none;
  }

  .ui-menu-articles-row .ui-menu-article-content {
    background: rgba(182, 227, 211, 0.5);
    padding: 16px;
  }

  .ui-menu-articles-row .ui-menu-article-content .ui-menu-article-author p {
    max-width: 220px;
  }

  /* :last-of-type, not :last-child — the trailing "Toutes les articles" <a> is
      the real last child, so :last-child matches no .ui-article-item. */
  .ui-menu-articles-row .ui-article-item:last-of-type {
    display: none;
  }

  .ui-menu-articles-row .ui-list-articles > a {
    margin-bottom: 40px;
  }

  /* end mobile menu  */
  /* talents */
  .ui-talents-wrapper .ui-talents-row {
    flex-direction: column;
  }

  .ui-talents-wrapper .ui-talents-center-side {
    order: 0;
    padding: 28px 10px;
    border: none;
  }

  .ui-talents-wrapper .ui-talents-left-side,
  .ui-talents-wrapper .ui-talents-right-side {
    order: 2;
  }

  .ui-talents-wrapper .ui-talents-left-side,
  .ui-talents-wrapper .ui-talents-right-side {
    width: 100%;
    border: none;
    display: block;
    min-height: auto;
    padding: 10px;
  }
  .ui-talents-wrapper .ui-talents-center-side .ui-talents-title {
    font-family: Castoro;
    line-height: 38px;
    font-size: 42px;
    white-space: normal;
  }

  .ui-talents-wrapper .ui-talents-center-side p {
    margin-top: 11px;
    position: initial;
  }

  .ui-talents-wrapper {
    margin-top: 10px;
  }

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

  .ui-talents-wrapper .ui-tls-center-text,
  .ui-talents-wrapper .ui-trs-center-text {
    float: left;
    /* margin-bottom: -25px; */
  }

  .ui-talents-wrapper .ui-tls-center-text .ui-talents-figure,
  .ui-talents-wrapper .ui-trs-center-text .ui-talents-figure {
    font-size: 65px;
  }

  .ui-talents-wrapper .ui-tls-top-text,
  .ui-talents-wrapper .ui-trs-top-text {
    margin-bottom: 20px;
  }

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

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

  .ui-talents-wrapper .ui-tls-bottom-text,
  .ui-talents-wrapper .ui-trs-bottom-text {
    padding: 0;
    padding-top: 15px;
  }

  .ui-talents-wrapper .ui-tls-center-text svg,
  .ui-talents-wrapper .ui-trs-center-text svg {
    scale: 0.85;
  }

  .ui-talents-bottom-text {
    font-size: 18px;
  }

  .ui-talents-bottom-content {
    border: none;
    padding-top: 38px;
    padding-bottom: 29px;
    padding-inline: 10px;
  }

  /* programme  */
  .ui-programme-wrapper {
    padding-inline: 10px;
  }

  .ui-programme-items {
    gap: 18px;
  }

  .ui-programme-items .ui-programme-item {
    padding-inline: 7px;
    padding-block: 17px;
  }

  span.ui-programme-item-index {
    size: 82px;
    line-height: 51px;
    left: 7px;
  }

  .ui-programme-item-texts p {
    font-size: 14px;
  }

  /* programme  */
  /* promotions */
  .ui-promotions-wrapper {
    padding-top: 0;
  }

  .ui-promotions-wrapper
    .ui-promotions-row
    .ui-promotions-head-right
    .ui-promotion-avatars-wrapper {
    display: none;
  }

  .ui-promotions-row {
    display: block;
  }

  .ui-promotions-wrapper .ui-promotions-row > h2 {
    font-size: 42px;
    margin-bottom: 15px;
  }

  .ui-promotions-wrapper .ui-promotions-row .ui-promotions-head-right h2 {
    max-width: 267px;
    margin-left: auto;
  }

  /* end promotions */

  /* history */
  .ui-history-example-wrapper .ui-history-example-box {
    min-width: 100%;
  }

  .ui-history-example-wrapper {
    padding-inline: 15px;
    max-height: max-content;
    padding-block: 30px;
  }

  .ui-history-example-wrapper .ui-history-example-box {
    padding-inline: 6px;
    padding-bottom: 20px;
  }

  .ui-history-example-wrapper .ui-history-example-box > p {
    font-size: 10px;
    margin-bottom: 5px;
  }

  /* Mobile goes back to the overlay layout: a full-width square image with the
     promotion/title/name text absolutely positioned on top of it. */
  .ui-history-example-wrapper
    .ui-history-example-box
    .ui-pe-box-image-row
    .ui-pe-box-image {
    width: 100%;
  }

  .ui-history-example-wrapper
    .ui-history-example-box
    .ui-pe-box-image-row
    .ui-pe-box-image-content {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 10px;
    bottom: 10px;
    flex: none;
  }

  .ui-pe-box-texts-row .ui-pe-box-text-content {
    display: none;
  }

  /* Revealed when JS adds .is-open to the row (toggle click, main.js) */
  .ui-pe-box-texts-row.is-open .ui-pe-box-text-content {
    display: block;
  }

  a.ui-pe-box-text-toggle {
    color: #fff;
    text-align: center;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.26px;
    text-decoration-line: underline;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    margin-right: 5px;
  }

  /* end history */

  /* articles */
  /* The list overlays the main article (animations.js initArticlesPin riseOver):
      the head pins at the top, the main article is the backdrop, and the list
      track rises up over it. JS sets the list height to the main article's. */
  .ui-articles-row {
    position: relative;
  }

  .ui-list-articles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  /* White on the moving track (not the list), so before it rises the main
      article shows through, and as the articles scroll up they cover it. */
  .ui-list-articles .ui-list-articles-track {
    background: #fff;
  }

  .ui-articles-wrapper .ui-list-articles {
    pointer-events: none;
  }

  .ui-articles-wrapper .ui-list-articles-track {
    pointer-events: auto;
  }

  /* The last byline (14px text on a 14px line) spills ~2px out of the track's
     box. The pin scrolls by scrollHeight, which counts that spill, so the white
     track stopped 2px short of the list's bottom edge and the main article's
     card showed through as a teal line. Padding takes the spill inside the box,
     so the track ends exactly on the list's edge. */
  .ui-articles-wrapper .ui-list-articles-track {
    padding-bottom: 16px;
  }

  /* Line-height to match the 42px text: the desktop 82px left ~20px of empty
     line above the letters, a gap under the Menu button once the block pins. */
  .ui-articles-wrapper .ui-articles-head h2 {
    font-size: 42px;
    line-height: 46px;
  }

  .ui-articles-wrapper .ui-articles-head {
    flex-direction: column-reverse;
    margin-bottom: 0;
  }

  .ui-articles-wrapper {
    padding-top: 21px;
    padding-inline: 10px;
  }

  .ui-articles-wrapper .ui-articles-head .ui-btn-sky-blue {
    margin-bottom: 30px;
    border: 1px solid #e9511c;
    background: #e9511c;
    color: #fff;
  }

  /* The promotions band's lauréats button is hidden here, so it takes the
     place of « Tous les articles », which moves below the list (see
     template-parts/home/articles.php). */
  .ui-articles-wrapper .ui-articles-head .ui-articles-cta-articles {
    display: none;
  }

  /* Further above the title than the line the articles pin locks it on (8px
     under the fixed Menu button, ~60px once scrolled and ~96px at most —
     animations.js initArticlesPin): this button belongs to the lauréats above,
     not to the pinned frame. */
  .ui-articles-wrapper .ui-articles-head .ui-articles-cta-laureats {
    display: flex;
    margin-bottom: 100px;
  }

  .ui-articles-wrapper .ui-articles-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
  }

  .ui-articles-wrapper .ui-articles-foot .ui-btn-sky-blue {
    border: 1px solid #e9511c;
    background: #e9511c;
    color: #fff;
  }

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

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

  /* end articles */

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

  .ui-discover-wrapper
    .ui-discover-row
    .ui-discover-content
    .ui-discover-title-1
    .ui-discover-tag {
    display: none;
  }

  .ui-discover-wrapper {
    margin-top: 30px;
    padding-bottom: 40px;
    padding-inline: 10px;
  }

  .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: 42px;
    max-width: 100%;
    text-align: left;
  }

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

  .ui-discover-wrapper .ui-discover-row .ui-discover-details {
    margin-top: 15px;
  }

  /* end discover */

  /* mentors */
  .ui-mentors-wrapper .ui-mentors-bottom-box {
    display: none;
  }

  .ui-mentors-wrapper {
    justify-content: flex-end;
    padding: 8px;
    margin-top: 40px;
    margin-inline: 11px;
  }

  .ui-mentors-wrapper .ui-mentors-top-box {
    max-width: 100%;
    padding-block: 9px;
    padding-inline: 10px;
  }

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

  /* end mentors */

  /* reviews */
  .ui-reviews-wrapper {
    padding-inline: 10px;
    padding-block: 20px;
  }

  /* Card fits the pinned viewport: full width, height from content, never
      below 259px (a long quote grows the card, see styles.css). The stacked
      cards share one grid cell, so they all take the tallest one's height and
      the block doesn't jump between reviews. */
  .ui-review-card {
    width: 100%;
    min-height: 259px;
  }

  /* Pin below the fixed mobile header bar (~68px) so the cards clear it, and
      use the remaining height (block is advanced by scroll, animations.js). */
  /* .ui-reviews-sticky {
      top: 68px;
      height: calc(100vh - 68px);
   } */

  .ui-reviews-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .ui-reviews-left,
  .ui-reviews-right {
    display: contents;
  }

  .ui-reviews-right h2 {
    order: 1;
    font-size: 42px;
    text-align: left;
  }

  .ui-reviews-left h2 {
    order: 2;
    font-size: 24px;
    text-align: right;
  }

  .ui-reviews-cards {
    order: 3;
    justify-content: center;
  }

  .ui-reviews-right .ui-reviews-images {
    order: 4;
    gap: 12px;
  }

  .ui-reviews-left .ui-reviews-images {
    display: none;
  }

  .ui-reviews-right .ui-review-image.is-shown {
    flex: 1 1 0;
  }

  .ui-reviews-right .ui-review-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  /* end reviews */
  /* president */
  .ui-president-wrapper .ui-president-body {
    flex-direction: column-reverse;
  }

  .ui-president-tablet-title h2:first-child {
    display: none;
  }

  .ui-president-head {
    display: block;
  }

  .ui-president-wrapper .ui-president-head h2 {
    font-size: 42px;
  }

  .ui-president-wrapper .ui-president-head h2:last-child {
    display: none;
  }

  .ui-president-wrapper .ui-president-body .ui-president-img {
    width: 100%;
    aspect-ratio: 300 / 224;
  }

  .ui-president-tablet-title > h2:last-child {
    margin-bottom: 15px;
    font-size: 24px;
  }

  .ui-president-wrapper .ui-president-body .ui-president-content p {
    text-align: right;
    font-size: 16px;
    border: none;
    margin-bottom: 0;
  }

  .ui-president-wrapper
    .ui-president-body
    .ui-president-content
    .ui-btn-sky-blue {
    width: 100%;
    max-width: 100%;
  }

  .ui-president-wrapper {
    padding-block: 10px;
  }
  /* end president */

  /* quote — same mobile values as the Programme page's band */
  .ui-quote-wrapper {
    padding-block: 20px;
  }

  .ui-quote-wrapper .edito {
    padding: 32px 24px;
    gap: 16px;
  }

  .ui-quote-wrapper .edito-q {
    font-size: 64px;
  }

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

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

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

  /* 4 logos across on mobile (JS sets the exact width; this is the fallback).
      3 gaps of 8px + 40px padding. */
  .ui-partners-logos .ui-partners-logo {
    width: calc((100vw - 64px) / 4);
  }

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

  .ui-partners-wrapper {
    padding-inline: 10px;
  }

  .ui-partners-mobile-cta {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
  }

  .ui-partners-mobile-cta > a {
    font-weight: 400;
    border-radius: 15px;
    border: 1px solid #d0eff2;
    background: #d0eff2;
  }
  /* end partners */

  /* five-levers */
  .ui-five-levers-row {
    flex-wrap: wrap;
  }

  /* Clip the card stack so the cards waiting below aren't visible before they
      animate in (no rotation on mobile, so nothing useful gets clipped). */
  .ui-five-levers-cards {
    overflow: hidden;
  }

  .ui-five-levers-wrapper {
    padding-inline: 10px;
    padding-top: 0;
    padding-bottom: 20px;
  }
  /* Let the card column shrink to the viewport. Without min-width:0 the flex
     item keeps its card's intrinsic (min-content) width, so long card text
     pushes the page past 320px; overflow:hidden on .ui-five-levers-cards then
     clips anything wider than this window. */
  .ui-fl-center-row-item{
    width: 100%;
    min-width: 0;
    padding-bottom: 29px;
  }

  .ui-five-levers-card {
    width: 100%;
    aspect-ratio: 300/393;
    height: auto;
    padding-block: 24px;
    padding-inline: 10px;
  }

  .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: 42px;
  }

  .ui-five-levers-wrapper
    .ui-five-levers-row
    .ui-fl-first-row-item
    h2:nth-child(2) {
    text-align: right;
  }

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

  .ui-five-levers-wrapper .ui-five-levers-row .ui-fl-first-row-item p {
    color: #000;
    text-align: right;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 171.429% */
  }

  .ui-five-levers-wrapper .ui-five-levers-row .ui-fl-first-row-item {
    margin-bottom: 30px;
  }

  /* Real-device pin glitch: the block is pinned via a body scroll-lock that
     toggles body{position:fixed} (styles.css .popup-scroll-locked), which forces
     a full repaint on mobile. The GSAP-transformed cards already sit on their own
     compositor layer and survive it, but the static title text does not, so it
     flashes ("removed then shown instantly") the instant the pin engages. Promote
     the row's text blocks to their own layer so they survive the repaint. */
  .ui-five-levers-wrapper .ui-five-levers-row .ui-fl-first-row-item,
  .ui-five-levers-wrapper .ui-five-levers-row .ui-fl-last-row-item {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .ui-five-levers-wrapper .ui-five-levers-row .ui-fl-last-row-item h3 {
    color: #000;
    font-family: Castoro;
    font-size: 42px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
  }

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

  /* end five-levers */

  /* footer  */
  footer.ui-footer .ui-footer-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* min-height: 0 undoes the 298px minimum tablet.css gives both boxes (it
     only makes sense side by side); here they size to their content. */
  footer.ui-footer .ui-footer-row .ui-footer-ressources-box {
    width: 100%;
    height: auto;
    min-height: 0;
    background: transparent;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 0;
    gap: 10px;
  }

  footer.ui-footer .ui-footer-row .ui-footer-newsletter-box {
    max-width: 100%;
  }

  footer.ui-footer .ui-footer-row .ui-footer-links-box {
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .ui-footer-bottom-links-wrapper {
    flex-wrap: wrap;
    gap: 5px;
    padding-block: 20px;
  }

  footer.ui-footer {
    padding-inline: 10px;
  }

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

  footer.ui-footer
    .ui-footer-row
    .ui-footer-newsletter-box
    .ui-footer-newsletter {
    padding-inline: 12px;
    height: auto;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-newsletter-box
    .ui-footer-newsletter
    .ui-footer-newsletter-content
    p {
    margin-bottom: 16px;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-newsletter-box
    .ui-footer-newsletter
    .ui-footer-newsletter-form
    form
    input {
    max-width: none;
    font-size: 14px;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-newsletter-box
    .ui-footer-newsletter
    .ui-footer-newsletter-form
    form
    button {
    font-size: 16px;
  }

  footer.ui-footer .ui-footer-row .ui-footer-links-box > .ui-h2-like {
    display: none;
  }

  .ui-footer-bottom-links-wrapper p {
    text-align: center;
    order: 2;
    font-size: 14px;
  }

  .ui-footer-bottom-links-wrapper .ui-footer-bottom-links {
    width: 100%;
    padding-block: 0px;
    justify-content: center;
    order: 1;
  }

  footer.ui-footer .ui-footer-row .ui-footer-ressources-box .ui-frb-cart {
    display: none;
  }

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

  footer.ui-footer .ui-footer-row .ui-footer-ressources-box .ui-frb-links > h2 {
    font-size: 24px;
  }

  /* js/main.js moves the socials <ul> out on mobile, which leaves Ressources
     as the :last-child that the desktop rule aligns to the end. */
  footer.ui-footer
    .ui-footer-row
    .ui-footer-ressources-box
    .ui-frb-links
    > .ui-frb-links-list
    ul:first-child {
    gap: 0;
    text-align: start;
  }

  footer.ui-footer .ui-footer-row .ui-footer-links-box > ul {
    display: block;
  }

  footer.ui-footer .ui-footer-row .ui-footer-links-box ul:last-child li a {
    text-align: right;
    display: block;
  }

  footer.ui-footer .ui-footer-row .ui-footer-links-box ul li a {
    font-size: 14px;
    line-height: 22px;
    text-align: left;
  }

  .ui-footer-bottom-links-wrapper > a {
    display: flex;
    justify-content: center;
    order: 3;
    color: #000;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px; /* 116.667% */
    letter-spacing: 0.6px;
    text-align: center;
    margin: 0 auto;
  }

  .ui-footer-bottom-links-wrapper > a > span {
    text-decoration: underline;
  }

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

  footer.ui-footer
    .ui-footer-row
    .ui-footer-ressources-box
    .ui-footer-logo
    img {
    width: 62px;
    height: 66px;
  }

  footer.ui-footer .ui-footer-row .ui-footer-ressources-box .ui-frb-links {
    border-radius: 15px;
    background: #70cbd3;
    padding: 11px;
    flex: 1;
  }

  footer.ui-footer
    .ui-footer-row
    .ui-footer-ressources-box
    .ui-frb-links
    > .ui-frb-links-list
    ul:last-child {
    display: block;
  }
  /* end footer  */
}

/* "Mon espace" in the fixed bar on phones: the tighter type "Se connecter"
   uses on the Ressources page (css/resources.css), so the row still fits a
   320px screen next to the logo and Menu. */
@media (max-width: 767px) {
  .ui-menu-mobile .ui-bt-actions .ui-btn-sky-blue.ui-member-toggle {
    font-size: 15px;
    line-height: 20px;
    padding: 4px 10px;
  }

  .ui-member-chevron {
    width: 14px;
    height: 14px;
  }
}
