/* 
Theme Name: Lesieur WP
Theme URI: https://github.com/yelouali-OF/Lesieur
Description: Lesieur WP is a custom independent WordPress theme with advanced functionality
Author: Orpheon Digital
Author URI: https://orpheon.ma/
Version: 2.0.0
Text Domain: lesieur-theme
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: var(--e-global-typography-secondary-font-family), sans-serif;
  font-weight: 600;
  color: var(--e-global-color-text);
}
.elementor-heading-title {
  font-family: var(--e-global-typography-primary-font-family), sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--e-global-typography-primary-font-family), sans-serif;
  font-weight: 700;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

/* 1440p SCREENS */
@media (min-width: 1440px) {
  h1 {
    font-size: 2.8rem;
    line-height: 1.1;
  }
  h2 {
    font-size: 2.488rem;
    line-height: 1.1;
  }
  h3 {
    font-size: 2.074rem;
    line-height: 1.2;
  }
  h4 {
    font-size: 1.728rem;
    line-height: 1.2;
  }
  h5 {
    font-size: 1.44rem;
    line-height: 1.2;
  }
  h6 {
    font-size: 1.2rem;
    line-height: 1.2;
  }
  body, p {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
  }
  small, .text-small {
    font-size: 0.833rem;
    line-height: 1.5;
  }
}

