@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');


body {
    font-family: inika, 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #2C2C54;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

button {
    background-color: #32CD32;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #228B22;
    transform: scale(1.05);
}

/* Navbar Styles */
/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #E6FFE6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
	height: 30px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Section */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    font-size: 2.3rem;
    font-weight: bold;
    color: #000;
    transition: transform 0.3s ease-in-out;
}

.navbar-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar-logo:hover {
    transform: scale(1.1);
}

/* Navigation Menu */
.navbar-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-top: 15px;
    padding: 0;
	flex-wrap: wrap;
}

.navbar-links .nav-link {
    text-decoration: none;
    color: black;
    font-size: 1.0rem;
    font-weight: 500;
    padding: 10px 20px;
    background-color: #E6FFE6;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.navbar-links .nav-link:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
	transform: scale(1.1);
}

/* Hamburger Menu */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.navbar-toggle span {
    width: 35px;
    height: 4px;
    background: white;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .navbar-links {
        flex-direction: column;
        background: #16A085;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        display: none;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }
}



/* Sous-menu déroulant */
/* 🌿 Dropdown modernisé */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    min-width: 230px;
    padding: 12px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: #2C3E50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border-left: 4px solid transparent;
}

.dropdown-link::after {
    content: '➜';
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-5px);
    font-size: 0.95rem;
    color: #2C3E50;
}

.dropdown-link:hover {
    background-color: #d4ffe1;
    padding-left: 28px;
    border-left: 4px solid #2ECC71;
    border-radius: 0 10px 10px 0;
}

.dropdown-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* 🎯 Responsive */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: none;
        border-radius: 12px;
        padding: 0;
        width: 100%;
    }

    .navbar ul.active .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: flex; /* Permet d'aligner l'image et le texte sur une même ligne */
    align-items: center; /* Centre verticalement l'image et le texte */
    gap: 10px; /* Ajoute un espace entre le logo et le texte */
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 2.4rem; /* Taille du texte "Tra-V" */
    font-weight: bold;
    color: #000; /* Couleur du texte */
    font-family: inika, 'Poppins', sans-serif; /* Police utilisée */
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Style du bouton de déconnexion */
.logout-btn {
    margin-left: 10px;
    padding: 6px 12px;
    background-color: #dc3545; /* Rouge */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* Effet au survol */
.logout-btn:hover {
    background-color: #b02a37; /* Rouge foncé */
}

.user-nav {
    margin-left: 350px;
	min-width: 220px;
}

.main-content * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container{
    background-color: #E6FFE6; /* Fond plus clair */
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Ajustement du contraste */
    position: absolute;
	left: 30%;
	top: 20% !important;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

.container p{
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
    color: #000; /* Couleur du texte */
}

.container span{
    font-size: 12px;
    color: #6c757d;
}

.container a{
    color: #38a169; /* Lien vert de Tra-V */
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

.container button{
    background-color: transparent; /* Vert principal de Tra-V */
    color: #000;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid #000;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.container button.hidden{
    background-color: transparent;
    border-color: #000;
    color: #000;
}

.container button.hidden:hover {
	background: #fff;
}

.container button:hover{
    background-color: #D4FFD0; /* Survol plus foncé */
}

.container form{
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

.container input{
    background-color: #f1f3f5;
    border:none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.form-container{
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    overflow-y: auto;
    scrollbar-width: none;
}

.sign-in{
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.active .sign-in{
    transform: translateX(100%);
}

.sign-up{
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.active .sign-up{
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

@keyframes move{
    0%, 49.99%{
        opacity: 0;
        z-index: 1;
    }
    50%, 100%{
        opacity: 1;
        z-index: 5;
    }
}

.social-icons{
    margin: 20px 0;
}

.social-icons a{
    border: 1px solid #ccc;
    border-radius: 50%; /* Cercle parfait pour les icônes */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    width: 40px;
    height: 40px;
    color: #000; /* Vert principal de Tra-V */
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover{
    background-color: #D4FFD0; /* Fond vert au survol */
    color: #000; /* Icône blanche au survol */
    transform: scale(1.1);
}

.toggle-container{
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 20px;
    z-index: 1000;
}

.container.active .toggle-container{
    transform: translateX(-100%);
    border-radius: 20px;
}

.toggle{
    background-color: #D4FFD0; /* Vert principal pour le toggle */
    height: 100%;
    color: #000;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container.active .toggle{
    transform: translateX(50%);
}

.toggle-panel{
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left{
    transform: translateX(-200%);
}

.container.active .toggle-left{
    transform: translateX(0);
}

.toggle-right{
    right: 0;
    transform: translateX(0);
}

/* Conteneur du select personnalisé */
.custom-select-container {
    position: relative;
    width: 100%;
    margin: 8px 0;
}

/* Style de la zone sélectionnée */
.custom-select {
    background-color: #f1f3f5;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    color: #000;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Flèche personnalisée */
.custom-select::after {
    content: '▼';
    color: #6c757d;
    font-size: 12px;
    position: absolute;
    right: 15px;
}

/* Menu déroulant */
.options-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    max-height: 150px;
    overflow-y: auto;
}

/* Option individuelle */
.option {
    padding: 10px 15px;
    font-size: 13px;
    color: #000;
    cursor: pointer;
    background-color: #f1f3f5;
    transition: background-color 0.2s, color 0.2s;
}

/* Effet au survol */
.option:hover {
    background-color: #38a169;
    color: white;
}

/* Affichage du menu déroulant */
.custom-select.active .options-dropdown {
    display: block;
}

/* Style de l'option sélectionnée */
.selected-option {
    flex-grow: 1;
}

.selected-option.has-value {
    color: #000;
}

/* ✅ Utilisation d'une classe spécifique pour éviter les conflits */
.business-hidden {
    display: none;
}
