/* ===== VARIABLES GLOBALES ===== */
:root {
    --aperture-orange: #ff6b35;
    --aperture-blue: #4ecdc4;
    --aperture-grey: #2c2c2c;
    --aperture-dark-grey: #1a1a1a;
    --aperture-light-grey: #666;
    --aperture-white: #ffffff;
    --aperture-black: #000000;
    --aperture-green: #00ff00;
    --aperture-red: #ff0000;
    --aperture-yellow: #ffff00;
    
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Roboto', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-small: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, var(--aperture-dark-grey), var(--aperture-black));
    color: var(--aperture-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Ã‰CRAN DE CHARGEMENT ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--aperture-black), var(--aperture-dark-grey));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

.loading-container {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.aperture-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
}

.aperture-ring {
    width: 100%;
    height: 100%;
    border: 4px solid var(--aperture-orange);
    border-radius: 50%;
    position: relative;
    animation: rotate 3s linear infinite;
}

.aperture-blade {
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--aperture-orange);
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    animation: bladeRotate 3s linear infinite;
}

.aperture-blade:nth-child(1) { transform: rotate(0deg); }
.aperture-blade:nth-child(2) { transform: rotate(60deg); }
.aperture-blade:nth-child(3) { transform: rotate(120deg); }
.aperture-blade:nth-child(4) { transform: rotate(180deg); }
.aperture-blade:nth-child(5) { transform: rotate(240deg); }
.aperture-blade:nth-child(6) { transform: rotate(300deg); }

.loading-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--aperture-orange);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    letter-spacing: 3px;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--aperture-orange), var(--aperture-blue));
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

.loading-text {
    color: var(--aperture-light-grey);
    font-size: 1.1rem;
    margin-top: 15px;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== HEADER PRINCIPAL ===== */
.main-header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--aperture-orange);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.aperture-mini-logo {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.logo-text h1 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--aperture-orange);
    margin-bottom: 2px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.version {
    font-size: 0.9rem;
    color: var(--aperture-light-grey);
    font-weight: 300;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--aperture-white);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: left var(--transition-medium);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--aperture-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

.nav-link.active {
    background: var(--aperture-orange);
    color: var(--aperture-black);
    font-weight: bold;
}

.nav-icon {
    font-size: 1.2rem;
}

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

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: transparent;
    color: var(--aperture-white);
    border: 1px solid var(--aperture-light-grey);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
}

