/* Summary */
/* 01 — Fonts */
/* 02 — Variables */
/* 03 — Global Styles */
/* 04 — Widgets */
/* 05 — Gadgets */
/* 06 — Footer */

/*=================================================================
                            01 — Fonts
==================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');


/*=================================================================
                            02 — Variables
==================================================================*/
:root {
    /* Lumapps Custom typography */
    --lumx-custom-typography-font-family: "Lato", sans-serif;
}


/*=================================================================
                            03 — Global Styles
==================================================================*/
/* ========== General Styles ========== */
body,
body.theme-lumapps,
body.front-office {
	font-family: var(--lumx-custom-typography-font-family); 
	background-color: #ffffff;
}

/* ========== Fixed Header ========== */
.component-row--fix-header,
.content-module {
    background-attachment: fixed!important; 
    background-position: center center!important;
    background-size: cover!important;
    background-image: url(https://pullup.app.lumapps.com/serve/4791391194456157-7512955264092053/pullpup_linesbackground_soft.svg?contentDisposition=inline)!important;  
}

/* ========== Directory ========== */
.user-directory__wrapper {
  box-shadow: none !important;
  background-color: transparent !important;
}
.content-module {
  margin-bottom: 12px !important;
}

/* ========== Metadate Light Theme ========== */
.metadata-link--theme-light {
    color: #5D04D9 !important;
}

/*=================================================================
                        04 — Widgets
==================================================================*/
.widget--home-video-gallery .lumx-slideshow-controls__pagination-item {
    border-color: #ffffff !important;
}
.widget--home-video-gallery .lumx-button--emphasis-low {
    color: #ffffff !important;
}

/* ==========================================================================
   Widget "Actualités à la une" — home page Odyssey
   Transforme le carrousel LumX (lumx-slideshow) en grille statique 2/3-1/3 :
   1 actu principale (image pleine largeur + titre sur l'image)
   + 4 actus suivantes empilées (image à gauche / titre à droite)

   DÉPLOIEMENT :
   1. Sur le widget "Liste de contenus", onglet Style > Avancé > "Classes du
      widget" → saisir : actus-home
      (Lumapps préfixera automatiquement en "widget--actus-home")
   2. Copier tout ce fichier dans l'admin Lumapps > Style > Avancé >
      "Site theme" (ou "head tag (HTML)" si tu veux éviter le flash au
      chargement), puis Enregistrer.
   ========================================================================== */

/* 1. Hauteur : on désactive la hauteur fixe + le scroll interne du widget */
.widget--actus-home .widget-content {
  height: auto !important;
  overflow: visible !important;
}

/* 2. On neutralise le comportement "carrousel" (scroll horizontal, snap) */
.widget--actus-home .lumx-slideshow__wrapper--scroll-snap {
  scroll-snap-type: none !important;
  overflow: visible !important;
}

/* 3. Grille 2/3 - 1/3 */
.widget--actus-home .lumx-slideshow__wrapper {
  display: grid !important;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(4, 1fr);
  gap: 16px;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
}

/* On force l'affichage de tous les slides (plus un seul actif à la fois) */
.widget--actus-home .lumx-slideshow-item-group {
  display: block !important;
  visibility: visible !important;
  position: static !important;
  width: auto !important;
  opacity: 1 !important;
}

.widget--actus-home .block-slideshow__item-wrapper,
.widget--actus-home .block-slideshow__item,
.widget--actus-home .block-page-preview {
  height: 100%;
}

/* Étirement forcé de la vignette principale sur toute la hauteur des 4 lignes
   qu'elle couvre (sans ça, sa hauteur reste calée sur le ratio intrinsèque
   de l'image, plus courte que la colonne de droite) */
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) {
  height: 100% !important;
  align-self: stretch !important;
}
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-slideshow__item-wrapper,
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-slideshow__item,
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-page-preview,
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-page-preview__thumbnail-wrapper,
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .lumx-thumbnail {
  height: 100% !important;
}

/* Actu principale (1er slide) : colonne 1, occupe toute la hauteur */
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1 / span 4;
}

/* 4 actus suivantes : colonne 2, une ligne chacune */
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(3) { grid-column: 2; grid-row: 2; }
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(4) { grid-column: 2; grid-row: 3; }
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(5) { grid-column: 2; grid-row: 4; }

/* 4. Contrôles du carrousel (flèches, pagination, play) devenus inutiles */
.widget--actus-home .block-slideshow__controls {
  display: none !important;
}

