:root {
    --primary-color: #9068ed;
    --secondary-color: #76d4a6;
    --accent-color: #76d4a6;
    --text-color: #282455;
    --light-gray: #F1F2F2;
    --white: #FFFFFF;
    --error-color: #E74C3C;
    --success-color: #2ECC71;
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --button-primary: #9068ed;
    --button-secondary: #FFFFFF;
    --accent-link-color: #9068ed;
    --button-primary-hover-bg: #6437CD;
    --button-primary-hover-text: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(255,249,175,0.3) 0%, rgba(144,104,237,0.3) 50%, rgba(98,213,165,0.3) 100%);
    min-height: 100vh;
    padding-top: 110px;
}

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

/* Header */
header {
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    background: transparent;
    box-shadow: none;
    padding: 0 20px;
}

.header-pill {
    background: var(--white);
    box-shadow: 0 2px 16px var(--shadow-color);
    border-radius: 48px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    position: relative;
    
}

@media (max-width: 1240px) {
    .header-pill {
        max-width: 98vw;
        padding: 0.5rem 1rem;
    }
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0px 20px;
}

/* Forms */
.form-group {
    margin-bottom: 0rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Styles globaux pour les liens */
a {
    color: #87AAAD;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Styles pour les boutons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

a.btn {
    display: inline-block;
    text-decoration: none;
}

a.btn:hover {
    text-decoration: none;
}

.btn-primary, .btn-secondary {
    min-height: 48px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    /* Vous pouvez ajuster la valeur selon le rendu souhaité */
}

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

.btn-primary:hover {
    background-color: var(--button-primary-hover-bg);
    color: var(--button-primary-hover-text);
    text-decoration: none;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--button-secondary);
    color: var(--button-primary);
    border: 2px solid var(--button-primary);
}

.btn-secondary:hover {
    background-color: var(--button-primary);
    color: var(--white);
    text-decoration: none;
}

/* Espacement pour les icônes dans les boutons */
.btn i {
    margin-right: 5px;
}

/* Styles spécifiques pour le bouton d'édition d'entreprise (icône sliders) */
.edit-company-btn {
    border: none; /* Supprimer la bordure */
    padding: 0.5rem 0.75rem; /* Ajuster le padding pour une icône seule */
}

/* Annuler l'espacement pour l'icône seule dans le bouton d'édition */
.edit-company-btn i {
    margin-right: 0;
}

.edit-company-btn:hover {
    transform: scale(1.1); /* Agrandissement au survol */
    box-shadow: 0 2px 5px var(--shadow-color); /* Ombre légère */
    /* Conserver les couleurs du btn-secondary normal au survol */
    background-color: var(--button-secondary);
    color: var(--button-primary);
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.table th,
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: #f5f5f5;
    color: #333;
    text-align: left;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Footer */
footer {
    background-color: transparent;
    color: var(--text-color);
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Styles pour le footer */
footer .footer-nav a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-nav a:hover {
    text-decoration: none;
    color: var(--button-primary);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 2px 5px var(--shadow-color);
    border-radius: 4px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    text-decoration: none;
}

/* Espacement pour les icônes dans le menu déroulant */
.dropdown-item i {
    margin-right: 10px;
}

/* Accentuation pour le lien 'Créer un compte' sur la page de connexion */
.login-create-account-link {
    color: var(--accent-link-color) !important;
    font-weight: 600;
    transition: color 0.2s;
}
.login-create-account-link:hover {
    color: var(--button-primary) !important;
    text-decoration: underline;
}

.dropdown-toggle#actionsDropdown {
    border-radius: 100px;
    padding-left: 16px;
    padding-right: 16px;
}

.accent-link {
    color: var(--accent-link-color) !important;
    font-weight: 600;
    transition: color 0.2s;
}
.accent-link:hover {
    color: var(--button-primary) !important;
    text-decoration: underline;
}

.main-nav ul li a:hover {
    color: var(--accent-link-color) !important;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 120px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    border: 2px solid var(--button-primary);
    background: var(--button-secondary);
    color: var(--button-primary);
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, border 0.2s;
    cursor: pointer;
    margin: 0;
    padding: 0 1.5rem;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}
.btn-primary.btn-icon {
    background: var(--button-primary);
    color: var(--white);
    border: 2px solid var(--button-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-primary.btn-icon:hover {
    background: var(--button-primary-hover-bg);
    color: var(--button-primary-hover-text);
}
.btn-secondary.btn-icon:hover {
    background: var(--button-primary);
    color: var(--white);
}
.btn-danger.btn-icon {
    background: #f5f5f5;
    color: #000;
    border: 2px solid #eee;
}
.btn-danger.btn-icon:hover {
    background: #ff4d4d;
    color: #fff;
    border: 2px solid #ff4d4d;
} 