.header-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--aperture-orange);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--aperture-red);
    color: var(--aperture-white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.emergency-btn {
    background: var(--aperture-red) !important;
    color: var(--aperture-white) !important;
    animation: emergencyPulse 2s ease-in-out infinite;
}

/* ===== CONTENU PRINCIPAL ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 160px);
}

.content-section {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--aperture-orange);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--aperture-orange);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.title-icon {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.section-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--aperture-white);
    border: 1px solid var(--aperture-light-grey);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
    font-size: 1rem;
    font-weight: 500;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.action-btn.primary {
    background: var(--aperture-orange);
    color: var(--aperture-black);
    border-color: var(--aperture-orange);
    font-weight: bold;
}

.action-btn.primary:hover {
    background: var(--aperture-blue);
    color: var(--aperture-white);
    border-color: var(--aperture-blue);
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(44, 44, 44, 0.5));
    border: 1px solid var(--aperture-light-grey);
    border-radius: 15px;
    padding: 25px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-small);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--aperture-orange), var(--aperture-blue));
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--aperture-orange);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    color: var(--aperture-orange);
    margin-bottom: 20px;
    font-weight: bold;
}

.card-icon {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
}

.stat-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--aperture-orange);
    transform: scale(1.05);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--aperture-blue);
    margin-bottom: 5px;
    font-family: var(--font-primary);
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--aperture-light-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.today-missions-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.today-mission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--aperture-orange);
    transition: all var(--transition-fast);
}

.today-mission-item:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
}

.mission-info {
    flex: 1;
}

.mission-title-small {
    font-weight: bold;
    color: var(--aperture-white);
    margin-bottom: 4px;
}

.mission-time-small {
    font-size: 0.8rem;
    color: var(--aperture-light-grey);
}

.mission-priority-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.mission-priority-badge.high {
    background: rgba(255, 0, 0, 0.2);
    color: var(--aperture-red);
    border: 1px solid var(--aperture-red);
}

.mission-priority-badge.medium {
    background: rgba(255, 255, 0, 0.2);
    color: var(--aperture-yellow);
    border: 1px solid var(--aperture-yellow);
}

.mission-priority-badge.low {
    background: rgba(0, 255, 0, 0.2);
    color: var(--aperture-green);
    border: 1px solid var(--aperture-green);
}

.chart-container {
    position: relative;
    height: 200px;
    margin-top: 15px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.activity-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.activity-item:hover {
    background: rgba(78, 205, 196, 0.1);
}

.activity-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--aperture-white);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.activity-time {
    color: var(--aperture-light-grey);
    font-size: 0.7rem;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid;
    transition: all var(--transition-fast);
}

.alert-item.info {
    background: rgba(0, 0, 255, 0.1);
    border-left-color: #00f;
}

.alert-item.warning {
    background: rgba(255, 255, 0, 0.1);
    border-left-color: var(--aperture-yellow);
}

.alert-item.error {
    background: rgba(255, 0, 0, 0.1);
    border-left-color: var(--aperture-red);
}

.alert-item:hover {
    transform: translateX(5px);
}

.alert-icon {
    font-size: 1.2rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    color: var(--aperture-white);
    font-weight: bold;
    margin-bottom: 2px;
}

.alert-time {
    color: var(--aperture-light-grey);
    font-size: 0.8rem;
}

.glados-status {
    position: relative;
}

.glados-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.glados-avatar {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--aperture-orange), var(--aperture-dark-grey));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: gladosGlow 3s ease-in-out infinite;
}

.glados-eye {
    width: 20px;
    height: 20px;
    background: var(--aperture-yellow);
    border-radius: 50%;
    animation: gladosEye 4s ease-in-out infinite;
    box-shadow: 0 0 15px var(--aperture-yellow);
}

.glados-info {
    flex: 1;
}

.glados-status-text {
    color: var(--aperture-green);
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.glados-status-text::before {
    content: 'â—';
    color: var(--aperture-green);
    animation: pulse 1s ease-in-out infinite;
}

.glados-message {
    color: var(--aperture-light-grey);
    font-style: italic;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* ===== PLANIFICATEUR ===== */
.mission-planner {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--aperture-light-grey);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.planner-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--aperture-light-grey);
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--aperture-orange);
    border: 2px solid var(--aperture-orange);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--aperture-orange);
    color: var(--aperture-black);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.current-month {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--aperture-blue);
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
    min-width: 200px;
    text-align: center;
}

.today-btn {
    padding: 10px 20px;
    background: var(--aperture-blue);
    color: var(--aperture-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all var(--transition-medium);
}

.today-btn:hover {
    background: var(--aperture-orange);
    color: var(--aperture-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

.calendar-container {
    margin-bottom: 30px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--aperture-dark-grey);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.calendar-day {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.calendar-day:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--aperture-orange);
}

.calendar-day.today {
    background: var(--aperture-orange);
    color: var(--aperture-black);
    font-weight: bold;
}

.calendar-day.selected {
    background: var(--aperture-blue);
    color: var(--aperture-white);
    box-shadow: inset 0 0 20px rgba(78, 205, 196, 0.5);
}

.calendar-day.has-missions::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--aperture-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.day-number {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.day-missions-count {
    font-size: 0.7rem;
    color: var(--aperture-light-grey);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 10px;
}

.missions-panel {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--aperture-light-grey);
    border-radius: 10px;
    padding: 20px;
}

.panel-title {
    color: var(--aperture-orange);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ===== ANALYTICS ===== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.analytics-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(44, 44, 44, 0.5));
    border: 1px solid var(--aperture-light-grey);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-small);
    transition: all var(--transition-medium);
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--aperture-blue);
}

.analytics-card h3 {
    color: var(--aperture-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.report-summary {
    text-align: center;
    padding: 20px;
}

.report-summary p {
    color: var(--aperture-light-grey);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===== PARAMÃˆTRES ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.settings-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(44, 44, 44, 0.5));
    border: 1px solid var(--aperture-light-grey);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-small);
    transition: all var(--transition-medium);
}