/* 5. Vignettes secondaires (2 à 5) : mode "cover plein cadre" → "image gauche / titre droite" */
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .block-page-preview {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .lumx-thumbnail,
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .block-image {
  border-radius: 0 !important;
}

.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .block-page-preview__thumbnail-wrapper {
  position: static !important;
  inset: auto !important;
  flex: 0 0 110px;
  width: 110px;
}

.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .lumx-thumbnail {
  position: static !important;
  height: 100% !important;
}

.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .block-page-preview__content {
  position: static !important;
  background: none !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 12px !important;
  color: #1a1a1a;
}

/* Neutralise l'overlay dégradé noir (::before), qui reste actif indépendamment
   du contenu et se déploie sur toute la colonne une fois le parent en position: static */
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .block-page-preview__content::before,
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .block-page-preview__thumbnail-wrapper::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .block-page-preview__date {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  color: #6b6b6b;
  margin-bottom: 2px;
}

.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .block-page-preview__title {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
}

.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .block-page-preview__title a {
  color: inherit;
}

/* Pas assez de place pour les réactions sur les petites vignettes */
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) .block-page-preview__field--reactions {
  display: none;
}

/* 6. Actu principale : on garde le mode cover natif (déjà conforme au design),
      on ajuste juste la taille du titre */
.widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-page-preview__title {
  font-family: 'Lato', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

/* 7. Responsive : image principale en haut, les 4 suivantes empilées en dessous,
      pleine largeur */
/* 8. Desktop/tablette uniquement : espace un peu plus généreux entre les
   vignettes secondaires, ce qui agrandit d'autant la vignette principale
   (calée sur la même hauteur totale) */
@media (min-width: 1081px) {
  .widget--actus-home .lumx-slideshow__wrapper {
    gap: 24px;
  }
}

@media (max-width: 1080px) {
  .widget--actus-home .lumx-slideshow__wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
    height: 400px !important;
    overflow: hidden;
    position: relative !important;
  }

  /* Cover mode = boîtes superposées en absolute. Sans ça, certaines
     s'empilent en plus les unes des autres (vignette trop haute) et le
     titre n'est plus ancré en bas (il se retrouve au milieu) */
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-slideshow__item-wrapper,
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-slideshow__item,
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-page-preview,
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-page-preview__thumbnail-wrapper,
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .lumx-thumbnail {
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
  }

  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-page-preview__content {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    padding: 16px !important;
  }
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(n+2) {
    grid-column: 1;
  }
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(2) { grid-row: 2; }
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(3) { grid-row: 3; }
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(4) { grid-row: 4; }
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(5) { grid-row: 5; }

  /* Titre de l'actu principale : plus petit + limité à 2 lignes pour ne pas
     chevaucher les réactions en dessous */
  .widget--actus-home .lumx-slideshow-item-group:nth-of-type(1) .block-page-preview__title {
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/*=================================================================
                        05 — Gadgets
==================================================================*/
/* ========== Alert Message ========== */
.widget--shared-alert-message .content-block__field {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    height: 40px;
    padding: 10px 0;
}
.widget--shared-alert-message .content-block-title {
    position: absolute;
    display: flex;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    gap: 8px;
    white-space: nowrap;
    animation: smooth-scroll 20s linear infinite;
    left: 0; /* Start aligned to left edge */
}
/* Text styling */
.widget--shared-alert-message .content-block-title span {
    font-size: 18px !important;
}
/* Icon inside a perfectly centered circular background */
.widget--shared-alert-message .content-block-title::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-image: url("https://pullup.app.lumapps.com/serve/4791391194456157-4503433254095391/pullup_warning_circle.svg?contentDisposition=inline");
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}
.widget--shared-alert-message .lumx-link__content {
    font-size: 14px;
}
.widget--shared-alert-message .block-slideshow--grouped .block-slideshow__controls {
    display: none !important;
}


/* ========== Widget Footer ========== */
.widget-footer__icon {
    transition: transform 0.5s ease; /* Smooth transition for both hover and return */
}
.widget-footer__wrapper:hover .widget-footer__icon {
  transform: rotate(90deg); /* Adjust the value for desired rotation */
}

/* ========== Welcome Profile ========== */
.wdc-welcome-profile-dynamic-greeting {
    font-size: 18px !important;
    font-weight: bold;
    color: #333;
}
.wdc-welcome-profile-welcome {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
}
.wdc-welcome-profile-avatar {
    border-radius: 50%;
    overflow: hidden;
    width: 50px;
    height: auto;
}
.wdc-welcome-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wdc-welcome-profile-texts {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 1.2;
    font-size: 24px;
    color: #000;
}
.wdc-welcome-profile-cta-link {
    text-decoration: none;
    color: #007bff;
}
.wdc-welcome-profile-cta-link:hover {
    text-decoration: underline;
}
.wdc-welcome-profile-link {
    font-size: 18px !important;
    font-weight: bold;
    color: #333;    
    text-decoration: none!important;
    transition: all .3s ease;
}
.wdc-welcome-profile-link:hover {
    text-decoration: underline !important;
}

/* ========== Timezone Infinito London Single ========== */
.wdcInfinitoLondon-clock-widget {
    padding: 20px;
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    text-align: center;
    max-width: 264px;
    margin: 0 auto;
}
.wdcInfinitoLondon-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0px;
}
.wdcInfinitoLondon-row-full {
    width: 100%;
    text-align: left;
}
.wdcInfinitoLondon-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.wdcInfinitoLondon-city, .wdcInfinitoLondon-timezone {
    font-size: 16px;
}
.wdcInfinitoLondon-city {
    font-weight: bold;
}
.wdcInfinitoLondon-timezone {
    font-size: 14px;
    color: rgba(0,0,0,0.7);
}
.wdcInfinitoLondon-statue {
    width: 33px;
    margin-top: 30px;
    align-self: center;
}
.wdcInfinitoLondon-time {
    font-size: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: "IBM Plex Mono", serif;
    line-height: 1
}
#wdcInfinitoLondon-ampm {
    font-size: 18px;
    margin-left: 5px;
    transform: rotate(90deg); /* Make AM/PM perpendicular */
    margin-top: 10px;
}
#wdcInfinitoLondon-date {
    font-size: 13px;
    color: rgba(0,0,0,0.7);
    margin-bottom: 0px;
}
@media (max-width: 1279px) and (min-width: 1024px) {
    .wdcInfinitoLondon-time {
        font-size: 30px;
    }
    #wdcInfinitoLondon-ampm {
        margin-top: 7px;
    }    
}

