.home-container {
    margin: 0 auto;
    max-width: 1390px;
    text-align: left;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 33px;
    background: #FFF;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.10);
    height: 80px;
    position: relative; /* Ajouté pour le positionnement du menu */
    z-index: 100000; /* Augmenté le z-index pour être au-dessus de .tabs-group */
}

/* Mettre le header en arrière-plan quand le modal de génération d'opportunité est ouvert */
body.modal-open .header {
    z-index: 999;
}

.header .logo {
    max-height: 50px;
}

.header .favicon {
    display: none;
}

.hamburger {
    display: none; /* Masqué par défaut */
    cursor: pointer;
    font-size: 24px; /* Taille du hamburger */
}

/* Navigation Menu Styles */
.nav-menu {
    display: flex;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

.nav-menu.active {
    display: flex; /* Affiche le menu quand actif */
    flex-direction: column; /* Colonne pour le menu */
    position: absolute; /* Positionnement absolu */
    top: 55px; /* Juste en dessous de l'en-tête */
    right: 0; /* Aligné à droite */
    background: #FFF; /* Fond blanc */
    width: 100%; /* Prend toute la largeur */
    z-index: 1000; /* Au-dessus des autres éléments */
    border-top: 1px solid #DDE9E7;
}

.nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    display: inline;
}

/* Navigation Link Styles */
.nav-link {
    color: #9DADAB;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    transition: color 0.3s ease, font-weight 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: attr(data-text);
    font-weight: 700;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    display: block;
}

.nav-link:hover {
    text-decoration: none;
    color: #004439;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.nav-link.active {
    color: #004439;
    font-size: 16px;
    font-weight: 700;
    line-height: 34px; /* 226.667% */
}

.nav-btn {
    color: #9DADAB;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    position: relative;
}

.nav-btn:hover {
    text-decoration: none;
    color: #004439;
}

/* Banner Styles */
.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 5%;
}

.banner-left {
    flex: 1;
    padding-right: 20px;
}

.banner-left h1 {
    color: #004439;
    font-size: 60px;
    font-style: normal;
    font-weight: 700;
    line-height: 80px; /* 133.333% */
    text-align: left;
    margin-bottom: 49px;
}

.banner-left p {
    color: #0E6154;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px; /* 187.5% */
    margin-bottom: 35px;
}

.banner-right {
    flex: 1;
    text-align: right;
}

.banner-right img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.buttons a {
    color: #004439;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 125% */
    position: relative;
}

.buttons a img {
    position: absolute;
    right: 32px;
}

.btn-primary, .btn-secondary {
    display: flex;
    width: 315px;
    height: 50px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-primary {
    border-radius: 20px;
    background: #FFC500;
}

.btn-primary:hover {
    text-decoration: none;
}

.btn-secondary {
    border-radius: 20px;
    border: 1px solid #004439;
}

.btn-secondary:hover {
    text-decoration: none;
}

/* Animation Styles */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hidden {
    opacity: 0;
    transition: opacity 2s ease-out; /* Increased duration */
}

.visible {
    opacity: 1;
    animation: fadeIn 2s; /* Apply fadeIn animation */
}

/* Fullscreen Navigation Menu Styles */
.nav-menu.fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFF;
    z-index: 1000;
    padding-top: 40px;
}

.nav-menu.fullscreen .nav {
    flex-direction: column;
    gap: 55px;
    margin-top: 89px;
}

.nav-menu.fullscreen .nav-item {
    display: block;
}

.nav-menu.fullscreen .buttons, .nav-menu.fullscreen img {
    display: flex; /* Affiche les boutons en mode plein écran */
    flex-direction: column;
    gap: 19px;
}

.nav-menu.fullscreen .buttons {
    margin-top: 89px;
    width: 315px;
}

/* Media Query pour Mobile */
@media screen and (max-width: 768px) {
    .header {
        padding: 0 20px;
        height: 60px;
    }

    .header .logo {
        display: none; /* Cache le logo principal sur mobile */
    }

    .header .favicon {
        display: block; /* Affiche le favicon sur mobile */
        max-height: 30px;
    }

    .mobile-panier {
        display: flex;
        justify-content: center;
    }

    .hamburger {
        display: block; /* Affiche le menu hamburger sur mobile */
    }

    .nav-menu {
        display: flex;
        opacity: 0;
        transform: translateY(-100%);
        pointer-events: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #FFF;
        padding: 20px;
        width: auto !important;
        transition: all 0.3s ease-in-out;
        align-items: center;
        flex-direction: column;
    }

    .nav-menu.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-menu .nav-item {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }

    .nav-menu .buttons {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
        transition-delay: 0.4s;
    }

    .nav-menu.active .buttons {
        opacity: 1;
        transform: translateY(0);
    }

    .nav {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .buttons {
        align-items: center;
        margin-top: 30px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 315px;
    }
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.user-avatar {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100000; /* Augmenté encore plus le z-index pour être au-dessus de .tabs-group */
    min-width: 110px;
    padding: 15px 30px;
    margin-top: 8px;
    border-radius: 20px;
    background: #FFF;
}

.dropdown-menu.show {
    display: flex;
    flex-direction: column;
    gap: 13px;
    z-index: 100000; /* Assurez-vous que .show a aussi le z-index élevé */
}

.dropdown-item {
    display: block;
    color: #004439;
    font-size: 14px;
    text-decoration: none;
}

.dropdown-item:hover {
    text-decoration: none;
    color: #004439;
}

/* Ajout pour le responsive */
@media screen and (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 10px;
        width: 100%;
    }
    
    .user-avatar {
        margin: 10px auto;
    }
}

.btn-outline {
    padding: 14px 28px;
    display: inline-block;
    margin: 0;
    height: auto;
    border-radius: 20px;
    border: 1px solid #004439;
    color: #004439;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px; /* 125% */
}

/* Styles pour l'icône du panier */
.cart-icon-container {
    position: relative;
}

.cart-icon {
    display: block;
    position: relative;
}

.cart-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-img {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #F73029;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .btn-outline {
        display: inline-block;
        max-width: 315px;
        text-align: center;
        margin: 10px 0;
    }
    
    /* Style responsive pour l'icône du panier */
    .cart-icon-container {
        margin: 15px 0;
    }
}

