/* ----------------------------------------------------------------
        Custom CSS
        Add all your Custom Styled CSS here for New Styles or
        Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* Full width wrapper */
#wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Suppress header clone spacer */
.header-wrap-clone {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

/* Fix region-header as one fixed unit (top-bar + menu together) */
.region-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
}

/* header-wrap sits naturally inside the fixed region */
#header-wrap {
  position: relative !important;
  top: auto !important;
}

/* Push content below fixed header (50px topbar + 119px menu = 169px) */
:root {
  --usj-header-height: 230px;
}
@media (max-width: 991.98px) {
  :root {
    --usj-header-height: 250px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --usj-header-height: 270px;
  }
}

.content {
  margin-top: var(--usj-header-height) !important;
}

/* Pull full-bleed banner under transparent header */
.content .homepage_banner_swiper {
  margin-top: -170px;
}

/* Frontpage: banner slides under header, content starts at 0 */
.path-frontpage .content {
  margin-top: 0 !important;
}

/* Frontpage: banner already correctly positioned */
.path-frontpage .content .homepage_banner_swiper {
  margin-top: 0 !important;
}

/* Visages: photo grid starts right below header like a banner page */
.path-visages .content,
.page-route-view-visages-page-1 .content {
  margin-top: 0 !important;
}


/* ============================================================
   MOVED FROM ASSET INJECTOR — 2026-05-19
   ============================================================ */

/* --- menu_css --- */
.menu-item {
  list-style: none;
}

/* --- main_menu_usj --- */
.international {
  display: flex;
  flex-direction: column;
}

