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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .header h1 {
            font-size: 2.5em;
            font-weight: 300;
            margin-bottom: 10px;
        }

        .clickable-title {
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .clickable-title:hover {
            opacity: 0.8;
            transform: scale(1.05);
        }

        .btn-home {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 1.5em;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-left: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-home:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: scale(1.1);
        }

        .header .date {
            font-size: 1.1em;
            opacity: 0.9;
        }

        .header .controls {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: #3498db;
            color: white;
        }

        .btn-primary:hover {
            background: #2980b9;
        }

        .btn-success {
            background: #27ae60;
            color: white;
        }

        .btn-success:hover {
            background: #229954;
        }

        .btn-warning {
            background: #f39c12;
            color: white;
        }

        .btn-warning:hover {
            background: #e67e22;
        }

        .btn-danger {
            background: #e74c3c;
            color: white;
        }

        .btn-danger:hover {
            background: #c0392b;
        }

        .btn-secondary {
            background: #6c757d;
            color: white;
        }

        .btn-secondary:hover {
            background: #5a6268;
        }

        .btn-export {
            background: #8e44ad;
            color: white;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
        }

        .btn-export:hover {
            background: #7d3c98;
        }

        .content {
            padding: 20px;
        }

        .app-section {
            margin-bottom: 50px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .app-header {
            padding: 20px 30px;
            font-size: 1.8em;
            font-weight: bold;
            color: white;
            text-align: center;
        }

        .octopus-header {
            background: linear-gradient(135deg, #4a4a4a 0%, #000000 100%);
        }

        .nemo-header {
            background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
        }

        .app-content {
            padding: 30px;
            background: #f8f9fa;
        }

        .metrics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .metric-card {
            background: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .metric-card:hover {
            transform: translateY(-5px);
        }

        .metric-number {
            font-size: 2.5em;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .metric-number input {
            font-size: 2.5em;
            font-weight: bold;
            text-align: center;
            border: none;
            background: transparent;
            width: 100%;
            outline: none;
            border-bottom: 2px solid #ddd;
        }

        .metric-number input:focus {
            border-bottom-color: #3498db;
        }

        .metric-label {
            color: #7f8c8d;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .section {
            margin-bottom: 30px;
        }

        .section-title {
            font-size: 1.3em;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 2px solid #3498db;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
        }

        .btn-edit-local {
            padding: 6px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
            background: #3498db;
            color: white;
        }

        .btn-edit-local:hover {
            background: #2980b9;
        }

        .btn-edit-local.btn-save {
            background: #27ae60;
        }

        .btn-edit-local.btn-save:hover {
            background: #229954;
        }

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

        .list-container {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }

        .list-title {
            font-size: 1.1em;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 15px;
        }

        .list-items {
            margin-bottom: 15px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .list-item {
            display: flex;
            align-items: center;
            gap: 10px;
            /* margin-bottom: 10px; */
            padding: 3px;
            border-radius: 5px;
            transition: background-color 0.2s;
        }

        .list-item:hover {
            background: #f8f9fa;
        }

        .list-item input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
            outline: none;
        }

        .list-item input:focus {
            border-color: #3498db;
        }

        .list-item .remove-btn {
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .list-item .remove-btn:hover {
            background: #c0392b;
        }

        .bullet {
            color: #2c95ac;
            font-size: 20px;;
        }

        .add-btn {
            background: #3498db;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
        }

        .add-btn:hover {
            background: #2980b9;
        }

        .readonly-list {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }

        .readonly-list .item {
            padding: 8px 0;
            border-bottom: 1px solid #ecf0f1;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .readonly-list .item:last-child {
            border-bottom: none;
        }

        .readonly-list .bullet {
            color: #7f8c8d;
        }

        .actions-box {
            background: #fff3cd;
            padding: 20px;
            border-radius: 10px;
            border-left: 5px solid #ffc107;
            margin-top: 20px;
        }

        .actions-box h4 {
            margin-top: 0;
            color: #856404;
            margin-bottom: 10px;
        }

        .attention-box {
            background: #fff3cd;
            padding: 20px;
            border-radius: 10px;
            border-left: 5px solid #ffc107;
        }

        .attention-box h4 {
            margin-top: 0;
            color: #856404;
            margin-bottom: 10px;
        }

        .edit-mode {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
        }

        .edit-mode h4 {
            color: #155724;
            margin-bottom: 5px;
        }

        .edit-mode p {
            color: #155724;
            margin: 0;
            font-size: 14px;
        }

        .hidden {
            display: none !important;
        }

        /* Styles pour l'affichage de session */
        .session-info {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 15px;
        }

        .session-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .session-display {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .session-date-display {
            color: white;
            font-size: 1.2em;
            font-weight: 500;
            padding: 8px 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-badge.scheduled {
            background: #f39c12;
            color: white;
        }

        .status-badge.current {
            background: #27ae60;
            color: white;
        }

        .status-badge.archived {
            background: #7f8c8d;
            color: white;
        }

        .session-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .session-actions .btn {
            padding: 8px 16px;
            font-size: 13px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .metrics {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }
            
            .section-content {
                grid-template-columns: 1fr;
            }
            
            .header {
                flex-direction: column;
                gap: 15px;
            }
            
            .session-info {
                width: 100%;
                align-items: center;
            }
            
            .session-display {
                justify-content: center;
                flex-wrap: wrap;
            }
            
            .session-actions {
                justify-content: center;
            }
        }

        /* ==========================================
           STYLES POUR LA PAGE D'ACCUEIL
        ========================================== */
        
        .home-container {
            max-height: 100vh;
            /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .home-header {
            text-align: center;
            color: white;
            margin-bottom: 50px;
        }

        .home-header h1 {
            font-size: 4em;
            margin-bottom: 10px;
            font-weight: 300;
            text-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }

        .home-header p {
            font-size: 1.3em;
            opacity: 0.9;
            font-weight: 300;
        }

        .home-content {
            flex: 1;
            max-width: 1200px;
            width: 100%;
            position: relative;
        }

        .action-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .action-card {
            background: white;
            border-radius: 20px;
            padding: 40px 30px;
            text-align: center;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 3px solid transparent;
        }

        .action-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 30px 50px rgba(0,0,0,0.15);
        }

        .action-card.current {
            border-color: #27ae60;
        }

        .action-card.current:hover {
            background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
            color: white;
        }

        .action-card.history {
            border-color: #3498db;
        }

        .action-card.history:hover {
            background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
            color: white;
        }

        .action-card.new {
            border-color: #f39c12;
        }

        .action-card.new:hover {
            background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
            color: white;
        }

        .card-icon {
            font-size: 4em;
            margin-bottom: 20px;
        }

        .action-card h3 {
            font-size: 1.8em;
            margin-bottom: 15px;
            color: #2c3e50;
        }

        .action-card:hover h3 {
            color: white;
        }

        .action-card p {
            color: #7f8c8d;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .action-card:hover p {
            color: rgba(255, 255, 255, 0.9);
        }

        .card-date, .card-stats, .card-action {
            font-weight: 500;
            padding: 10px;
            border-radius: 10px;
            background: #f8f9fa;
        }

        .action-card:hover .card-date,
        .action-card:hover .card-stats,
        .action-card:hover .card-action {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .session-exists {
            color: #27ae60;
            font-weight: 600;
        }

        .no-session {
            color: #e74c3c;
            font-weight: 600;
        }

        .home-footer {
            color: white;
            text-align: center;
            margin-top: 40px;
            opacity: 0.8;
        }

        /* Session History */
        .session-history {
            background: white;
            border-radius: 15px;
            padding: 30px;
            margin-top: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            border-bottom: 2px solid #ecf0f1;
            padding-bottom: 15px;
        }

        .history-header h3 {
            color: #2c3e50;
            margin: 0;
        }

        .session-group {
            margin-bottom: 25px;
        }

        .session-group h4 {
            color: #34495e;
            margin-bottom: 15px;
            padding: 10px 0;
            border-bottom: 1px solid #ecf0f1;
        }

        .session-group.current h4 {
            color: #27ae60;
        }

        .session-group.scheduled h4 {
            color: #f39c12;
        }

        .session-group.archived h4 {
            color: #7f8c8d;
        }

        .session-item {
            padding: 15px 20px;
            margin: 8px 0;
            background: #f8f9fa;
            border-radius: 10px;
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .session-item:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }

        .session-content {
            flex: 1;
            cursor: pointer;
        }

        .btn-delete-session {
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 15px;
            flex-shrink: 0;
        }

        .btn-delete-session:hover {
            background: #c0392b;
            transform: scale(1.1);
        }

        .session-group.current .session-item {
            border-left-color: #27ae60;
        }

        .session-group.scheduled .session-item {
            border-left-color: #f39c12;
        }

        .session-group.archived .session-item {
            border-left-color: #7f8c8d;
        }

        .session-date {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 5px;
            text-transform: capitalize;
        }

        .session-meta {
            font-size: 0.9em;
            color: #7f8c8d;
        }

        .no-sessions {
            text-align: center;
            color: #7f8c8d;
            font-style: italic;
            padding: 40px;
        }

        /* Modal */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .modal-content {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            max-width: 500px;
            width: 90%;
        }

        .modal-content h3 {
            color: #2c3e50;
            margin-bottom: 30px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #34495e;
            font-weight: 500;
        }

        .form-group input[type="date"] {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #ecf0f1;
            border-radius: 10px;
            font-size: 16px;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .form-group input[type="date"]:focus {
            border-color: #3498db;
        }

        .form-group small {
            display: block;
            margin-top: 8px;
            color: #7f8c8d;
            font-style: italic;
            font-size: 14px;
        }

        .modal-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        /* Responsive pour la page d'accueil */
        @media (max-width: 768px) {
            .home-header h1 {
                font-size: 2.5em;
            }

            .action-cards {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .action-card {
                padding: 30px 20px;
            }

            .card-icon {
                font-size: 3em;
            }

            .modal-content {
                margin: 20px;
                padding: 30px 20px;
            }

            .history-header {
                flex-direction: column;
                gap: 15px;
                align-items: stretch;
            }
        }

        /* Styles pour l'authentification */
        .login-container {
            max-width: 400px;
            margin: 0 auto;
            margin-top: 100px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .login-header {
            background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
            color: white;
            padding: 30px 20px;
            text-align: center;
        }

        .login-header h1 {
            font-size: 2em;
            font-weight: 300;
            margin-bottom: 10px;
        }

        .login-header p {
            opacity: 0.9;
            font-size: 0.9em;
        }

        .login-form-wrapper {
            padding: 30px;
        }

        .login-form .form-group {
            margin-bottom: 20px;
        }

        .login-form label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #2c3e50;
        }

        .login-form input[type="text"],
        .login-form input[type="password"] {
            width: 100%;
            padding: 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .login-form input[type="text"]:focus,
        .login-form input[type="password"]:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .login-btn {
            width: 100%;
            padding: 12px;
            font-size: 16px;
            font-weight: 500;
        }

        .error-message {
            background: #ffe6e6;
            color: #c92a2a;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid #ffb3b3;
        }

        .login-footer {
            background: #f8f9fa;
            padding: 20px;
            text-align: center;
            color: #6c757d;
            font-size: 0.9em;
        }

        /* Style pour le bouton de déconnexion */
        .btn-logout {
            background: #e74c3c;
            color: white;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
        }

        .btn-logout:hover {
            background: #c0392b;
        }

        /* Styles pour la page d'accueil avec authentification */
        .home-header {
            background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .home-header h1 {
            font-size: 2.5em;
            font-weight: 300;
            margin: 0;
        }

        .logout-section {
            display: flex;
            align-items: center;
        }

        /* Bouton de déconnexion en haut à droite */
        .logout-section-top {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 1000;
        }