/* ========== Icon Lift Button ========== */
.widget--iconLiftButton {
    text-align: left; /* Align text and content to the left */
    transition: all ease 0.3s;
}
.widget--iconLiftButton .number {
    text-align: center;
    font-size: 30px;
    font-weight: 100;
}
.widget--iconLiftButton .number {
    display: block; /* Ensure proper layout for the image */
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1); /* Smooth hover effect */
}

.widget--iconLiftButton:hover .number {
    transform: translateY(-8px); /* Moves the image slightly up */
}
.widget--iconLiftButton:hover {
    box-shadow: none !important;
}
.widget--iconLiftButton h4,
.widget--iconLiftButton p {
    margin: 0; /* Reset default margins */
    padding: 0; /* Reset default padding */
    color: #000000 !important; /* Set text color */
}
.widget--iconLiftButton h4 {
    margin-bottom: 8px !important; /* Ensure no extra margin below h2 */
}
.widget--iconLiftButton a {
    text-decoration: none !important; /* Remove default underline */
    color: #000000 !important; /* Set link color */
    font-size: 14px;
}
.widget--iconLiftButton h4 a {
    position: relative; /* Make the link a positioning context */
}
.widget--iconLiftButton h4 a::after {
    content: ''; /* Create a pseudo-element for the underline */
    position: absolute; /* Position the underline */
    left: 0; /* Start at the left edge of the link */
    bottom: -2px; /* Position the underline slightly below the text */
    width: 0; /* Initially hidden */
    height: 1px; /* Thickness of the underline */
    background-color: #000000; /* Underline color */
    transition: width 0.3s ease; /* Smooth animation for the underline */
}
.widget--iconLiftButton:hover h4 a::after {
    width: 45px; /* Expand underline to full width */
}

