/* Header Refonte - Transparent */
:root {
    --primary-color: #1B4F3E;
    /* Orki Green */
    --secondary-color: #D5F7E3;
    /* Light Green */
    --accent-color: #E6F4F1;
    --text-color: #1a1a1a;
    --white: #ffffff;
    --font-primary: "tt-commons-pro", sans-serif;
    --dark-green: #003329;
    --lime-green: #D8F283;
}

.description,
li,
p,
ul {
    font-family: var(--font-primary);

}

.refonte-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 8px 64px;
    box-sizing: border-box;
    background-color: var(--dark-green);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 32px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    padding: 10px 0;
    /* Increase hit area */
}

.nav-link {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.2s;
    padding: 10px 0;
}

.nav-link:hover,
.nav-item:hover {
    opacity: 1;
    /* Handle opacity on children or specific hover states */
}

/* Hover effect on text only to avoid flickering with mega menu */
.nav-item>span:hover,
.nav-link:hover {
    opacity: 0.8;
}

.arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.nav-item:hover .arrow-icon {
    transform: rotate(180deg);
}

/* Mega Menu Styles */
.mega-menu-container {
    position: absolute;
    top: 100%;
    left: -24px;
    transform: none;
    /* We'll set this via a CSS variable, default to dark green */
    background-color: var(--mega-menu-bg, #1A473E);
    border-radius: 16px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px 32px;
    display: none;
    grid-template-columns: repeat(3, 320px);
    gap: 0;
    width: max-content;
    z-index: 1000;
    margin-top: 0px;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-nav> :last-child .mega-menu-container {
    left: auto;
    right: 0;
}

.nav-item:hover .mega-menu-container {
    display: grid;
    animation: fadeInDown 0.2s ease-out forwards;
}

/* Single-column mega menu (e.g. À propos) */
.mega-menu-container:-moz-any(:has(.mega-menu-column:only-child)),
.mega-menu-container:has(.mega-menu-column:only-child) {
    grid-template-columns: 1fr;
    width: auto;
    min-width: 200px;
    gap: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    padding: 0 32px;
}

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

.mega-menu-column:last-child {
    padding-right: 0;
}

.mega-menu-borders {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mega-menu-title img {
    width: 20px;
    height: 20px;
}

.mega-menu-title span {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-menu-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
    padding: 4px 0;
}

.mega-menu-link:hover {
    opacity: 0.8;
}

.mega-link-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
}

.mega-link-title .link-arrow {
    width: 12px;
    height: 12px;
    opacity: 1;
    transition: transform 0.2s;
    filter: brightness(0) invert(1);
    transform: rotate(-90deg);
}

.mega-menu-link:hover .link-arrow {
    transform: translateX(4px) rotate(-90deg);
}

.mega-link-desc {
    font-family: var(--font-primary);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    font-weight: 400;
}

/* Specific handler for "A propos" simple links that don't use new struct */
a.mega-menu-link:not(:has(.mega-link-title)) {
    color: #FFFFFF;
    font-size: 16px;
}

a.mega-menu-link:not(:has(.mega-link-title)):hover {
    color: #E6FFA3;
}


/* Button Header */
.btn-header-demo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #E6FFA3;
    /* Lime Green */
    padding: 6px 6px 6px 20px;
    border-radius: 100px;
    height: 44px;
    text-decoration: none;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.btn-header-demo:hover {
    transform: translateY(-2px);
}

.btn-header-demo span {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: #003329;
    line-height: 1;
}

.btn-header-demo .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-header-demo .btn-icon img {
    width: 100%;
    height: 100%;
}



@media (max-width: 1024px) {
    .refonte-header {
        padding: 24px;
    }

    .hideSmall {
        display: none !important;
    }
}

body {
    font-family: var(--font-primary);
    margin: 0;
}

.refonte-hero {
    background-color: var(--dark-green);
    background-image: url('/img/refonte/background-lines-white.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 160px 64px 0 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--Radius-radius-16, 16px);
    background: linear-gradient(180deg, rgba(101, 120, 49, 0.80) 0%, rgba(101, 120, 49, 0.20) 100%);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 400;
    color: #E6FFA3;
    margin-bottom: 24px;
}

.refonte-title {
    font-family: var(--font-primary);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 24px 0;
    max-width: 900px;
}

.refonte-subtitle {
    font-family: var(--font-primary);
    font-size: 20px;
    line-height: 1.5;
    color: white;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 0 48px 0;
    text-align: center;
}

.hero-cta {
    margin-bottom: 64px;
}


/* Mobile Menu Styles */
.showSmall {
    display: none;
}

#burgerMenuToggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 101;
    /* Above mobile menu */
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

#burgerMenuToggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    transition: all 0.3s;
}

#burgerMenuToggle img {
    display: none;
    /* Formatting similar to standard layout logic */
    filter: brightness(0) invert(1);
    /* Make cross white */
}

#burgerMenuToggle.active span {
    display: none;
}

