/* Styles principaux pour AMIS Réintégration */

:root {
    --primary-color: #f9b500;
    --primary-light: #ffdd00;
    --secondary-color: #2c3e50;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;
    --success: #28a745;
    --danger: #dc3545;
    --info: #17a2b8;
    --warning: #ffc107;
}

/* ===== PAGE LOADER MODERNE ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    overflow: hidden;
}

.page-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loader-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: #333;
    position: relative;
    z-index: 2;
    transform: translateY(0);
    animation: loaderAppear 1s ease-out;
    max-width: 400px;
    width: 90%;
}

.loader-brand {
    margin-bottom: 3rem;
    position: relative;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
    background: linear-gradient(135deg, #f9b500, #ffdd00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(249, 181, 0, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

.loader-logo img {
    width: 60%;
    height: 60%;
    filter: brightness(0) invert(1);
    animation: logoRotate 4s linear infinite;
}

.loader-logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(249, 181, 0, 0.3);
    border-radius: 50%;
    animation: pulseRing 2s ease-in-out infinite;
}

.loader-logo::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid rgba(249, 181, 0, 0.2);
    border-radius: 50%;
    animation: pulseRing 2s ease-in-out infinite 0.5s;
}

.loader-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #f9b500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.loader-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    animation: subtitleFade 3s ease-in-out infinite;
}

.loader-spinner-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
}

.spinner-ring:nth-child(1) {
    border-top: 3px solid rgba(255,255,255,0.8);
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(2) {
    border-right: 3px solid rgba(249,181,0,0.8);
    animation: spin 2s linear infinite reverse;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

.spinner-ring:nth-child(3) {
    border-bottom: 3px solid rgba(255,255,255,0.6);
    animation: spin 3s linear infinite;
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
}

.loader-progress-modern {
    width: 300px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    position: relative;
}

.progress-bar-modern {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #f9b500, #ffffff);
    border-radius: 3px;
    animation: progressLoad 3s ease-out forwards;
    position: relative;
}

.progress-bar-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: progressShine 1.5s ease-in-out infinite;
}

.loader-text-modern {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    animation: textPulse 2s ease-in-out infinite;
}

.loader-dots {
    display: inline-block;
    animation: dotsBlink 1.5s ease-in-out infinite;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes progress {
    0% { width: 0%; }
    20% { width: 30%; }
    40% { width: 60%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

/* Modern Loader Animations */
@keyframes modernLoaderFade {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes dotsPattern {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

@keyframes ringRotate1 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ringRotate2 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes ringRotate3 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(249, 181, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(249, 181, 0, 0.6); }
}

@keyframes progressLoad {
    0% { width: 0%; }
    25% { width: 25%; }
    50% { width: 50%; }
    75% { width: 75%; }
    100% { width: 100%; }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes dotsBlink {
    0%, 20% { opacity: 0; }
    25%, 45% { opacity: 1; }
    50%, 70% { opacity: 0; }
    75%, 95% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes backgroundMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Styles pour l'ancien loader amélioré */
.loader-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    animation: textPulse 2s ease-in-out infinite;
}

.loader-progress {
    width: 250px;
    height: 4px;
    background: rgba(249, 181, 0, 0.2);
    border-radius: 2px;
    margin: 1rem auto 0;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #f9b500, #ffdd00);
    border-radius: 2px;
    animation: progress 3s ease-out infinite;
    box-shadow: 0 0 10px rgba(249, 181, 0, 0.5);
}

.loader-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.loader-footer p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    font-style: italic;
}

/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar-logo {
    flex: 0 0 auto;
    padding: 8px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-logo img {
    height: 50px;
    width: auto;
    max-width: 100px;
    display: block;
}

.navbar-logo.logo-guinee img {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-center {
    text-align: center;
    flex: 1;
    margin: 0 3rem;
    max-width: 600px;
}

.navbar-center h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.navbar-center p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.25rem 0;
    line-height: 1.4;
    font-weight: 400;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 0 0 auto;
    margin-left: auto;
}

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

.navbar-menu a:hover {
    color: var(--primary-color);
}

/* ===== MENU DE CONNEXION ===== */
.auth-menu {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-light);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 181, 0, 0.3);
}

.user-dropdown {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s;
}

.user-button:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}

.user-avatar {
    font-size: 1.1rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.user-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: background 0.2s;
}

.user-menu a:hover {
    background: var(--bg-light);
    color: var(--text-dark) !important;
}