/* --- menu_arabe --- */
html[dir="rtl"] .sub_menu_ul > li.menu-item.sub-menu {
  position: relative;
}
html[dir="rtl"] .sub_menu_ul > li.menu-item.sub-menu > ul.sub-menu-container {
  right: 100% !important;
  left: auto !important;
  top: 0;
}
html[dir="rtl"] .sub_menu_ul > li.menu-item.sub-menu > .mega-menu-content {
  right: 100% !important;
  left: auto !important;
  top: 0;
}
html[dir="rtl"] .sub_menu_ul > li.menu-item.sub-menu > ul.sub-menu-container,
html[dir="rtl"] .sub_menu_ul > li.menu-item.sub-menu > .mega-menu-content {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .sub_menu_ul .menu-link > div {
  position: relative;
  text-align: right;
  direction: rtl;
  padding-left: 22px;
  padding-right: 0;
}
html[dir="rtl"] .sub_menu_ul .menu-link > div > .sub-menu-indicator {
  position: absolute;
  left: 0;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  margin-right: 8px;
}
html[dir="rtl"] .sub_menu_ul .menu-item.sub-menu > .menu-link > div > .sub-menu-indicator.fa-caret-down::before {
  content: "\f0d9";
}
html[dir="rtl"] .sub_menu_ul .sub-menu-trigger.fa-chevron-right::before {
  content: "\f053";
}

/* --- srh_membres --- */
.srh-membres {
  display: flex;
  align-items: center;
  gap: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
}
.srh-membres img {
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.srh-membres .srh-membres-content h4 {
  margin-bottom: 0;
}
.srh-membres .srh-membres-content h6,
.srh-membres .srh-membres-content p {
  color: #6c757d;
  margin-bottom: 0;
  font-weight: 400;
}

/* --- srh_newsletter --- */
.srh-newsletter {
  max-width: 18.75rem;
}
.srh-newsletter-card {
  position: relative;
  padding-top: 50%;
  border-radius: 0.75rem;
  overflow: hidden;
}
.srh-newsletter-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.srh-newsletter-card:hover .srh-newsletter-bg {
  animation: kenburns 20s ease-out both;
}
@keyframes kenburns {
  from { transform: scale(1); transform-origin: 84% 84%; }
  to   { transform: scale(1.25) translate(1.25rem, 0.9375rem); transform-origin: right bottom; }
}
.srh-newsletter-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), #333);
  z-index: 1;
}
.srh-newsletter-content {
  position: absolute;
  left: 3rem;
  right: 1.5rem;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transform: translateY(-20%);
  transition: transform 0.5s ease;
}
.srh-newsletter-card:hover .srh-newsletter-content {
  transform: translateY(-50%);
}
.srh-newsletter-date {
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
}
.srh-newsletter-date a {
  color: #fff !important;
  text-decoration: none;
}
.srh-newsletter-content p {
  margin: 0;
  padding-top: 1.5rem;
}
.srh-btn {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 5rem;
  padding: 0.375rem 1.125rem;
  font-size: 1.1rem;
  background: transparent;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.4s ease 0.1s, background 0.2s ease, color 0.2s ease;
}
.srh-newsletter-card:hover .srh-btn {
  opacity: 1;
}
.srh-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* --- arot_webform --- */
.registration-row > .webform-flex:first-child {
  flex: 0 0 60%;
  max-width: 60%;
}
.registration-row > .webform-flex:last-child {
  flex: 0 0 40%;
  max-width: 40%;
}
.registration-row .left-col,
.registration-row .right-col {
  width: 100% !important;
}
.registration-row .right-col .js-form-item,
.registration-row .right-col .form-item,
.registration-row .right-col .webform-element-description,
.registration-row .right-col .payment-card {
  width: 100% !important;
  max-width: 100% !important;
}
.registration-row .right-col {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}
.payment-card h3 {
  margin-bottom: 15px;
  font-weight: 600;
  color: #212529;
  text-align: center;
}
.payment-amount {
  font-size: 28px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 10px;
  text-align: center;
}
.payment-note {
  text-align: center;
  font-size: 14px;
  color: #6c757d;
}
@media (max-width: 768px) {
  .registration-row {
    flex-direction: column;
  }
  .registration-row > .webform-flex:first-child,
  .registration-row > .webform-flex:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.webform-actions {
  display: flex;
  justify-content: flex-end;
}

/* FOR ALBUM PHOTO TWIG */

.album-photo-page .album-gallery {
    column-count: 1;
    column-gap: 1.25rem;
  }

  @media (min-width: 576px) {
    .album-photo-page .album-gallery {
      column-count: 2;
    }
  }

  @media (min-width: 992px) {
    .album-photo-page .album-gallery {
      column-count: 3;
    }
  }

  .album-photo-page .album-photo-item {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .album-photo-page .album-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transform: none !important;
    object-fit: contain;
  }

  .album-photo-page .album-download-link {
    display: inline-block;
    margin-top: .35rem;
    font-size: 13px;
    color: #031250;
    text-decoration: underline;
  }

  .album-event-details {
    margin-bottom: 2rem;
  }

  .album-event-details h4 {
    margin-top: 1.5rem;
    margin-bottom: .75rem;
    color: #031250;
  }

  .album-event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  @media (max-width: 991px) {
    .album-event-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 575px) {
    .album-event-grid {
      grid-template-columns: 1fr;
    }
  }

  .album-event-col strong {
    display: block;
    color: #031250;
    margin-bottom: .25rem;
  }

/* ==========================================
   Slick Carousel Arrows
   ========================================== */

/* Keep screen reader text accessible */
.view-content .slick__arrow .visually-hidden {
  position: absolute !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

/* Arrow buttons */
.view-content .slick-prev,
.view-content .slick-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid #333;
  border-radius: 50%;
  background: transparent;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  z-index: 50;
  cursor: pointer;
}

/* Remove Slick's default icon */
.view-content .slick-prev::before,
.view-content .slick-next::before {
  content: "";
}

/* Create clean chevrons */
.view-content .slick-prev::after,
.view-content .slick-next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
}

/* Left arrow */
.view-content .slick-prev::after {
  transform: translate(-35%, -50%) rotate(-135deg);
}