#burgerMenuToggle.active img {
    display: block;
}


@media (max-width: 1024px) {
    .showSmall {
        display: flex !important;
    }

    #burgerMenuToggle {
        display: flex;
    }

    .header-content {
        justify-content: space-between;
    }
}

/* Burger Menu Overlay */
#burgerMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 99;
    padding-top: 100px;
    padding-bottom: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#burgerMenu.active {
    transform: translateX(0);
}

/* Burger Menu Item Styles */
.burger-nav-link {
    padding: 16px 32px;
    border-bottom: 1px solid #E6E6E6;
    color: #1A1A1A;
    font-family: var(--font-primary);
    font-size: 18px;
    text-decoration: none;
    display: block;
    font-weight: 400;
}

.burger-nav-group {
    padding: 16px 32px;
    border-bottom: 1px solid #E6E6E6;
    color: #1A1A1A;
    cursor: pointer;
}

.burger-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
}

.burger-group-header .arrow-icon {
    transition: transform 0.2s;
    filter: invert(1) brightness(0);
    /* Make icon black */
}

.burger-nav-group.active .burger-group-header .arrow-icon {
    transform: rotate(180deg);
}

.burger-sub-menu {
    display: none;
    margin-top: 16px;
    padding-left: 0;
    flex-direction: column;
    /* Ensure vertical stacking */
}

.burger-sub-menu.active {
    display: flex;
}

.burger-category-title {
    font-size: 12px;
    color: #8D8D8D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 16px 0 8px 0;
    font-weight: 500;
}

.burger-sub-link {
    display: block;
    padding: 8px 0;
    color: #4A4A4A;
    text-decoration: none;
    font-size: 16px;
}

.burger-cta-container {
    padding: 32px;
    margin-top: auto;
}

.burger-cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--lime-green);
    color: var(--dark-green);
    padding: 12px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--lime-green);
    padding: 6px 6px 6px 20px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s ease;
    height: 44px;
    box-sizing: border-box;
}

.btn-hero:hover {
    transform: translateY(-2px);
}

.btn-hero span {
    color: var(--dark-green);
    font-weight: 400;
    font-size: 16px;
}

.btn-hero .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-hero .btn-icon img {
    width: 100%;
    height: 100%;
}

.hero-image-container {
    max-width: 412px;
    display: flex;
    justify-content: center;
    margin-bottom: -100px;
    /* Slight overlap with next section if needed, or just padding bottom */
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
    /* Optional: drop shadow or effects */
}

@media (max-width: 1024px) {
    .refonte-hero {
        padding: 120px 24px 48px 24px;
    }

    .refonte-title {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .refonte-hero {
        padding: 100px 12px 32px 12px;
    }

    .refonte-title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .refonte-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .btn-hero {
        height: 48px;
        padding: 8px 8px 8px 16px;
        width: 100%;
        /* Full width button on small mobile often simpler */
        justify-content: space-between;
        margin-bottom: 32px;
        /* Ensure spacing from image */
    }

    .hero-cta {
        justify-content: center !important;
    }

    .hero-trustpilot {
        width: 100%;
        justify-content: center !important;
    }
}

/* Global Mobile Image Hiding */
@media (max-width: 768px) {

    .hero-image-container,
    .home-hero-image-container,
    .home-hero-image,
    .about-story-image,
    .about-checklist-image,
    .benefit-image-wrapper,
    .card-image-container,
    .home-solutions-images,
    .step-image,
    .platform-image,
    .card-image {
        display: none !important;
    }
}