@import url('https://fonts.googleapis.com/css2?family=Hind+Madurai:wght@300;400;500;600;700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/*Définition des variables générales*/
:root {
    --primary-color: #FFC82C;
    --secondary-color: #A7A2BB;
    --bg-color: #F5F5F5;
    --text-color: #333;
    --nav-bg-color: #333;
}

/*Général*/
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; 
    padding: 2rem;
    margin-top: 3rem; 
}

/*Header et navigation*/
header {
    background-color: var(--nav-bg-color);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

#logo-zone{
    display: flex;
    flex-direction: row;
    font-size: 1.2rem;
}

#logo-implement{
    color: var(--primary-color);
    margin-bottom: 0;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-link-container{

    display: inline-block; /* Le lien prend seulement la place de son contenu (l'image) */
    padding: 0; /* Enlève tout padding par défaut */
    margin: 0;  /* Enlève tout margin par défaut */
    border: none; /* Supprime toute bordure par défaut */
}

.contact-btn, .login-btn, .logout-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-btn {
    background-color: var(--secondary-color);
    color: white;
}

.login-btn, .logout-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
}

/*Footer*/
footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--nav-bg-color);
    color: white;
    max-height: 1.5rem;
}

/*RWD Burger*/
@media screen and (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--nav-bg-color);
        padding: 1rem;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .button-group {
        display: none;
    }
    .mobile-login {
        display: flex;
        justify-content: left;
    }
    .mobile-login form {
        display: flex;
        justify-content: center;
    }
    .button-group {
        display: none;
    }
}

@media screen and (min-width: 769px) {
    .mobile-login {
        display: none;
    }
}


/*Coeur de page*/

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.progress-card, .upcoming-sessions, .tools, .notifications {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    background-color: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    background-color: var(--primary-color);
    height: 100%;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.tool-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
}
    
h2{
    text-align: center;
}

.action-buttons{
    display:flex;
    justify-content: center;
}



.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-secondary {
    background-color: #2196F3;
    color: white;
}

.btn-tersary {
    background-color: #f38e21;
    color: white;
}

select {
    margin : 1.5rem;
}

section {
    margin-top: 1rem;
}

#logo-implement {
    text-decoration: none;
}

.logo-implement {
    text-decoration: none;
}

/*Compilation*/

h1, h2, h3, h4, h5, button, .nav-link {
    text-align: center;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
}

p, label, table {
    font-family: "Hind Madurai", system-ui;
    font-weight: 400;
    font-style: normal;
}


.nav-link {
    font-size : 0.8rem;
}

.user-logo{
    width: 100%;
}

.user-logo-container{
    width: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
}


.notification-logo{
    width: 35px;
}

.notification-logo-container{
    width: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
}




@media screen and (min-width: 768px) {
    .my-account-nav{
        display:none;
    }
    .notification-nav{
        display:none;
    }
}

@media screen and (max-width: 768px) {
    .user-logo{
        display:none;
    }
    .notification-logo{
        display:none;
    }
}

ul.show li {
    text-align: left;
}

.list {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.notification-logo{
    transition: ease-in-out all 0.2s;
}

.notification-logo:hover{
    transition: ease-in-out all 0.2s;
    filter: invert(.6);
}

.notification-general-container {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.notification-number{
    color: #FFF;
    background-color: red;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    text-align: center;
    font-weight: bolder;
}

.notification-link-container{
    text-decoration: none;
}