/* ======= HEADER GLOBAL ======= */
header {
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    box-sizing: border-box;
    overflow: hidden; /* ✅ empêche tout débordement horizontal */
}

body {
    overflow-x: hidden; /* ✅ sécurité totale : empêche la page entière de dépasser */
}

/* ======= LOGO GAUCHE ======= */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo img {
    width: 50px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo span {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.03em;
    line-height: 1;
    position: relative;
    padding-bottom: 8px;

    /* ✅ dégradé premium */
    background: linear-gradient(90deg, #ffffff 0%, #ffe6c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* ✅ léger relief classe (style Apple / Figma / Stripe) */
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}



.logo span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff7d00, #ffd53d);
    border-radius: 3px;
    animation: underlineReveal 1.2s ease forwards;
}

@keyframes underlineReveal {
    from { width: 0%; opacity: 0; }
    to { width: 100%; opacity: 1; }
}


/* ======= NAVIGATION ======= */
nav {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* ✅ permet le retour à la ligne propre */
    gap: 16px;
    min-width: 0;
    overflow-x: auto; /* ✅ scroll discret si trop d’onglets */
    scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    transition: 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: #ffb84d;
}

nav a.active {
    color: #ffb84d;
    border-bottom: 2px solid #ffb84d;
    font-weight: 600;
    background: rgba(255,184,77,0.15);
}

/* ======= INFOS UTILISATEUR + DÉCONNEXION ======= */
.right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 30%;
}

.user-block {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-line1 {
    font-size: 0.85em;
    color: #fff;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
}
.user-line1 i { color: #ffb84d; margin-right: 5px; }

.user-line2 {
    font-size: 0.75em;
    color: #ddd;
}

.logout-icon {
    color: #fff;
    font-size: 1.3em;
    transition: 0.3s;
    flex-shrink: 0;
}
.logout-icon:hover {
    color: #ff6f00;
    transform: translateY(-2px);
}
