/* ==========================================================================
   MODERN GLASSMORPHIC NAVBAR STYLES
   ========================================================================== */

:root {
  --nav-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --nav-pink: #ff2a70;
  --nav-pink-hover: #e01b5d;
  --nav-dark: #1e293b;
  --nav-gray: #475569;
  --nav-light: #f8fafc;
  --nav-border: #e2e8f0;
  
  --header-height: 85px;
  --header-height-scrolled: 70px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets for navigation context */
#masthead {
  font-family: var(--nav-font);
  width: 100%;
  position: relative;
  z-index: 1000;
  box-shadow: none !important;
}

/* ---------- 1. TOP BAR ---------- */
.themetechmount-topbar-wrapper {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--nav-border);
  padding: 0 !important;
  font-size: 13px;
  color: var(--nav-gray);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.is-header-scrolled .themetechmount-topbar-wrapper {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  padding: 0 !important;
  overflow: hidden;
  border: none;
}

.themetechmount-topbar-wrapper .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.themetechmount-topbar-wrapper .tm-topbar-content {
  display: flex !important;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
}

/* Pink badge on the left — matching original */
.themetechmount-topbar-wrapper .topbar-left {
  background-color: var(--nav-pink);
  padding: 8px 24px 8px 15px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.themetechmount-topbar-wrapper .topbar-left::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 100vw;
  background-color: var(--nav-pink);
  z-index: -1;
}
.themetechmount-topbar-wrapper .topbar-left .top-contact li,
.themetechmount-topbar-wrapper .topbar-left .top-contact li i,
.themetechmount-topbar-wrapper .topbar-left .top-contact li span {
  color: #ffffff !important;
}

/* Right side normal padding */
.themetechmount-topbar-wrapper .topbar-right {
  padding: 8px 24px;
  display: flex;
  align-items: center;
}

.themetechmount-topbar-wrapper .top-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 40px; /* Space out the items to make room for dividers */
}

.themetechmount-topbar-wrapper .top-contact li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nav-gray);
}

/* Add vertical dividers between items */
.themetechmount-topbar-wrapper .top-contact li + li::before {
  content: '';
  position: absolute;
  left: -20px; /* Half of the gap */
  top: 50%;
  transform: translateY(-50%);
  height: 24px; /* Height of the divider */
  width: 1px;
  background-color: rgba(0, 0, 0, 0.08);
}

.themetechmount-topbar-wrapper .top-contact li i {
  color: var(--nav-pink);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px; /* Slight tweak to optically align with the text */
}

.themetechmount-topbar-wrapper .top-contact li a {
  color: var(--nav-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.themetechmount-topbar-wrapper .top-contact li a:hover {
  color: var(--nav-pink);
}

/* ---------- 2. MAIN HEADER & STICKY GLASSMORPHISM ---------- */
.tm-stickable-header-w {
  height: var(--header-height);
  transition: var(--transition-smooth);
}

.is-header-scrolled .tm-stickable-header-w {
  height: var(--header-height-scrolled);
}

.site-header {
  background-color: #ffffff !important;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--nav-border);
  transition: var(--transition-smooth);
  box-shadow: none !important;
}

/* Sticky Header Scroll State */
.tm-stickable-header-w.is_stuck .site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-scrolled);
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05) !important;
}

/* Adjust page content margin-top based on header presence */
body {
  position: relative;
}

/* ---------- 3. BRANDING / LOGO ---------- */
.site-header-main {
  width: 100%;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 100%;
  position: relative;
}

/* Straight pink line under the header */
.site-header-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -50vw;
  width: 200vw;
  height: 3px;
  background-color: var(--nav-pink);
  z-index: 20;
}

/* Hide the pink line on the home page */
.site-header-main.is-home-page::after {
  display: none !important;
}

.site-branding {
  display: flex;
  align-items: center;
  padding: 0 !important;
  position: relative; /* important for the decorative line positioning */
}