/* ========== Thumbnail Spin Icon Button ========== */
.wdc-SpinIcon {
    width: 100%;
    height: 185px;
    background-size: 100%; /* Stretch the gradient */
    border-radius: 10px;
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: none;
    overflow: hidden;
    cursor: pointer; /* Make the entire block clickable */
    transition: background-position 0.5s ease-in-out; /* Smooth transition for the background color change */
}
/* Image inside the card */
.wdc-SpinIcon img {
    position: absolute;
    width: 172px;
    top: 36px;
    right: -10%;
    object-fit: cover; /* Ensures the image covers the container */
    z-index: 1;
    transition: transform 0.3s ease; /* Smooth scaling and rotation transition */
    opacity: 0.25; /* Set opacity to 0.4 to make the image more transparent */
}
.wdc-SpinIcon-content {
      flex-grow: 1;
      z-index: 2 !important;
      max-width: 50%; /* Limit text width to 50% of the parent container */
}
.wdc-SpinIcon-title {
    font-size: 24px !important;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2 !important;
}
.widget--spinIcon .widget-footer {
    display: flex;
    align-items: center;
    z-index: 2 !important;
}
.widget--spinIcon .widget-footer__wrapper {
    text-transform: uppercase;
    margin-right: 8px;
    font-weight: 700;
}
.widget--spinIcon .widget-footer__icon {
    width: 18px;
    height: 18px;
    transform: rotate(315deg) !important;
    transition: transform 0.3s ease; /* Smooth rotation effect */
}
.widget--spinIcon:hover .widget-footer__icon {
    transform: rotate(0deg); /* Rotate arrow to the right */
}
/* Scale the image by 4% and rotate 10 degrees on hover */
.wdc-SpinIcon:hover img {
    transform: scale(1.04) rotate(10deg); /* Grow and rotate the image */
}
/* Inverse the background gradient slowly on hover */
.wdc-SpinIcon:hover {
    background-position: 100%; /* Transition the background gradient */
}
.widget--spinIcon {
    transition: all 0.3s ease; /* Smooth rotation effect */
}
.widget--spinIcon:hover {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2) !important; /* Deeper shadow on hover */
    transform: translate(2px, 2px); /* Move 16px to the right and bottom */
}
/* Media Query for smaller screens */
@media (max-width: 1023px) {
  .wdc-SpinIcon {
    flex-direction: column; /* Stack image and text vertically */
    height: auto; /* Adjust height based on content */
  }
  .wdc-SpinIcon-content {
    max-width: 100%; /* Allow text to take full width */
    margin-bottom: 20px; /* Add space between text and image */
  }
  .wdc-SpinIcon img {
    width: 100%; /* Image takes full width */
    height: auto; /* Adjust image height based on width */
    right: 0; /* Reset the positioning */
  }
  .wdc-SpinIcon-title {
    font-size: 20px; /* Smaller title for mobile */
  }
}

/*=================================================================
                        06 — Footer
==================================================================*/
/* ========== Footer Container ========== */
.footer {
  background-color: #fff;
  margin: -1px;
  padding-top: 12px;
}
.wdcFooterV8-footer-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    margin-top: 12px;
    flex-wrap: wrap;
    border-top: 0.07rem solid black; /* Added top border */
}
.wdcFooterV8-footer-container, 
.wdcFooterV8-footer-container h6,
.wdcFooterV8-footer-container a {
    font-family: "IBM Plex Mono", serif;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #000000 !important;
}
.wdcFooterV8-footer-container h6 {
    margin-bottom: 0 !important;
}
/* Column Styling */
.wdcFooterV8-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    margin-right: 24px;
    width: 25%;
}
/* Text and Link Styling */
.wdcFooterV8-footer-column h6,
.wdcFooterV8-footer-column a {
    font-weight: 400;
    font-size: 12px;
    color: #000000;
    margin: 5px 0;
    text-decoration: none;
    position: relative;
}
.wdcFooterV8-footer-column a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.07rem; /* Set the height of the underline to 0.1rem */
    background-color: #000000;
    transition: width 0.3s ease;
}
.wdcFooterV8-footer-column a:hover::after {
    width: 100%;
}
.wdcFooterV8-footer-column a:hover {
    text-decoration: none; /* Remove default underline on hover */
}
/* Social Icons */
.wdcFooterV8-footer-social-links {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}
.wdcFooterV8-social-icon img {
    width: 15px;
    height: auto;
    margin: 0 6px;
}
/* Copyright and Logo */
.wdcFooterV8-footer-copyright {
    font-size: 12px;
    margin-left: auto;
}
.wdcFooterV8-footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}
.wdcFooterV8-footer-logo {
    width: 120px;
    height: auto;
    margin-right: 10px;
}

/* Media Queries */
@media (min-width: 1152px) {
    .wdcFooterV8-footer-container {
        width: 1152px;
    }
}
@media (max-width: 1280px) and (min-width: 1024px) {
    .wdcFooterV8-footer-container {
        width: 955px;
    }
    .wdcFooterV8-footer-column {
        width: 25%;
        min-width: unset;
    }
}
@media (max-width: 1024px) {
    .wdcFooterV8-footer-container {
        width: 100%;
        flex-direction: column;
    }
    .wdcFooterV8-footer-column {
        width: 100%;
        min-width: unset;
        margin-right: 0;
    }
}
