/*
============================================
APERTURE SCIENCE - RESPONSIVE DESIGN
Fichier: aperture-responsive.css
Auteur: Emile SNYERS
Date: 2025-08-16
Version: 2.0
Licence: Creative Commons BY-NC 4.0

Description: Styles responsifs pour tous les appareils
Adaptations pour mobile, tablette et desktop
============================================
*/

/* === BREAKPOINTS === */
/* Mobile: 0-768px */
/* Tablet: 769-1024px */
/* Desktop: 1025px+ */

/* === MOBILE STYLES === */
@media (max-width: 768px) {
    /* Header responsive */
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .header-title h1 {
        font-size: 1.8em;
    }

    .aperture-logo {
        width: 50px;
        height: 50px;
    }

    /* Container principal */
    .main-container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    /* Sections */
    .content-section {
        padding: var(--spacing-md);
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .section-title {
        font-size: 1.4em;
    }

    /* Timeline responsive */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-marker {
        left: 20px;
    }

    /* Grilles responsive */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .chambers-grid {
        grid-template-columns: 1fr;
    }

    .surveillance-grid {
        grid-template-columns: 1fr;
    }

    /* Tables responsive */
    .data-table {
        font-size: 0.9em;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    .data-table th, .data-table td {
        padding: var(--spacing-sm);
        min-width: 120px;
    }

    /* Console responsive */
    .console-output {
        height: 150px;
    }

    .console-input-container {
        flex-direction: column;
        align-items: stretch;
    }

    .prompt {
        margin-bottom: var(--spacing-xs);
    }

    /* Planificateur responsive */
    .mission-planner {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .calendar-grid {
        font-size: 0.9em;
    }

    /* Warning section responsive */
    .warning-section {
        flex-direction: column;
        text-align: center;
    }

    .warning-icon {
        font-size: 2em;
    }

    /* Progress bars responsive */
    .progress-label {
        font-size: 0.8em;
    }

    .progress-bar {
        height: 20px;
    }

    /* Alert boxes responsive */
    .alert-box {
        flex-direction: column;
        text-align: center;
    }

    /* Mission items responsive */
    .mission-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .mission-time {
        min-width: auto;
    }
}

/* === TABLET STYLES === */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-title h1 {
        font-size: 2.2em;
    }

    .main-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chambers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-planner {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .data-table th, .data-table td {
        padding: 12px;
    }
}

/* === LARGE DESKTOP STYLES === */
@media (min-width: 1400px) {
    .main-container {
        max-width: 1400px;
    }

    .header-title h1 {
        font-size: 3em;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .chambers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === PRINT STYLES === */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    .aperture-header,
    .aperture-footer,
    .console-section,
    .surveillance-section {
        display: none;
    }

    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .main-container {
        max-width: none;
        padding: 0;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .aperture-blades {
        animation: none;
    }

    .status-light {
        animation: none;
    }
}

/* === HIGH CONTRAST === */
@media (prefers-contrast: high) {
    :root {
        --aperture-dark: #000000;
        --aperture-white: #ffffff;
        --aperture-grey: #333333;
        --aperture-light-grey: #666666;
    }

    .content-section {
        border-width: 2px;
    }

    .chamber-card {
        border-width: 2px;
    }
}

/*
============================================
FIN DU FICHIER: aperture-responsive.css
Auteur: Emile SNYERS
Date: 2025-08-16
Version: 2.0

Styles responsifs pour une expérience optimale
sur tous les appareils et situations d'usage
============================================
*/
