/* ========================================
   ArchiNet Mega Menu
   Identique à la wireframe mega-menu.php
   ======================================== */

/* --- Nav container --- */
#main-navigation {
    position: relative;
}

/* --- Kill theme's default chevrons/arrows on ALL menu items --- */
#main-navigation .menu > li > a::after,
#main-navigation .menu > li > a::before,
#main-navigation .menu-item-has-children > a::after,
#main-navigation .menu-item-has-children > a::before,
#main-navigation li.mega-menu > a::after,
#main-navigation li.mega-menu > a::before,
#main-navigation li.mega-menu-simple > a::after,
#main-navigation li.mega-menu-simple > a::before {
    display: none !important;
    content: none !important;
}

/* Also kill any chevron added via border trick on the li itself */
#main-navigation .menu > li::after,
#main-navigation .menu > li::before {
    display: none !important;
    content: none !important;
}

/* --- Our chevron --- */
.menu-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    margin-bottom: 3px;
    opacity: 0.5;
    transition: opacity .2s, transform .2s;
}

.mega-menu.is-open .menu-chevron {
    opacity: 1;
    transform: rotate(-135deg);
}

/* --- Mega menu li must be static so panel spans full width --- */
.mega-menu {
    position: static !important;
}

/* --- Mega Panel --- */
.mega-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    z-index: 9999;
}

.mega-menu.is-open > .mega-panel {
    display: block;
}

/* ========================================
   "Nos Solutions" panel
   ======================================== */

.mega-panel-body {
    display: flex;
    padding: 30px;
    gap: 0;
}

/* --- Columns with vertical separators --- */
.mega-col {
    flex: 1;
    padding: 0 30px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.mega-col:first-child {
    padding-left: 0;
}

.mega-col:last-child {
    padding-right: 0;
    border-right: none;
}

/* --- Column header with gradient text --- */
.mega-col-header {
    margin-bottom: 12px;
}

.mega-col-header a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.mega-col-header a::after {
    content: "\2192";
    font-size: 16px;
    opacity: 0.4;
    transition: opacity .2s, transform .2s;
    display: inline-block !important;
}

.mega-col-header a:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

.mega-col-header span {
    font-family: "DIN Pro Cond", sans-serif;
    font-size: 23px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.mega-col-cs .mega-col-header span {
    background: linear-gradient(135deg, #F7B731, #FF6200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mega-col-sd .mega-col-header span {
    background: linear-gradient(135deg, #7BC67E, #1A6B3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mega-col-oi .mega-col-header span {
    background: linear-gradient(135deg, #A60096, #E91E90);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Column intro text with separator line --- */
.mega-col-intro {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    min-height: 60px;
}

/* --- Offer items --- */
.mega-col-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-offer-item {
    padding: 0;
    margin: 0;
}

.mega-offer-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}

.mega-offer-item a:hover .mega-offer-title {
    color: #00B1EB;
}

.mega-offer-badge {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 9px;
}

.mega-col-cs .mega-offer-badge {
    background: linear-gradient(135deg, #F7B731, #FF6200);
}

.mega-col-sd .mega-offer-badge {
    background: linear-gradient(135deg, #7BC67E, #1A6B3C);
}

.mega-col-oi .mega-offer-badge {
    background: linear-gradient(135deg, #A60096, #E91E90);
}

.mega-offer-info {
    flex: 1;
}

.mega-offer-title {
    font-family: "DIN Pro Cond", sans-serif;
    font-size: 19px;
    font-weight: 400;
    text-transform: uppercase;
    color: #1C1C1C;
    margin: 0 0 4px;
    transition: color .2s;
}

.mega-offer-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* --- Footer CTA bar --- */
.mega-panel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 30px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.mega-panel-footer span {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #666;
}

.mega-panel-footer a {
    display: inline-flex;
    align-items: center;
    padding: 5px 20px;
    background: #00B1EB;
    color: #fff;
    text-decoration: none;
    font-family: "DIN Pro Cond", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: transform .3s ease-in;
}

.mega-panel-footer a:hover {
    transform: scale(1.05);
}

/* ========================================
   "Qui sommes-nous" panel
   ======================================== */

.mega-qsn-grid {
    display: flex;
    gap: 0;
    padding: 0;
}

.mega-qsn-item {
    flex: 1;
    padding: 25px 30px;
    background: #fff;
    border-right: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background .2s;
}

.mega-qsn-item:last-child {
    border-right: none;
}

.mega-qsn-item:hover {
    background: #f8f9fa;
}

.mega-qsn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mega-qsn-dot {
    width: 10px;
    height: 10px;
    background: #143F83;
    flex-shrink: 0;
}

.mega-qsn-label {
    font-family: "DIN Pro Cond", sans-serif;
    font-weight: 400;
    font-size: 19px;
    text-transform: uppercase;
    color: #143F83;
}

.mega-qsn-arrow {
    margin-left: auto;
    font-size: 16px;
    color: #143F83;
    opacity: 0.4;
    transition: opacity .2s, transform .2s;
}

.mega-qsn-item:hover .mega-qsn-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.mega-qsn-item p {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #888;
    margin: 0;
    padding-left: 18px;
}

/* ========================================
   Simple vertical dropdown (class: mega-menu-simple)
   Add via WP admin CSS classes on the menu item
   ======================================== */

.mega-menu-simple {
    position: relative !important;
}

.mega-menu-simple > .mega-panel {
    left: 0;
    transform: none;
    width: 400px;
    max-width: 400px;
}

.mega-menu-simple .mega-qsn-grid {
    flex-direction: column;
}

.mega-menu-simple .mega-qsn-item {
    border-right: none;
    border-bottom: 1px solid #eee;
}

.mega-menu-simple .mega-qsn-item:last-child {
    border-bottom: none;
}

/* ========================================
   Polylang language switcher in the mega menu
   ----------------------------------------
   Inherits the same look as other menu items (font, color, spacing).
   Just keeps the flag and the language code aligned inline.
   ======================================== */
#main-navigation #menu-navigation-mega-menu > li.lang-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#main-navigation #menu-navigation-mega-menu > li.lang-item > a img {
    width: 18px;
    height: auto;
    display: block;
    border-radius: 2px;
}
