/*
Theme Name: Hello Elementor Child
Description: Thème enfant de Hello Elementor pour PLATFORM TECHNOINJAZ
Author: PLATFORM TECHNOINJAZ
Template: hello-elementor
Version: 1.0.0
*/


/* =========================================================
   PLATFORM TECHNOINJAZ — HEADER & NAVIGATION
   ========================================================= */

:root {
    --pti-navy: #171B4F;
    --pti-blue: #2E3192;
    --pti-sky: #38A3E1;
    --pti-orange: #F7931E;
    --pti-white: #FFFFFF;
    --pti-header-shadow: 0 12px 35px rgba(10, 15, 50, .20);
}

/* Header */

header.pti-site-header {
    position: sticky;
    top: 0;
    z-index: 99999;
    isolation: isolate;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    background: rgba(23, 27, 79, .97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    box-shadow: 0 6px 25px rgba(10, 15, 50, .14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

body.admin-bar header.pti-site-header {
    top: 32px;
}

header.pti-site-header .pti-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 1800px;
    min-height: 80px;
    margin: 0 auto;
    padding: 10px clamp(16px, 3vw, 42px);
    overflow: visible !important;
}

/* Logo */

header.pti-site-header .pti-brand {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 1 225px;
    align-items: center;
    width: 225px;
    max-width: 28%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none;
}

header.pti-site-header .pti-brand img {
    display: block;
    width: 215px;
    max-width: 100%;
    max-height: 62px;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: left center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Desktop navigation */

header.pti-site-header #pti-main-navigation {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(8px, 1.1vw, 18px);
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    background: transparent !important;
    border: 0;
    box-shadow: none;
}

header.pti-site-header #pti-main-navigation > a {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 8px 0;
    color: #FFFFFF !important;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    transition: color .2s ease;
}

header.pti-site-header #pti-main-navigation > a:hover {
    color: #FFB34E !important;
}

/* Quote button */

header.pti-site-header #pti-main-navigation > a.pti-header-quote {
    min-height: 44px;
    padding: 11px 16px;
    color: #FFFFFF !important;
    background: var(--pti-orange) !important;
    border: 1px solid var(--pti-orange);
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(247, 147, 30, .20);
    font-weight: 750;
}

header.pti-site-header #pti-main-navigation > a.pti-header-quote:hover {
    color: #FFFFFF !important;
    background: #DF7B08 !important;
    border-color: #DF7B08;
}

/* Dropdown containers */

header.pti-site-header .pti-nav-dropdown,
header.pti-site-header .pti-account-menu {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Dropdown buttons */

header.pti-site-header .pti-nav-dropdown-toggle,
header.pti-site-header .pti-account-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 13px;
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 10px;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    transition: color .2s ease,
                background .2s ease,
                border-color .2s ease;
}

header.pti-site-header .pti-nav-dropdown-toggle:hover,
header.pti-site-header .pti-account-toggle:hover,
header.pti-site-header .pti-nav-dropdown.pti-dropdown-open
> .pti-nav-dropdown-toggle,
header.pti-site-header .pti-account-menu.pti-account-open
> .pti-account-toggle {
    color: #FFB34E !important;
    background: rgba(255, 255, 255, .12) !important;
    border-color: var(--pti-orange);
}

header.pti-site-header .pti-nav-dropdown-toggle span,
header.pti-site-header .pti-account-toggle span {
    color: inherit !important;
    pointer-events: none;
}

/* Dropdown panels */

header.pti-site-header .pti-nav-submenu,
header.pti-site-header .pti-account-submenu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 100100;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 270px;
    min-width: 230px;
    max-width: calc(100vw - 24px);
    margin: 0;
    padding: 9px;
    overflow: visible !important;
    color: #FFFFFF !important;
    background: #171B4F !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 13px;
    box-shadow: var(--pti-header-shadow);
    opacity: 1 !important;
    visibility: visible;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    isolation: isolate;
    animation: pti-header-dropdown-in .18s ease-out;
}

header.pti-site-header .pti-nav-submenu[hidden],
header.pti-site-header .pti-account-submenu[hidden] {
    display: none !important;
    visibility: hidden !important;
}

@keyframes pti-header-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown links — force readable text */

header.pti-site-header .pti-nav-submenu a,
header.pti-site-header .pti-account-submenu a,
header.pti-site-header .pti-nav-submenu a:link,
header.pti-site-header .pti-account-submenu a:link,
header.pti-site-header .pti-nav-submenu a:visited,
header.pti-site-header .pti-account-submenu a:visited {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    min-height: 46px;
    margin: 0;
    padding: 12px 14px;
    color: #FFFFFF !important;
    background: transparent !important;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5;
    text-align: left;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;
    transition: color .2s ease, background .2s ease;
}

header.pti-site-header .pti-nav-submenu a:hover,
header.pti-site-header .pti-account-submenu a:hover,
header.pti-site-header .pti-nav-submenu a:focus-visible,
header.pti-site-header .pti-account-submenu a:focus-visible {
    color: #FFB34E !important;
    background: rgba(56, 163, 225, .18) !important;
    border-color: rgba(56, 163, 225, .30);
}

