/* --- Header CSS --- */
@keyframes timenergy-heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}
.timenergy-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #f59e0b;
    border-radius: 50%;
    animation: timenergy-spin 1s linear infinite;
}
@keyframes timenergy-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#theme-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* CTA Button Styles */
.cta-button {
    position: relative;
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background-color: #f59e0b;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.7s ease;
    z-index: 30;
    text-shadow: 2px 3px 2px #d97706;
}

.cta-button::after {
    content: '';
    position: absolute;
    height: 0.25rem;
    width: 0.25rem;
    background-color: #ea580c;
    left: 1.25rem;
    bottom: 0;
    transform: translateY(100%);
    border-radius: 0.375rem;
    transition: all 0.7s ease;
    z-index: -20;
}

.cta-button:hover::after {
    transform: scale(300);
    transition: all 0.7s ease;
}

.cta-button:hover {
    text-shadow: 2px 2px 2px #fb923c;
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button-mobile {
    position: relative;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: #f59e0b;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.7s ease;
    z-index: 30;
    text-shadow: 2px 3px 2px #d97706;
}

.cta-button-mobile::after {
    content: '';
    position: absolute;
    height: 0.25rem;
    width: 0.25rem;
    background-color: #ea580c;
    left: 1.25rem;
    bottom: 0;
    transform: translateY(100%);
    border-radius: 0.375rem;
    transition: all 0.7s ease;
    z-index: -20;
}

.cta-button-mobile:hover::after {
    transform: scale(300);
    transition: all 0.7s ease;
}

.cta-button-mobile:hover {
    text-shadow: 2px 2px 2px #fb923c;
}

.cta-button-mobile:active {
    transform: scale(0.98);
}

@media (min-width: 1030px) and (max-width: 1280px) {
    .cta-button {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 1281px) and (max-width: 1536px) {
    .cta-button {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1537px) {
    .cta-button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

#desktop-menu>li {
    position: relative;
}

#desktop-menu>li>a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

#desktop-menu>li>a:hover {
    color: #f59e0b;
}

@media (min-width: 1537px) {
    #desktop-menu>li>a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

#desktop-menu>li.menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.25rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease;
}

#desktop-menu>li.menu-item-has-children:hover>a::after {
    transform: rotate(45deg) translateY(2px);
}

#desktop-menu>li.menu-item-has-children>a {
    cursor: default;
    pointer-events: none;
}

#desktop-menu>li>ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 12rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #F3F4F6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 50;
}

#desktop-menu>li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#desktop-menu>li>ul>li>a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

#desktop-menu>li>ul>li>a:hover {
    background-color: #F9FAFB;
    color: #f59e0b;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list>li {
    margin-bottom: 0.5rem;
}

.mobile-menu-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-parent:hover {
    background-color: #fef3c7;
    color: #f59e0b;
    border-color: #f59e0b;
}

.mobile-menu-item {
    display: block;
    padding: 0.875rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: #fef3c7;
    color: #f59e0b;
    border-color: #f59e0b;
}

.mobile-menu-child {
    display: block;
    padding: 0.75rem 1rem 0.75rem 2rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.mobile-menu-child:last-child {
    border-bottom: none;
}

.mobile-menu-child:hover {
    background-color: #fef3c7;
    color: #f59e0b;
    padding-left: 2.25rem;
}

.mobile-arrow {
    transition: transform 0.3s ease;
}

.mobile-menu-parent.active .mobile-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    background-color: #f9fafb;
    border-radius: 0 0 0.5rem 0.5rem;
    margin-top: -0.25rem;
    border: 1px solid #e5e7eb;
    border-top: none;
    overflow: hidden;
}

.mobile-submenu.show {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-submenu.show>li {
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
}

.mobile-submenu.show>li:nth-child(1) { animation-delay: 0.05s; }
.mobile-submenu.show>li:nth-child(2) { animation-delay: 0.1s; }
.mobile-submenu.show>li:nth-child(3) { animation-delay: 0.15s; }
.mobile-submenu.show>li:nth-child(4) { animation-delay: 0.2s; }
.mobile-submenu.show>li:nth-child(5) { animation-delay: 0.25s; }

@media (min-width: 1030px) {
    .xl\:hidden { display: none !important; }
    .xl\:flex { display: flex !important; }
}

.flex-shrink-0 { flex-shrink: 0; }
body.sidebar-open { overflow: hidden; }
html { scroll-behavior: smooth; }

/* --- Footer CSS --- */
.footer-with-radius {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-top: 4rem !important;
}

.footer-menu-parent {
    padding: 0.25rem 0;
    color: inherit;
    background: none;
    border: none;
}

.footer-menu-parent:hover {
    color: white;
}

.footer-menu-parent.active .footer-arrow {
    transform: rotate(180deg);
}

.footer-submenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-submenu.show {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.25rem !important;
    padding-top: 0.25rem !important;
}

.footer-submenu li {
    margin: 0.25rem 0 !important;
}

.footer-menu-link {
    display: block;
    padding: 0.25rem 0;
}

.footer-menu-link:hover {
    padding-left: 0.25rem;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-with-radius {
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
        padding-top: 3rem !important;
    }
}

@media (max-width: 480px) {
    .footer-with-radius {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding-top: 2.5rem !important;
    }
}

/* --- Hero CSS --- */
.hero-section-main {
    position: relative;
    min-height: 500px;
    height: 80vh;
    max-height: 700px;
    overflow: hidden;
    background: #000;
}

.ds-hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ds-hero-video-container-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 2rem 0;
}