/* Right arrow */
.view-content .slick-next::after {
  transform: translate(-65%, -50%) rotate(45deg);
}

/* Hover */
.view-content .slick-prev:hover,
.view-content .slick-next:hover {
  border-color: #C00000;
}

.view-content .slick-prev:hover::after,
.view-content .slick-next:hover::after {
  border-color: #C00000;
}

/* Hide disabled arrows */
.view-content .slick-prev.slick-disabled,
.view-content .slick-next.slick-disabled {
  display: none;
}


/* Carousel Video */
.event-video {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

.event-video .video-embed-field-responsive-video {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.event-video .fluid-width-video-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-top: 56.25% !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

.event-video .fluid-width-video-wrapper iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}

h1 > span,
h2 > span,
h3 > span,
h4 > span,
h5 > span,
h6 > span {
    color: inherit !important;
}

.mega-menu-content
.mega-menu-column
.sub-menu-container
.sub-menu-container
.menu-link {
    padding-inline-start: 20px;
}

/* Desktop: invisible, but still occupies its column */
@media (min-width: 992px) {
    .mega-menu .shift-col {
        visibility: hidden;
    }
}

/* Mobile: remove it completely */
@media (max-width: 991.98px) {
    .mega-menu .shift-col {
        display: none !important;
    }
}

.is-expanded-menu .mega-menu:not(.mega-menu-full) .mega-menu-content .container {
  margin-top: -5px !important;
}

.equipe-grid .team-image {
  overflow: hidden;
}

.equipe-grid .equipe-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
}

.equipe-grid .equipe-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  object-position: top;
  border-radius: 0 !important;
}

/* Grid cards css */
/* =========================================================
   CARD
   ========================================================= */

.paragraph--type--card {
  width: 100%;
  height: 100%;
}

.paragraph--type--card .grid-inner {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
}


/* Make Drupal's wrappers participate in equal height */

.grid-paragraph .paragraph--type--grid-item,
.grid-paragraph .field--name-field-grid-card,
.grid-paragraph .field--name-field-grid-card > .field__item {
  width: 100%;
  height: 100%;
}


/* =========================================================
   IMAGE
   ========================================================= */

.paragraph--type--card .card-image-fit {
  width: 100%;
  height: 190px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
}


/* Drupal media wrappers */

.paragraph--type--card .card-image-fit .field,
.paragraph--type--card .card-image-fit .field__item,
.paragraph--type--card .card-image-fit .media,
.paragraph--type--card .card-image-fit .field--name-field-media-image {
  width: 100%;
  height: 100%;
}

