/* Style pour le sous-menu */
.has-submenu {
    position: relative;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 200px;
    z-index: 1000;
}

.submenu li {
    display: block;
}

.submenu a {
    padding: 10px 15px;
    display: block;
    color: #333;
    text-decoration: none;
}

.submenu a:hover {
    background-color: #f5f5f5;
}

/* Variables de couleurs */
:root {
    --primary-color: #FF7F00; /* Orange */
    --secondary-color: #4CAF50; /* Vert */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* En-tête */
.app-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav i {
    margin-right: 5px;
}

.user-menu {
    display: flex;
    align-items: center;
    position: relative;
}

.username {
    margin-right: 10px;
}

.dropdown {
    cursor: pointer;
}

.dropdown i {
    font-size: 24px;
    color: var(--primary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: var(--shadow);
    z-index: 1;
}

.dropdown-content a {
    color: var(--dark-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Contenu principal */
.main-content {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 30px;
}

/* Cartes */
.card {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e67300;
    color: var(--white);
}

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

.btn-secondary:hover {
    background-color: #3d8b40;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Formulaires */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 127, 0, 0.3);
}

select.form-control {
    height: 40px;
}

textarea.form-control {
    min-height: 100px;
}

/* Tableaux */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.table tr:hover {
    background-color: #f5f5f5;
}

/* Pied de page */
.app-footer {
    text-align: center;
    padding: 20px 0;
    color: #777;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 5px 0;
    }
    
    .user-menu {
        margin-top: 15px;
    }
}