.logout-link {
    color: var(--danger) !important;
}

.logout-link:hover {
    background: #fff5f5 !important;
    color: var(--danger) !important;
}

.menu-separator {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* ===== MODALES ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--secondary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    margin-top: 1.5rem;
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 181, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-help {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    text-align: center;
}

.login-help p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    color: var(--text-dark);
}

.login-help small {
    color: var(--text-light);
    line-height: 1.4;
}

.error-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: var(--danger);
}

.profile-info {
    text-align: center;
}

.profile-avatar {
    margin-bottom: 1rem;
}

.profile-details h4 {
    margin: 0 0 1rem 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.profile-details p {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 4px;
    text-align: left;
}

/* Layout avec sidebar */
.layout-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.layout-container.with-sidebar {
    margin-left: 0;
}

/* Sidebar visible seulement quand authentifié */
.layout-container:not(.with-sidebar) .sidebar {
    display: none;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 2rem 1rem;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 999; /* Inférieur au sidebar-footer-standalone */
}

.sidebar-menu {
    list-style: none;
}

/* Quand le menu est caché, réduire l'espace */
.sidebar-menu[style*="display: none"] ~ .sidebar-footer {
    margin-top: 0;
}

.sidebar-menu li {
    margin-bottom: 1rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-menu .submenu-toggle {
    position: relative;
}

.sidebar-menu .submenu-arrow {
    position: absolute;
    right: 1rem;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.sidebar-menu .submenu-toggle.active .submenu-arrow {
    transform: rotate(90deg);
}

.sidebar-menu .submenu {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.sidebar-menu .submenu.show {
    max-height: 200px;
}

.sidebar-menu .submenu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu .submenu a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu .submenu a:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Sidebar Footer Standalone - Toujours visible */
.sidebar-footer-standalone {
    position: fixed;
    bottom: 2rem;
    left: 15px;
    width: 250px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    z-index: 1001; /* Au-dessus de la sidebar qui a z-index: 1000 */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    max-width: 100%;
    object-fit: contain;
}

/* Taille différente pour chaque logo dans sidebar-footer-standalone */
.sidebar-footer-standalone .footer-logo-enabel {
    height: 55px; /* Plus grand pour Enabel */
}

.sidebar-footer-standalone .footer-logo-expertise {
    height: 35px; /* Plus petit pour Expertise France */
}

.footer-contact {
    margin: 1rem 0;
}

.contact-info {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin: 0.25rem 0;
    font-weight: 500;
}

.sidebar-footer p {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 0.25rem 0;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem;
    background: #ffffff;
}

.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.content-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Landing page */
.landing-hero {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 3rem;
}

.organigramme-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: 100%;
}

.organigramme-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* Organigramme interactif */
.org-chart {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.org-node {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 200px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.org-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(249, 181, 0, 0.3);
}

.org-node.expanded {
    background: var(--primary-color);
    color: white;
}

.org-node h3 {
    margin: 0;
    font-size: 1.2rem;
}

.org-children {
    display: none;
    margin-top: 2rem;
    padding-left: 2rem;
}

.org-children.show {
    display: block;
}

.org-connector {
    position: relative;
}

.org-connector::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--primary-color);
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-gray);
}

.card-title {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin: 0;
}

.card-body {
    color: var(--text-light);
}

/* Grid system */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

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

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 181, 0, 0.1);
}

.form-control:invalid {
    border-color: var(--danger);
}

.form-control:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

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

select.form-control {
    cursor: pointer;
}

/* Styles globaux pour tous les formulaires */
.card .form-group {
    margin-bottom: 1.5rem;
}

.card .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.card .error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(249, 181, 0, 0.3);
}

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

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

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

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

.table th {
    background: var(--bg-gray);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
}

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

.table tr:hover {
    background: var(--bg-light);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-light);
    margin-top: auto;
    min-height: fit-content;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .navbar-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .navbar-center {
        margin: 0;
        order: 2;
    }
    
    .navbar-center h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .navbar-center p {
        font-size: 0.8rem;
    }
    
    .navbar-menu {
        gap: 1.5rem;
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .auth-menu {
        margin-left: 0;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Ajustements pour tablettes */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar-container {
        padding: 0 2rem;
        gap: 1.5rem;
    }
    
    .navbar-center {
        margin: 0 2rem;
    }
    
    .navbar-menu {
        gap: 2.5rem;
    }
}

/* Supprimer l'espace vide après le footer */
html {
    height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.layout-container {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}