/* DESKTOP */
@media (min-width: 1024px) and (max-width: 1439px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  h2 {
    font-size: 2.222rem;
    line-height: 1.2;
  }
  h3 {
    font-size: 1.852rem;
    line-height: 1.2;
  }
  h4 {
    font-size: 1.543rem;
    line-height: 1.2;
  }
  h5 {
    font-size: 1.286rem;
    line-height: 1.2;
  }
  h6 {
    font-size: 1.071rem;
    line-height: 1.2;
  }
  body, p {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
  }
  small, .text-small {
    font-size: 0.833rem;
    line-height: 1.5;
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
  h1 {
    font-size: 2.074rem;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.728rem;
    line-height: 1.2;
  }
  h3 {
    font-size: 1.44rem;
    line-height: 1.2;
  }
  h4 {
    font-size: 1.2rem;
    line-height: 1.2;
  }
  h5 {
    font-size: 1rem;
    line-height: 1.2;
  }
  h6 {
    font-size: 0.833rem;
    line-height: 1.2;
  }
  body, p {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
  }
  small, .text-small {
    font-size: 0.833rem;
    line-height: 1.5;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  h1 {
    font-size: 1.728rem;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.44rem;
    line-height: 1.2;
  }
  h3 {
    font-size: 1.2rem;
    line-height: 1.2;
  }
  h4 {
    font-size: 1rem;
    line-height: 1.2;
  }
  h5 {
    font-size: 0.833rem;
    line-height: 1.2;
  }
  h6 {
    font-size: 0.694rem;
    line-height: 1.2;
  }
  body, p {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
  }
  small, .text-small {
    font-size: 0.833rem;
    line-height: 1.5;
  }
}

.text-primary {
  color: var(--e-global-color-primary);
}
.text-secondary {
  color: var(--e-global-color-secondary);
}
.hovered-card {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
}
.hovered-card:hover {
  opacity: 1;
}
.hovered-card:hover+.hovered-card-content {
  display: none;
}
.elementor-repeater-item-d2f7a8b span time {
  font-size: 20px;
  font-weight: bold;
}

.lesieur-mega-menu {
  padding: 10px 0;
  position: relative;
  z-index: 9999;
}

.lesieur-mega-menu .lesieur-mega-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 2px;
  position: relative;
}

.lesieur-mega-menu .lesieur-menu-item {
  position: relative;
  padding: 3px 12px 4px 12px;
  border-radius: 99rem;
}
.lesieur-mega-menu .lesieur-menu-item:hover {
  color: white !important;
  background-color: var(--e-global-color-secondary);
}
.lesieur-mega-menu .lesieur-menu-item:hover > a {
  color: white !important;
}
.lesieur-mega-menu .lesieur-active-menu-item {
  background-color: var(--e-global-color-secondary);
}
.lesieur-mega-menu .lesieur-active-menu-item > a {
  color: white;
}
.lesieur-mega-menu .lesieur-menu-link {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 12px;
  text-decoration: none;
  font-weight: 700;
  display: block;
  line-height: 13px;
}

.lesieur-mega-menu .lesieur-mega-dropdown {
  display: none; 
  position: absolute;
  top: 40px;
  left: 0;
  width: max-content;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 999;
}

.lesieur-mega-menu .lesieur-dropdown-content {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  min-height: auto;
  padding: 12px;
}

.lesieur-mega-menu .lesieur-submenu-list {
  width: 100%;
}

.lesieur-mega-menu .lesieur-submenu-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.lesieur-mega-menu .lesieur-submenu-item {
  margin-bottom: 3px;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
}

.lesieur-mega-menu .lesieur-submenu-item:hover {
  background-color: #f7f7f7;
}

.lesieur-mega-menu .lesieur-submenu-item:last-child {
  border-bottom: none;
}

.lesieur-mega-menu .lesieur-submenu-link {
  font-family: var(--e-global-typography-secondary-font-family), sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bolder;
  text-decoration: none;
  color: var(--e-global-color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.lesieur-mega-menu .submenu-text {
  flex: 1;
}

/* Chevron icon for nested items - points down by default */
.lesieur-mega-menu .submenu-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease-in-out;
  transform: rotate(0deg);
}

/* Nested submenu dropdown - hidden by default */
.lesieur-mega-menu .lesieur-sub-dropdown {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease-in-out, opacity 0.25s ease-in-out;
  padding-left: 16px;
  margin-top: 0;
}

.lesieur-mega-menu .lesieur-sub-dropdown ul {
  padding-top: 4px;
}

/* Show nested dropdown when parent has .open class (click-based) */
.lesieur-mega-menu .lesieur-submenu-item.has-children.open > .lesieur-sub-dropdown {
  max-height: 1000px;
  opacity: 1;
  margin-top: 4px;
}

/* Rotate chevron when opened (click-based) */
.lesieur-mega-menu .lesieur-submenu-item.has-children.open > .lesieur-submenu-link .submenu-chevron {
  transform: rotate(180deg);
}

/* Make submenu items with children clickable but prevent navigation */
.lesieur-mega-menu .lesieur-submenu-item.has-children > .lesieur-submenu-link {
  cursor: pointer;
}

/* Nested submenu items */
.lesieur-mega-menu .lesieur-sub-dropdown .lesieur-submenu-item {
  margin-bottom: 3px;
}

.lesieur-mega-menu .lesieur-sub-dropdown .lesieur-submenu-link {
  font-size: 11px;
  padding: 2px 0;
}

.lesieur-mega-menu .lesieur-active-submenu-item {
  background-color: #f7f7f7;
}

.lesieur-mega-menu .lesieur-active-submenu-item .lesieur-submenu-link {
  color: var(--e-global-color-secondary);
}

.home-header {
  display: absolute;
}
.custom-breadcrumb ul {
  color: unset;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.custom-breadcrumb-parent {
  font-family: inherit;
  font-size: 14px;
  text-transform: uppercase !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.custom-breadcrumb-parent a {
    color: var(--e-global-color-primary) !important;
    text-decoration: none;
    font-weight: bolder;
}
.breadcrumb-title {
  font-family: var(--e-global-typography-secondary-font-family), sans-serif;
  font-size: 40px;
  font-weight: 900 !important;
  color: var(--e-global-color-text);
  text-transform: uppercase;
  margin: 0;
}

.custom-blockquote blockquote {
  position: relative;
}

.custom-blockquote blockquote::before {
  content: url("https://lesieur3.orpheondigital.com/wp-content/uploads/2025/02/blockquote-leaf.svg");
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  z-index: 10;
}
.custom-blockquote blockquote::after {
  content: url("https://lesieur3.orpheondigital.com/wp-content/uploads/2025/02/blockquote-leaf.svg");
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(50%, 90%);
  width: 90px;
  height: 90px;
  z-index: 10;
}

.custom-blockquote::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  right: -16px;
  bottom: -16px;
  opacity: 0.1;
  background: var(--e-global-color-secondary);
  z-index: -1;
}
@media only screen and (min-width: 1024px) {
  .slideup-card,
  .slideup-card * {
    transition: all 0.2s ease-in-out;
  }
  .slideup-card:hover .slideup-card-img img {
    width: 100%;
    object-fit: cover;
  }
  .slideup-card {
    position: relative;
    border: 1px solid var(--e-global-color-secondary);
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
    cursor: pointer;
  }

  .slideup-card-content {
    display: none;
  }
  .slideup-card:hover {
    background-color: var(--e-global-color-secondary);
    text-align: start;
  }
  .slideup-card:hover {
    background-color: var(--e-global-color-secondary);
    text-align: start;
  }

  .slideup-card:hover .slideup-card-content {
    display: block;
  }
  .slideup-card:hover .slideup-card-img img {
    position: absolute;
    right: 5px;
    top: 0;
    transform: translateY(-70%);
    max-width: 80px;
    height: 80px;
    background-color: white;
    border: 3px solid var(--e-global-color-secondary);
  }
}

@media only screen and (max-width: 1023px) {
  .slideup-card,
  .slideup-card * {
    transition: all 0.2s ease-in-out;
  }
  .slideup-card {
    position: relative;
    border: 1px solid var(--e-global-color-secondary);
    border-radius: 1rem;
    max-width: 100%;
    background-color: var(--e-global-color-secondary);
    text-align: start;
  }

  .slideup-card-content {
    display: block;
  }
  .slideup-card-img {
    position: absolute;
    right: 5px;
    top: 0;
    width: 60px;
    transform: translateY(-50%);
    height: 60px;
    background-color: white;
    border: 2px solid var(--e-global-color-secondary);
  }
  .slideup-card-img img {
    width: 100% !important;
    height: 100%;
  }
}

/* Accordion */

/* Parent Container */
.acc {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  width: 100%;
  height: 100vh;
}

/* Accordion Item */
.acc-item {
  flex: 1; /* Default state: all items share space */
  min-width: 0;
  height: 100%;
  transition: flex 0.3s ease-in-out;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Closed Content (Title & "+") */
.acc-item-closed-content {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
  width: 100%;
  display: flex;
}

/* Opened Content */
.acc-item-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Default Open First Slide */
.acc-item:first-child {
  flex: 4; /* First slide starts open */
}

.acc-item:first-child .acc-item-closed-content {
  opacity: 0;
}

.acc-item:first-child .acc-item-content {
  opacity: 1;
}

/* Hover Effect (Desktop) */
.acc-item:hover {
  flex: 4; /* Opened item takes 40% */
}

.acc-item:hover .acc-item-closed-content {
  opacity: 0;
}

.acc-item:hover .acc-item-content {
  opacity: 1;
}

/* Mobile Layout */
@media (max-width: 768px) {
  .acc {
    flex-direction: column;
    height: 200vh !important;
  }

  .acc-item {
    flex: 1; /* All items share space equally */
  }

  .acc-item:first-child {
    flex: 1; /* Reset first item */
  }

  .acc-item.active {
    flex: 4; /* Opened item takes 40% */
  }

  .custom-breadcrumb-parent {
      font-size: 14px;
  }
  .breadcrumb-title {
      font-size: 32px;
  }
}

.actu-image-float {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.2s ease-out;
  pointer-events: none;
  z-index: 998;
}

.actu-loop-item {
  position: relative;
  overflow: visible; /* Ensures images don't get clipped */
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 32 32" stroke="none" fill="none" fill-opacity="none"><circle cx="16" cy="16" r="15" fill="%23fae000" fill-opacity="0.8"/></svg>'),
    auto;
}

/* Member card */

.member-card {
  position: relative;
  cursor: pointer;
}
.member-card-content {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.member-card:hover .member-card-content {
  opacity: 1;
}

/* Map additions */
.text-green {
  color: #009444;
}
.text-blue {
  color: #2c5492;
}

/* map */

.mapplic-marker.mloc1,
.mapplic-marker.mloc1.mapplic-active,
.mapplic-marker.mloc2,
.mapplic-marker.mloc2.mapplic-active {
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* investisseurs */
.stockprice-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 1300px;
  width: 100%;
}

@media only screen and (max-width: 767px) {
  .stockprice-container {
    position: relative;
    transform: none;
    left: auto;
    top: auto;
  }
}

/* Applies to both containers */
.slide-bg-2, .slide-bg-1 {
  transition: background-position 0.4s ease-in-out;
}
.slide-bg-2 {
  background-position: -1200% center;
}
.slide-bg-1-text {
  color: white;
}
.slide-bg-2-text {
  color: var(--e-global-color-primary);
}

.bento-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Automatically make 3rd item span full width */
.bento-grid > *:last-child:nth-child(3) {
  grid-column: 1 / -1;
}
@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

/* Map Popover Styles */
.map-popover {
    position: absolute;
    background: #f7f7f7;
    color: var(--e-global-color-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 16px;
    z-index: 10000;
    display: none;
    pointer-events: none;
    max-width: 280px;
    font-family: Poppins, Arial, Helvetica, sans-serif;
}

.map-popover .popover-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-popover .popover-stats {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }

.map-popover .stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.map-popover .stat-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--e-global-color-primary);
}

.map-popover .stat-text {
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
    color: #222221;
    opacity: 0.8;
}

/* Red pins cursor pointer */
#Maroc, #Tunisie, #Senegal {
    cursor: pointer !important;
}

.red-pin {
  cursor: pointer;
}
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  pointer-events: none;
}

.sticky-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Badge card */
.badge-card-img{
  position:relative;
  background:#fff;
  border-radius:16px;
  overflow:hidden; /* important */
}

.badge-card-img::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:50%;                /* top half of the card */
  border:2px solid #C20E1A;   /* stroke */
  border-bottom:none;         /* remove bottom part */
  border-radius:8px 8px 0 0;
  pointer-events:none;
  box-sizing:border-box;
}

/* End of custom styles */