.settings-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--aperture-orange);
}

.settings-card h3 {
    color: var(--aperture-orange);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.setting-item:hover {
    background: rgba(255, 107, 53, 0.1);
}

.setting-label {
    color: var(--aperture-white);
    font-weight: 500;
}

.setting-toggle {
    width: 50px;
    height: 25px;
    background: var(--aperture-dark-grey);
    border: 2px solid var(--aperture-light-grey);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-medium);
    appearance: none;
}

.setting-toggle:checked {
    background: var(--aperture-orange);
    border-color: var(--aperture-orange);
}

.setting-toggle::after {
    content: '';
    position: absolute;
    width: 19px;
    height: 19px;
    background: var(--aperture-white);
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: all var(--transition-medium);
}

.setting-toggle:checked::after {
    transform: translateX(25px);
}

.settings-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-secondary {
    padding: 12px 20px;
    background: transparent;
    color: var(--aperture-white);
    border: 1px solid var(--aperture-light-grey);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: var(--aperture-blue);
    transform: translateY(-2px);
}

.btn-danger {
    padding: 12px 20px;
    background: var(--aperture-red);
    color: var(--aperture-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
    font-weight: bold;
}

.btn-danger:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

.btn-primary {
    padding: 12px 20px;
    background: var(--aperture-orange);
    color: var(--aperture-black);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
    font-weight: bold;
}

.btn-primary:hover {
    background: var(--aperture-blue);
    color: var(--aperture-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

.about-info {
    text-align: center;
    color: var(--aperture-light-grey);
    line-height: 1.6;
}

.about-info p {
    margin-bottom: 10px;
}

.about-info strong {
    color: var(--aperture-orange);
}

/* ===== FOOTER ===== */
.main-footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid var(--aperture-orange);
    margin-top: 50px;
    backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: var(--aperture-orange);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--aperture-light-grey);
    line-height: 1.5;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--aperture-light-grey);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--aperture-orange);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--aperture-light-grey);
    color: var(--aperture-light-grey);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bladeRotate {
    0% { transform: rotate(0deg) scaleX(1); }
    50% { transform: rotate(180deg) scaleX(0.5); }
    100% { transform: rotate(360deg) scaleX(1); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes emergencyPulse {
    0%, 100% { background: var(--aperture-red); }
    50% { background: #cc0000; box-shadow: 0 0 20px var(--aperture-red); }
}

@keyframes gladosGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.6); }
}

@keyframes gladosEye {
    0%, 90%, 100% { transform: scale(1); }
    95% { transform: scale(0.8); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
    }
    
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .dashboard-grid,
    .analytics-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .planner-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-grid {
        font-size: 0.9rem;
    }
    
    .loading-title {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .dashboard-card,
    .analytics-card,
    .settings-card {
        padding: 20px;
    }
    
    .calendar-day {
        padding: 4px;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
}

/* ===== SCROLLBARS PERSONNALISÃ‰ES ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--aperture-dark-grey);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--aperture-orange), var(--aperture-blue));
    border-radius: 6px;
    border: 2px solid var(--aperture-dark-grey);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--aperture-blue), var(--aperture-orange));
}

/* ===== EFFETS SPÃ‰CIAUX ===== */
.aperture-glow {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.science-border {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--aperture-orange), var(--aperture-blue), var(--aperture-orange)) 1;
}

.glitch-effect {
    animation: glitch 0.3s ease-in-out infinite alternate;
}

@keyframes glitch {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

/* ===== Ã‰TATS DE FOCUS POUR L'ACCESSIBILITÃ‰ ===== */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--aperture-orange);
    outline-offset: 2px;
}

.nav-link:focus {
    outline: 2px solid var(--aperture-blue);
    outline-offset: 2px;
}

/* ===== IMPRESSION ===== */
@media print {
    .main-header,
    .main-footer,
    .section-actions,
    .header-actions {
        display: none;
    }
    
    .main-content {
        max-width: none;
        margin: 0;
        padding: 20px;
    }
    
    .dashboard-card,
    .analytics-card,
    .settings-card {
        break-inside: avoid;
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }
}
