﻿

.menu{

    display:flex;

    justify-content:center;

    gap:20px;

    margin:20px auto;

}

.menu a{

    text-decoration:none;

    color:#333;

    display:flex;

    flex-direction:column;

    align-items:center;

    padding:10px 16px;

    border-radius:12px;

    transition:.2s;

}

.menu a:hover{

    background:#f3f3f3;

}

.menu span{

    font-size:28px;

}

.menu small{

    margin-top:4px;

    font-size:14px;

}

.menu a.active{

    color:#2E7D32;
	background:#E8F5E9;
	transform:scale(.92);

}

.menu a.active span{

    transform:scale(1.15);

}


.site-header {
    width: 100%;
}

/* Ligne contenant les deux logos */
.header-top {
    position: relative;
    height: 70px;

    display: flex;
    align-items: center;

    padding: 0 20px;
    box-sizing: border-box;
}

/* Logo de gauche */
.logo-main {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo-main img {
    display: block;
    max-height: 55px;
    width: auto;
}

/* Logo centré dans l'espace restant */
.logo-section {
     position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-section img {
     display: block;

    max-height: 60px;
    max-width: 220px;

    width: auto;
}

/* ==========================
   ACTIONS VISITEUR
========================== */

.guest-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}


/* Bouton connexion */

.login-btn,
.register-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;
}


/* Connexion */

.login-btn {
    background: #e8f4fb;

    border: 1px solid #8ecae6;
	display:block;
    color: #23627e;
}

.login-btn:hover {
    background: #d5edf8;

    transform: translateY(-1px);
}


/* Inscription */

.register-btn {
    background: #219ebc;

    border: 1px solid #219ebc;

    color: white;
}

.register-btn:hover {
    background: #1885a0;

    transform: translateY(-1px);
}


@media (max-width: 600px) {

    .guest-actions {
        gap: 5px;
    }

    .login-btn { display:none;}
    
	.register-btn {
        padding: 7px 9px;

        font-size: 12px;
    }
}
/* ==========================
   UTILISATEUR
========================== */

.user-profile {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 5px 10px;

    border-radius: 25px;

    text-decoration: none;

    color: #333;

    transition:
        background .2s ease,
        transform .2s ease;
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.06);

    transform: translateY(-1px);
}


/* Avatar */

.user-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;

    display: block;

    border: 2px solid #4aa3df;
}


/* Pseudo */

.user-pseudo {
    font-size: 16px;

    font-weight: 700;

    white-space: nowrap;
}

@media (max-width:700px){

.menu{

    position:fixed;

    bottom:0;

    left:0;

    right:0;

    z-index:9999;

    margin:0;

    background:white;

    border-top:1px solid #ddd;

    box-shadow:0 -3px 10px rgba(0,0,0,.08);

    justify-content:space-around;

    padding:6px 0;

}

.menu a{

    flex:1;

    padding:4px 0;

}

.menu span{

    font-size:24px;

}

.menu small{

    font-size:11px;

}
}

@media (max-width: 600px) {
 .header-top {
        height: 58px;

        padding: 0 8px;
    }

    .logo-main img {
        max-height: 42px;
        max-width: 120px;
    }

    .logo-section {
        left: 50%;

        max-width: 40%;
    }

    .logo-section img {
        max-width: 100%;
        max-height: 45px;
    }

    .user-profile {
        padding: 2px;
        margin-left: auto;
    }

    .user-pseudo {
        display: none;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
    }
}