/* Language Selector Dropdown */
.language-selector {
    position: relative;
    margin-left: 20px;
    display: flex;
    align-items: center;
    z-index: 100000; /* Augmenté le z-index pour être au-dessus de .tabs-group */
}

.selected-language {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 16px;
    background: #FFF;
}

.flag-icon {
    object-fit: cover;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background-color 0.2s ease;
    width: 100%; /* Occupe toute la largeur */
    box-sizing: border-box; /* Inclut padding dans la largeur */
    color: #7E9894;
    font-size: 16px;
    line-height: normal;
}

.lang-item:last-child {
    border-bottom: none; /* Pas de bordure pour le dernier élément */
}

.lang-item.active {
    color: #004439;
    font-weight: 500;
}

.lang-item span {
    flex-grow: 1; /* Prend tout l'espace disponible */
}

/* Responsive styles for language selector */
@media screen and (max-width: 768px) {
    .language-selector {
        margin: 20px 0;
    }
    
    .language-dropdown {
        position: static;
        width: 100%;
        max-width: 200px;
        margin: 10px auto;
    }
}

/* Animation plus rapide pour le modal de réinitialisation */
.reset-modal {
    display: none;
    position: fixed;
    z-index: 9999; /* Increased z-index value to be higher than any other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.2s ease;
}

.reset-modal.show {
    background-color: rgba(0, 0, 0, 0.4);
}

.reset-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 0;
    border-radius: 20px;
    width: 80%;
    max-width: 490px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease, margin 0.2s ease; /* Réduit de 0.3s à 0.2s */
}

.reset-modal.show .reset-modal-content {
    margin: 10% auto;
    transform: translateY(0);
    opacity: 1;
}

.reset-modal-body {
    padding: 37px;
}

.reset-illustration {
    text-align: center;
    margin-bottom: 28px;
}

.reset-illustration img {
    object-fit: contain;
}

.reset-icon-fallback {
    font-size: 48px;
    color: #004439;
    margin: 0 auto;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background-color: #F1F4F4;
    border-radius: 50%;
    display: inline-block;
}

.reset-title {
    color: #004439;
    font-size: 16px;
    font-weight: 700;
    line-height: 8px;
    margin-bottom: 22px;
    text-align: center;
}

.reset-message {
    color: #3B605A;
    margin-bottom: 30px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}

.reset-warning-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 30px;
    border-radius: 10px;
    background: rgba(255, 197, 0, 0.15);
}

.reset-warning-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-warning-icon-fallback {
    font-size: 18px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-warning-block p {
    color: #3B605A;
    font-size: 10px;
    font-weight: 500;
    line-height: 20px;
    margin: 0;
    align-self: center;
}

.reset-modal-buttons {
    display: flex;
    justify-content: space-between; /* Espace les boutons */
    width: 100%;
    gap: 12px; /* Espace entre les boutons */
}

.reset-btn-cancel, .reset-btn-confirm {
    padding: 14px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    flex: 1; /* Fait en sorte que les boutons prennent un espace égal */
    box-sizing: border-box; /* Inclut padding dans la largeur */
}

.reset-btn-cancel {
    background-color: transparent;
    color: #004439;
    border: 1px solid #DDE9E7;
}

.reset-btn-confirm {
    background-color: #59B224;
    color: white;
    border: none;
    text-decoration: none;
    display: block; /* Change en block pour permettre flex:1 */
}

.reset-btn-confirm:hover {
    background-color: #59B224;
    text-decoration: none;
    color: white;
}

/* Conserver la media query pour les écrans étroits */
@media screen and (max-width: 768px) {
    .reset-modal-buttons {
        flex-direction: column;
    }
    
    .reset-btn-cancel, .reset-btn-confirm {
        width: 100%;
        margin-bottom: 10px;
    }
}