/* ---------- 3.1 DECORATIVE PINK STEPPED LINE ---------- */
.header-step-pink-line {
  position: absolute;
  bottom: -32px; /* Moves the step down from the logo */
  right: -30px; /* Positions the vertical step 30px to the right of the logo */
  width: 3px;
  height: 20px; /* Height of the step */
  background-color: var(--nav-pink);
  z-index: 10;
  pointer-events: none;
}

/* Lower line (left part) */
.header-step-pink-line::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 100%;
  width: 100vw; /* Stretches to the left edge of the screen */
  height: 3px;
  background-color: var(--nav-pink);
}

/* Upper line (right part) */
.header-step-pink-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 100vw; /* Stretches to the right edge of the screen */
  height: 3px;
  background-color: var(--nav-pink);
}

.site-branding img.standardlogo {
  max-height: 52px;
  width: auto;
  transition: var(--transition-smooth);
  transform-origin: left center;
}

.tm-stickable-header-w.is_stuck .site-branding img.standardlogo {
  max-height: 42px;
}

/* ---------- 4. DESKTOP NAVIGATION MENU ---------- */
.site-header-menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu-wrapper ul.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.nav-menu-wrapper ul.nav-menu li.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu-wrapper ul.nav-menu li.menu-item a {
  font-family: var(--nav-font);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--nav-dark);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  position: relative;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

/* Active page item */
.nav-menu-wrapper ul.nav-menu li.menu-item a.nav-active {
  color: var(--nav-pink) !important;
}
.nav-menu-wrapper ul.nav-menu li.menu-item a.nav-active::after {
  transform: scaleX(1) !important;
}

/* Modern sliding underline effect */
.nav-menu-wrapper ul.nav-menu li.menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background-color: var(--nav-pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu-wrapper ul.nav-menu li.menu-item a:hover {
  color: var(--nav-pink);
}

.nav-menu-wrapper ul.nav-menu li.menu-item a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Make Contact menu item stand out */
.nav-menu-wrapper ul.nav-menu li.menu-item:last-child a {
  color: var(--nav-pink);
  font-weight: 600;
}

.nav-menu-wrapper ul.nav-menu li.menu-item:last-child a:hover {
  background-color: rgba(255, 42, 112, 0.05);
}

.nav-menu-wrapper ul.nav-menu li.menu-item:last-child a::after {
  display: none;
}

/* ---------- 5. CALL TO ACTION (CTA) BUTTON ---------- */
.header-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  padding: 12px 0;
}

/* The pink block that stretches infinitely to the right */
.header-cta-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px; /* Center of the 56px circle */
  width: 100vw;
  background-color: var(--nav-pink);
  z-index: -1;
}

/* Left part: pink circle + phone number */
.header-cta-button {
  display: flex;
  align-items: center;
  gap: 15px;
  background: none;
  text-decoration: none !important;
  position: relative;
}

.cta-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--nav-pink);
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  flex-shrink: 0;
  z-index: 2; /* stay above the pink background */
}

.cta-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-label {
  display: none;
}

.cta-value {
  font-family: Oswald, 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff; /* White text on pink background */
  letter-spacing: 0.5px;
  line-height: 1;
  transition: color 0.2s;
  white-space: nowrap;
}

.header-cta-button:hover .cta-value {
  color: #f0f0f0;
}

/* Right part: → APPELEZ-NOUS white button */
.header-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1a1a1a !important;
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  font-family: Oswald, 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-left: 10px;
}
.header-cta-link i {
  font-size: 14px;
}
.header-cta-link:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}


/* ---------- 6. MODERN MOBILE HAMBURGER TOGGLE ---------- */
.menu-toggle {
  display: none !important; /* Hidden on desktop */
  background: transparent;
  border: none;
  padding: 12px;
  cursor: pointer;
  outline: none;
  margin: 0;
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.hamburger-inner, 
.hamburger-inner::before, 
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--nav-dark);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: '';
  top: -6px;
}

.hamburger-inner::after {
  content: '';
  bottom: -6px;
}