.hero-text-wrapper {
    width: 100%;
}

.ds-hero-video-text-container {
    width: 100%;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-text-container {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 0.1s;
}

.btn-particulier {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    min-width: 180px;
}

.btn-particulier:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.btn-professionnel {
    background: linear-gradient(135deg, #002C77 0%, #1e40af 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 44, 119, 0.3);
    min-width: 180px;
}

.btn-professionnel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 44, 119, 0.4);
    background: linear-gradient(135deg, #1e40af 0%, #002C77 100%);
}

.highlight-invest {
    font-weight: 900;
    font-size: 1.35em;
    color: #f59e0b;
    display: inline-block;
    letter-spacing: 0.5px;
}

@media (min-width: 1024px) {
    .hero-mobile { display: none !important; }
    .hero-desktop { display: flex !important; align-items: center; justify-content: flex-start; }
    .hero-desktop .hero-text-wrapper { max-width: 50%; text-align: left; padding-left: 1.5rem; padding-right: 1rem; }
    .hero-desktop .hero-title {
        font-family: 'Poppins', sans-serif;
        font-size: 2.25rem; font-weight: 700; line-height: 1.2; color: white; margin-bottom: 1rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); opacity: 0; transform: translateY(20px);
        animation: slideUpFade 0.8s ease-out forwards; animation-delay: 0.3s;
    }
    .hero-desktop .hero-subtitle {
        font-family: 'Roboto', sans-serif;
        font-size: 1rem; font-weight: 400; line-height: 1.5; color: rgba(255, 255, 255, 0.9);
        margin-bottom: 2rem; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); opacity: 0;
        transform: translateY(20px); animation: slideUpFade 0.8s ease-out forwards;
        animation-delay: 0.6s; display: inline-block; max-width: 100%; word-wrap: break-word;
    }
    .hero-desktop .hero-buttons-container {
        display: flex; flex-wrap: wrap; gap: 1rem; opacity: 0;
        transform: translateY(20px); animation: slideUpFade 0.8s ease-out forwards; animation-delay: 0.9s;
    }
}

@media (min-width: 1280px) {
    .hero-desktop .hero-text-wrapper { padding-left: 2.5rem; padding-right: 1.5rem; }
    .hero-desktop .hero-title { font-size: 2.5rem; }
    .hero-desktop .hero-subtitle { font-size: 1.05rem; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .hero-section-main { min-height: 450px; max-height: 600px; height: 75vh; }
    .hero-desktop .hero-text-wrapper { max-width: 60%; padding-left: 2rem; padding-right: 1rem; }
    .hero-desktop .hero-title { font-size: 2.25rem; }
    .hero-desktop .hero-subtitle { font-size: 0.95rem; }
}

@media (max-width: 1023px) {
    .hero-desktop { display: none !important; }
    .hero-mobile { display: flex !important; align-items: center; justify-content: center; }
    .hero-mobile .hero-text-wrapper { max-width: 100%; text-align: center; padding: 0 1.5rem; }
    .hero-mobile .hero-title-mobile {
        font-family: 'Poppins', sans-serif;
        font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: white; margin-bottom: 1rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); opacity: 0; transform: translateY(20px);
        animation: slideUpFade 0.8s ease-out forwards; animation-delay: 0.3s;
    }
    .hero-mobile .hero-subtitle-mobile {
        font-family: 'Roboto', sans-serif;
        font-size: 1rem; font-weight: 400; line-height: 1.5; color: rgba(255, 255, 255, 0.9);
        margin-bottom: 2rem; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); opacity: 0;
        transform: translateY(20px); animation: slideUpFade 0.8s ease-out forwards;
        animation-delay: 0.6s; max-width: 100%; margin-left: auto; margin-right: auto;
    }
    .hero-mobile .hero-buttons-container {
        display: flex; flex-direction: column; align-items: center; width: 100%; gap: 1rem; opacity: 0;
        transform: translateY(20px); animation: slideUpFade 0.8s ease-out forwards; animation-delay: 0.9s;
    }
    .hero-mobile .btn-particulier, .hero-mobile .btn-professionnel {
        width: 100%; max-width: 280px; justify-content: center; padding: 1rem 2rem; font-size: 1rem; min-width: auto;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section-main { min-height: 500px; max-height: 650px; height: 85vh; }
    .hero-mobile .hero-title-mobile { font-size: 2rem; }
    .hero-mobile .hero-subtitle-mobile { font-size: 1rem; }
    .hero-mobile .hero-buttons-container { flex-direction: row; justify-content: center; }
    .hero-mobile .btn-particulier, .hero-mobile .btn-professionnel { width: auto; min-width: 200px; }
}

@media (max-width: 480px) {
    .hero-mobile .hero-title-mobile { font-size: 1.4rem; }
    .hero-mobile .hero-subtitle-mobile { font-size: 0.9rem; }
}

@media (max-width: 375px) {
    .hero-mobile .hero-title-mobile { font-size: 1.3rem; }
    .hero-mobile .hero-subtitle-mobile { font-size: 0.85rem; }
}

@media (max-height: 600px) and (max-width: 1023px) {
    .hero-mobile .hero-title-mobile { font-size: 1.3rem; margin-bottom: 0.75rem; }
    .hero-mobile .hero-subtitle-mobile { font-size: 0.8rem; margin-bottom: 1rem; }
}