.paragraph--type--card .card-image-fit .media,
.paragraph--type--card .card-image-fit .field__item,
.paragraph--type--card .card-image-fit .field--name-field-media-image {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Keep complete image — NEVER crop */

.paragraph--type--card .card-image-fit img {
  display: block !important;

  width: auto !important;
  height: auto !important;

  max-width: 100% !important;
  max-height: 100% !important;

  object-fit: contain !important;
  object-position: center !important;

  margin: auto;
}


/* =========================================================
   CONTENT
   ========================================================= */

.paragraph--type--card .card-content {
  width: 100%;

  /*
   * IMPORTANT:
   * Do NOT use flex:1 here.
   * That was contributing to the giant empty area.
   */

  padding: 12px 16px 16px !important;

  text-align: center;
}


/* =========================================================
   TITLE
   ========================================================= */

.paragraph--type--card h4.card-title {
  margin: 0 !important;
  padding: 0 !important;

  font-size: 1rem;
  line-height: 1.25;

  font-weight: 600;

  text-align: center;

  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}


/* Theme-proof the link */

.paragraph--type--card h4.card-title a {
  display: block;

  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit;

  color: inherit;

  white-space: normal;
  word-break: normal;

  text-decoration: none;
}


/* =========================================================
   SUBTITLE
   ========================================================= */

.paragraph--type--card .card-subtitle {
  margin: 0 0 5px;

  font-size: 0.78rem;
  line-height: 1.25;

  text-align: center;
}


/* =========================================================
   6 CARDS PER ROW
   ========================================================= */

@media (min-width: 992px) {

  .grid-paragraph .col-lg-2 .card-image-fit {
    height: 140px;
  }

  .grid-paragraph .col-lg-2 .card-content {
    padding: 10px 8px 12px !important;
  }

  .grid-paragraph .col-lg-2 h4.card-title {
    font-size: 0.85rem;
  }


  /* 4 CARDS */

  .grid-paragraph .col-lg-3 .card-image-fit {
    height: 180px;
  }

  .grid-paragraph .col-lg-3 h4.card-title {
    font-size: 1rem;
  }


  /* 3 CARDS */

  .grid-paragraph .col-lg-4 .card-image-fit {
    height: 210px;
  }

  .grid-paragraph .col-lg-4 h4.card-title {
    font-size: 1.05rem;
  }


  /* 2 CARDS */

  .grid-paragraph .col-lg-6 .card-image-fit {
    height: 240px;
  }

  .grid-paragraph .col-lg-6 h4.card-title {
    font-size: 1.1rem;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

  .paragraph--type--card .card-image-fit {
    height: 220px;
  }

  .paragraph--type--card h4.card-title {
    font-size: 1rem;
  }

}


/* Fondation usj testimonials */
.testimonial-card {
  margin-bottom: 2rem;
}

.testimonial-card__bubble {
  border-radius: 14px;
  padding: 18px;
  background: #f8f9fa;
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__media {
  flex: 0 0 70px;
}

.testimonial-card__image img {
  display: block;
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 999px;
}

.testimonial-card__image-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: #f1f1f1;
}

.testimonial-card__meta {
  min-width: 0;
}

.testimonial-card__author,
.testimonial-card__position {
  margin: 0;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.equipe-photo--float-right {
  float: right;
  margin: 0 0 25px 40px;
}

.equipe-photo--float-right img {
  display: block;
  width: 100%;
  height: auto;
}

.equipe-biography-content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 767.98px) {
  .equipe-photo--float-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 30px;
  }
}
/* USJ catalogue arrow visibility fix */
.rs-accordion-style1 .card .card-header .acdn-title:not(.collapsed)::after {
  color: #212529 !important;
}

/* PDF-link rows retain a right-pointing arrow. */
.rs-accordion-style1 .card .card-header .acdn-title:not([data-toggle="collapse"])::after {
  transform: none !important;
}

/* USJ arrows only for expandable rows */
.rs-accordion-style1 .card .card-header .acdn-title:not([data-toggle="collapse"]):not([data-bs-toggle="collapse"])::after {
  content: none !important;
}

 
/* Actus Sidebar */

.usj-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.usj-copy-link i {
  line-height: inherit;
}

.related-actualites-sidebar {
  background-color: #f8f9fa;
  padding: 24px 20px;
  height: fit-content;
}


.related-actualites-sidebar .related-actualites-section {
  min-width: 0;
}

.related-actualites-sidebar .related-actualite-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  box-sizing: border-box;
}

.related-actualites-sidebar .related-actualite-image-link {
  display: block;
  width: 100%;
}

.related-actualites-sidebar .related-actualite-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* SUCCESS STORY */

.success-story-item {
  align-items: center;
  margin-bottom: 40px;
}

.success-story-image {
  width: 340px;
  height: 340px;
  overflow: hidden;
}

.success-story-image img {
  width: 340px;
  height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.success-story-hashtag {
  color: #C00000 !important;
  font-size: 14px;
}

.success-story-content h2 {
  margin-bottom: 20px;
}

.success-story-content h5 {
  margin-bottom: 20px;
}

.success-story-description {
  text-align: justify;
}

@media (max-width: 991px) {
  .success-story-image {
    margin-bottom: 25px;
  }
}

/* International carousel images */
#international .oc-item .bg-danger img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}