/* Mobile menu button */

header.pti-site-header .pti-menu-toggle {
    position: relative;
    z-index: 100110;
    display: none;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 46px;
    height: 44px;
    margin: 0;
    padding: 10px;
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 10px;
    box-shadow: none !important;
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;
}

header.pti-site-header .pti-menu-toggle span {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 2px;
    margin: 0;
    padding: 0;
    background: #FFFFFF !important;
    border: 0;
    border-radius: 4px;
    pointer-events: none;
}

/* Tablet and mobile */

@media (max-width: 1100px) {
    header.pti-site-header .pti-header-inner {
        min-height: 76px;
        padding: 10px 18px;
    }

    header.pti-site-header .pti-brand {
        flex: 0 1 220px;
        width: 220px;
        max-width: calc(100% - 65px);
    }

    header.pti-site-header .pti-brand img {
        width: 200px;
        max-height: 54px;
    }

    header.pti-site-header .pti-menu-toggle {
        display: flex !important;
    }

    header.pti-site-header #pti-main-navigation {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 100100;
        display: none !important;
        flex: 0 0 auto;
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 5px;
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 76px);
        max-height: calc(100dvh - 76px);
        margin: 0;
        padding: 14px 18px 20px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: #171B4F !important;
        border-top: 1px solid rgba(255, 255, 255, .14);
        border-radius: 0 0 14px 14px;
        box-shadow: var(--pti-header-shadow);
        visibility: hidden;
        pointer-events: none;
    }

    header.pti-site-header #pti-main-navigation.pti-nav-open {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    header.pti-site-header #pti-main-navigation > a {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        margin: 0;
        padding: 12px;
        color: #FFFFFF !important;
        font-size: 14px;
        text-align: left;
        white-space: normal;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    header.pti-site-header .pti-nav-dropdown,
    header.pti-site-header .pti-account-menu {
        position: relative;
        display: flex;
        flex: 0 0 auto;
        align-items: stretch;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow: visible !important;
    }

    header.pti-site-header .pti-nav-dropdown-toggle,
    header.pti-site-header .pti-account-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 46px;
        padding: 12px;
        color: #FFFFFF !important;
        font-size: 14px;
        text-align: left;
        white-space: normal;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    header.pti-site-header .pti-nav-submenu,
    header.pti-site-header .pti-account-submenu {
        position: static !important;
        top: auto;
        right: auto;
        left: auto;
        z-index: 3;
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        gap: 4px;
        width: 100% !important;
        min-width: 0;
        max-width: 100% !important;
        margin: 5px 0 8px;
        padding: 6px;
        overflow: visible !important;
        color: #FFFFFF !important;
        background: #11163F !important;
        border: 1px solid rgba(255, 255, 255, .15) !important;
        border-radius: 10px;
        box-shadow: none;
        animation: none;
        pointer-events: auto;
    }

    header.pti-site-header .pti-nav-submenu[hidden],
    header.pti-site-header .pti-account-submenu[hidden] {
        display: none !important;
    }

    header.pti-site-header .pti-nav-submenu a,
    header.pti-site-header .pti-account-submenu a {
        display: flex !important;
        width: 100% !important;
        min-height: 46px;
        padding: 12px 13px;
        color: #FFFFFF !important;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    header.pti-site-header #pti-main-navigation > a.pti-header-quote {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin-top: 7px;
        padding: 12px 15px;
        color: #FFFFFF !important;
        background: var(--pti-orange) !important;
        border: 1px solid var(--pti-orange);
        border-radius: 9px;
        text-align: center;
    }
}

/* WordPress admin toolbar */

@media (max-width: 782px) {
    body.admin-bar header.pti-site-header {
        top: 46px;
    }
}

/* Small phones */

@media (max-width: 480px) {
    header.pti-site-header .pti-header-inner {
        min-height: 68px;
        padding: 9px 13px;
    }

    header.pti-site-header .pti-brand img {
        width: 175px;
        max-height: 46px;
    }

    header.pti-site-header #pti-main-navigation {
        max-height: calc(100vh - 68px);
        max-height: calc(100dvh - 68px);
        padding: 12px 13px 18px;
    }

    body.admin-bar header.pti-site-header #pti-main-navigation {
        max-height: calc(100vh - 114px);
        max-height: calc(100dvh - 114px);
    }

    header.pti-site-header .pti-menu-toggle {
        flex-basis: 44px;
        width: 44px;
        height: 42px;
    }
}

/* RTL */

[dir="rtl"] header.pti-site-header .pti-brand img {
    object-position: right center;
}

[dir="rtl"] header.pti-site-header .pti-nav-submenu,
[dir="rtl"] header.pti-site-header .pti-account-submenu {
    right: auto;
    left: 0;
}

[dir="rtl"] header.pti-site-header .pti-nav-submenu a,
[dir="rtl"] header.pti-site-header .pti-account-submenu a {
    text-align: right;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    header.pti-site-header *,
    header.pti-site-header *::before,
    header.pti-site-header *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