/* Hamburger active transform animation */
.menu-toggle.active .hamburger-inner {
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.menu-toggle.active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* ---------- 7. RESPONSIVE DESIGN ---------- */

/* Breakpoint for Desktop Menu to Mobile Drawer */
@media (max-width: 1200px) {
  .menu-toggle {
    display: inline-flex !important;
  }
  
  .themetechmount-topbar-wrapper {
    display: none; /* Hide topbar on mobile/tablet to save screen estate */
  }
  
  .header-cta-wrapper {
    margin-right: 12px;
  }
  
  .header-cta-button {
    padding: 8px 16px;
  }
  
  .cta-text-group {
    display: none;
  }

  .header-cta-link {
    display: none;
  }
  
  .header-cta-button {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }
  
  .site-header-main {
    padding: 0 16px !important;
  }

  /* Mobile Dropdown Drawer Panel */
  .nav-menu-wrapper {
    display: none !important; /* Hide standard layout */
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    padding: 30px 24px;
    overflow-y: auto;
    border-top: 1px solid var(--nav-border);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .is-header-scrolled .nav-menu-wrapper {
    top: var(--header-height-scrolled);
    height: calc(100vh - var(--header-height-scrolled));
  }
  
  .nav-menu-wrapper.show {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav-menu-wrapper ul.nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    height: auto;
    width: 100%;
  }
  
  .nav-menu-wrapper ul.nav-menu li.menu-item {
    width: 100%;
  }
  
  .nav-menu-wrapper ul.nav-menu li.menu-item a {
    display: block;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--nav-border);
    border-radius: 0;
  }
  
  .nav-menu-wrapper ul.nav-menu li.menu-item a::after {
    display: none;
  }

  /* Append CTA inside mobile menu for mobile layout */
  .nav-menu-wrapper::after {
    content: "Appelez-nous au 06 24 37 18 11";
    display: block;
    margin-top: 40px;
    background: linear-gradient(135deg, var(--nav-pink) 0%, var(--nav-pink-hover) 100%);
    color: #ffffff;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(255, 42, 112, 0.2);
    cursor: pointer;
  }
}

@media (max-width: 640px) {
  .site-branding img.standardlogo {
    max-height: 42px;
  }
  
  .is-header-scrolled .site-branding img.standardlogo {
    max-height: 36px;
  }
  
  .tm-stickable-header-w {
    height: 70px;
  }
  .is-header-scrolled .tm-stickable-header-w {
    height: 60px;
  }
  .site-header {
    height: 70px;
  }
  .tm-stickable-header-w.is_stuck .site-header {
    height: 60px;
  }
}

/* ==========================================================================
   ICON BOX SKINCOLOR RESTORATION
   (Fixes pink icon circles on homepage course cards)
   ========================================================================== */

/* Pink circular background on icon boxes */
.themetechmount-icon-bgcolor-skincolor .themetechmount-iconbox-icon,
.themetechmount-icon-bgcolor-skincolor .tm-box-icon {
  background-color: #ff2a70 !important;
}

/* White icon color inside skincolor boxes */
.themetechmount-iconcolor-white .themetechmount-iconbox-icon i,
.themetechmount-iconcolor-white .tm-box-icon i {
  color: #ffffff !important;
}

/* Rounded icon shape */
.tm-iconstyle-rounded .themetechmount-iconbox-icon,
.tm-iconstyle-rounded .tm-box-icon {
  border-radius: 50% !important;
}

/* Make sure the icon wrapper is a proper circle */
.themetechmount-iconbox-styleone .tm-box-icon {
  width: 70px;
  height: 70px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.themetechmount-iconbox-styleone .tm-box-icon i {
  font-size: 28px;
  line-height: 1;
}

/* Center-align the icon box content */
.tm-textalign-center .themetechmount-iconbox-inner {
  text-align: center;
}

.tm-textalign-center .themetechmount-iconbox-icon {
  display: flex;
  justify-content: center;
}

/* Hover effect: slightly grow the icon circle */
.themetechmount-iconbox:hover .tm-box-icon {
  transform: scale(1.08);
  transition: transform 0.25s ease;
}

/* ==========================================================================
   MOBILE FIXES (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Hide top info bar on mobile (phone, email, address) */
    .themetechmount-topbar-wrapper {
        display: none !important;
    }

    /* 2. Hide legacy phone block (only in clone static pages) */
    .tm-header-text-area {
        display: none !important;
    }

    /* 3. Modern mobile header layout */
    .tm-stickable-header-w,
    .site-header {
        height: auto !important;
        min-height: 64px;
    }

    /* Header container: logo left, actions right */
    .site-header-main.container,
    .site-header-main {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 14px !important;
        min-height: 64px;
        max-width: 100% !important;
        width: 100% !important;
        background: #fff;
        box-shadow: 0 2px 16px rgba(0,0,0,0.08) !important;
        box-sizing: border-box !important;
    }

    /* Logo: slightly larger, clean */
    .site-branding {
        flex: 0 0 auto !important;
    }
    .site-branding .standardlogo {
        height: 46px !important;
        width: auto !important;
        display: block;
    }

    /* Right group (nav): phone circle + hamburger aligned right */
    #site-header-menu {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
    #site-navigation {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Hide desktop nav links on mobile (Handled by .show class in max-width: 1200px) */

    /* CTA phone button: clean 44px pink circle */
    .header-cta-wrapper {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }
    .header-cta-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        background-color: #ff2a70 !important;
        box-shadow: 0 4px 14px rgba(255,42,112,0.40) !important;
        padding: 0 !important;
        text-decoration: none !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    .header-cta-button:active {
        transform: scale(0.93) !important;
        box-shadow: 0 2px 8px rgba(255,42,112,0.35) !important;
    }
    .header-cta-wrapper .cta-text-group {
        display: none !important;
    }
    .header-cta-wrapper .cta-icon-circle {
        background: transparent !important;
        box-shadow: none !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    .header-cta-wrapper .cta-icon-circle i {
        color: #fff !important;
        font-size: 18px !important;
    }

    /* Hamburger button: modern clean style */
    #menu-toggle.menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        border: 1.5px solid #e8e8e8 !important;
        background: #fff !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        cursor: pointer !important;
    }
    #menu-toggle .hamburger-box {
        position: relative !important;
        display: block !important;
        width: 22px !important;
        height: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #menu-toggle .hamburger-inner,
    #menu-toggle .hamburger-inner::before,
    #menu-toggle .hamburger-inner::after {
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        width: 22px !important;
        height: 2.5px !important;
        background-color: #1e293b !important;
        border-radius: 3px !important;
        display: block !important;
    }
    #menu-toggle .hamburger-inner {
        top: 50% !important;
        margin-top: -1.25px !important;
        transform: none !important;
    }
    #menu-toggle .hamburger-inner::before {
        content: '' !important;
        top: -7px !important;
        bottom: auto !important;
    }
    #menu-toggle .hamburger-inner::after {
        content: '' !important;
        bottom: -7px !important;
        top: auto !important;
    }
    /* Active state: animate to X */
    #menu-toggle.active .hamburger-inner {
        transform: rotate(45deg) !important;
        margin-top: -1.25px !important;
    }
    #menu-toggle.active .hamburger-inner::before {
        opacity: 0 !important;
    }
    #menu-toggle.active .hamburger-inner::after {
        bottom: 0 !important;
        transform: rotate(-90deg) !important;
    }

    /* 4. Reduce huge section padding that creates blank spaces on inner pages */
    .elementor-section {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    /* 5. Divider-only sections: hide on mobile (purely decorative, wastes space) */
    .elementor-section:has(.elementor-widget-divider) {
        display: none !important;
    }

    /* 5b. Limit map iframe height on mobile */
    iframe[src*="google.com/maps"],
    iframe[src*="maps.google"] {
        min-height: 280px !important;
        max-height: 320px !important;
        height: 300px !important;
    }

    /* 6. Fix team card layout: theme uses display:table with vertical writing-mode.
          Convert to vertical block stack on mobile. */
    .themetechmount-box-team .themetechmount-content-inner.tm-wrap {
        display: block !important;
    }
    .themetechmount-box-team .tm-wrap-cell,
    .themetechmount-box-team .themetechmount-team-image-box,
    .themetechmount-box-team .themetechmount-box-content {
        display: block !important;
        width: 100% !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        transform: none !important;
    }
    .themetechmount-team-position,
    .themetechmount-team-position * {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        transform: none !important;
    }

    /* 7. Team member cards full width on mobile */
    .tm-box-col-wrapper {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* 7b. Team member image full width */
    .themetechmount-box-team .themetechmount-team-image-box img {
        width: 100% !important;
        height: 280px !important;
        object-fit: cover !important;
    }

    /* 8. Contact page: stack form + map columns vertically */
    .elementor-col-50 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* 9. Nos cours page: ensure video/text columns stack */
    .elementor-section .row > .col-xs-12.col-md-6 {
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Reset reverse direction for mobile (always top-to-bottom) */
    .elementor-section .row[style*="row-reverse"] {
        flex-direction: column !important;
    }

    /* 10. Container padding on mobile */
    .elementor-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 11. Section headings readable size on mobile */
    .tm-element-content-heading {
        font-size: 26px !important;
    }

    /* 12. Hide the large decorative background heading on mobile (it overlaps real titles) */
    .tm-element-overlay-subhead {
        display: none !important;
    }

    /* 12b. Reduce site-content-wrapper top padding on mobile */
    .site-content-wrapper,
    #content-wrapper {
        padding-top: 0 !important;
    }
    .entry-content,
    .elementor {
        padding-top: 0 !important;
    }

    /* 12c. Team cards: hide duplicate name in bottom box */
    .themetechmount-box-team .tm-bottom-box {
        display: none !important;
    }

    /* 12d. Keep share social icon properly positioned inside the image area */
    .themetechmount-box-team .themetechmount-team-image-box {
        position: relative !important;
    }
    .themetechmount-box-team .tm-member-social {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        z-index: 3 !important;
    }
    /* Hide any stray icon character text that may appear */
    .themetechmount-box-team .tm-member-social .themetechmount-team-icon i {
        font-size: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 14. Nos-cours: detail sections — column layout + no overflow padding */
    .course-detail-row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }
    .course-video-col,
    .course-text-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    /* Reduce detail section padding on mobile */
    .elementor-section[id] {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    /* Ensure text wraps and doesn't overflow */
    .course-text-col p,
    .course-text-col h2,
    .course-text-col h4 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   FOOTER — restore dark background (theme bg layers are JS-dependent)
   ========================================================================== */
.site-footer {
    background-color: #0f172a !important;
    color: #ffffff;
}
.site-footer #first-footer,
.site-footer .first-footer {
    background-color: #0f172a !important;
    padding: 60px 0 30px !important;
}
.site-footer #bottom-footer-text,
.site-footer .bottom-footer-text {
    background-color: #0a0f1c !important;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.08);
}
/* Hide unused absolute bg layers (they're empty/transparent placeholders) */
.site-footer .tm-bg-layer {
    display: none !important;
}
/* Footer typography */
.site-footer .widget-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 22px !important;
    position: relative;
    padding-bottom: 12px;
}
.site-footer .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background-color: var(--nav-pink, #ff2a70);
}
.site-footer p,
.site-footer li,
.site-footer .textwidget {
    color: rgba(255,255,255,0.78) !important;
    line-height: 1.7;
}
.site-footer a {
    color: rgba(255,255,255,0.85) !important;
    transition: color 0.2s ease;
}
.site-footer a:hover {
    color: var(--nav-pink, #ff2a70) !important;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .themetechmount-contact-address,
.site-footer .themetechmount-contact-phonenumber,
.site-footer .themetechmount-contact-email {
    padding: 8px 0 8px 28px;
    position: relative;
}
.site-footer .themetechmount-contact-address::before,
.site-footer .themetechmount-contact-phonenumber::before,
.site-footer .themetechmount-contact-email::before {
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--nav-pink, #ff2a70);
    font-family: 'FontAwesome', sans-serif;
    font-size: 14px;
}
.site-footer #bottom-footer-text,
.site-footer #bottom-footer-text * {
    color: rgba(255,255,255,0.7) !important;
}
.site-footer #bottom-footer-text a {
    color: #ffffff !important;
    font-weight: 600;
}
.site-footer #bottom-footer-text a:hover {
    color: var(--nav-pink, #ff2a70) !important;
}

/* ==========================================================================
   FUNCTIONAL FIXES — spacing and professor card text rotation
   ========================================================================== */

/* 1. Remove excessive blank space at top of inner pages */
.site-main {
    padding-top: 0 !important;
}

/* 2. Professor cards: fix vertical writing-mode on all screen sizes */
.themetechmount-box-team .themetechmount-content-inner,
.themetechmount-box-team .tm-wrap-cell,
.themetechmount-box-team .themetechmount-box-content,
.themetechmount-team-position,
.themetechmount-team-position * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
}
/* Hide the internal duplicate name (overlay inside the card) */
.themetechmount-box-team .themetechmount-box-content {
    display: none !important;
}

/* ==========================================================================
   INNER PAGE HERO BANNER
   ========================================================================== */

.inner-page-hero {
    background-color: #ffffff !important;
    padding: 55px 0 45px !important;
    border-bottom: 1px solid #e8e8ed !important;
    position: relative !important;
    overflow: hidden !important;
}
/* Pink variant — like original Planning Et Tarifs banner */
.inner-page-hero-pink {
    background-color: #ff2a70 !important;
    padding: 30px 20px !important;
    text-align: center !important;
}
.inner-page-hero-pink .tm-element-content-heading,
.inner-page-hero-pink h1, .inner-page-hero-pink h2 {
    color: #ffffff !important;
    font-family: Oswald, Arial, sans-serif !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
}
.inner-page-hero-pink .tm-element-subhead {
    display: none !important;
}
/* Watermark overlay-subhead — Abuget script font like original */
.tm-element-heading-content-wrapper .tm-element-overlay-subhead {
    font-family: 'Abuget', Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 150px !important;
    line-height: 1.1 !important;
    color: rgba(0,0,0,0.07) !important;
    position: absolute !important;
    top: 0 !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 0 !important;
    pointer-events: none !important;
    display: block !important;
    word-break: break-word !important;
}
.tm-element-heading-content-wrapper {
    position: relative !important;
    overflow: visible !important;
}
.tm-element-heading-content-wrapper .tm-content-header {
    position: relative !important;
    z-index: 1 !important;
}
/* Only show inside heading wrappers — hide orphan instances */
.tm-element-overlay-subhead:not(.tm-element-heading-content-wrapper .tm-element-overlay-subhead) {
    display: none !important;
}
.inner-page-hero .tm-element-content-heading {
    color: #1d1d1f !important;
}
.inner-page-hero .tm-element-subhead {
    color: #ff2a70 !important;
}
.inner-page-hero .tm-element-content-desctxt,
.inner-page-hero .tm-element-content-desctxt p {
    color: #6e6e73 !important;
}

/* FAQ accordion active: override theme teal (#18aebf) with site pink */
.elementor-widget-accordion .elementor-accordion .elementor-accordion-item .elementor-tab-title.elementor-active {
    background-color: #ff2a70 !important;
    color: #ffffff !important;
}
.elementor-widget-accordion .elementor-accordion .elementor-accordion-item .elementor-tab-title.elementor-active a,
.elementor-widget-accordion .elementor-accordion .elementor-accordion-item .elementor-tab-title.elementor-active i {
    color: #ffffff !important;
}

/* ==========================================================================
   SLIDER ARROWS — visible on hover only
   ========================================================================== */

#rev_slider_3_1_wrapper:hover .slider-arrow {
    opacity: 1 !important;
}

/* ==========================================================================
   GLOBAL VISUAL FIXES
   ========================================================================== */

/* 3. Hide decorative divider spacer sections (inner pages blank space fix) */
.elementor-section:has(.elementor-widget-divider) {
    display: none !important;
}

/* 4. Light background for video iframe containers */
.elementor-wrapper.elementor-open-inline,
div:has(> iframe[src*="youtube.com/embed"]) {
    background-color: #f5f5f7 !important;
}
