/* === Header Layout === */
.header-main {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.header-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.header-navigation a {
    margin-left: 15px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.header-button {
    background: #ffc107;
    color: #000;
    padding: 8px 14px;
    border-radius: 5px;
    margin-left: 20px;
}

/* === Modal Connexion === */
.header-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.header-modal-content {
    background-color: #fff;
    color: #000;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
}

.header-modal-content h2 {
    margin-top: 0;
    text-align: center;
}

.header-modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 15px;
}

.header-submit {
    background-color: #00baff;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
}

.header-register {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.header-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}

/* === Dropdown Menu (clic) === */
.header-user-dropdown {
    position: relative;
    display: inline-block;
}

.header-user-toggle {
    cursor: pointer;
    font-weight: bold;
    padding: 6px 10px;
    color: #333;
}

.header-caret {
    font-size: 10px;
    margin-left: 4px;
}

.header-user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 5px;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 220px;
    padding: 10px 0;
    flex-direction: column;
    color: #000;
}

.header-user-menu.show {
    display: block;
}

.header-user-menu a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.header-user-menu a:hover {
    background-color: #f2f2f2;
}

/* === Responsive tweaks === */
@media (max-width: 768px) {
    .header-navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 10px;
    }

    .header-user-menu {
        left: 0;
        right: auto;
        min-width: 100%;
    }

    .header-button {
        margin-left: 0;
    }
}
