/* 
 * TimeVox - CSS spécifique à la page installation
 * Extrait du CSS inline et nettoyé des doublons avec style.css et responsive.css
 */

/* === STYLES SPÉCIFIQUES INSTALLATION === */
/* Ces styles ne sont utilisés QUE sur la page installation */

/* Hero installation - SPÉCIFIQUE (pas de doublon) */
.hero-install {
    background: linear-gradient(135deg, var(--vintage-cream) 0%, #e8e2d5 100%);
    padding: 150px 0 4rem 0;
    text-align: center;
}

.hero-install-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Progress indicator installation - SPÉCIFIQUE */
.install-progress {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.active .step-number {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Démo audio pour les effets */
.audio-demo-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    text-align: center;
    max-width: 400px;
}

.audio-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.audio-btn {
    background: var(--light-grey);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.audio-btn:hover,
.audio-btn.active {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

/* Simulateur de cadran */
.dial-simulator {
    text-align: center;
    max-width: 300px;
}

.dial-animation {
    position: relative;
    width: 150px;
    height: 150px;
    border: 4px solid var(--accent-orange);
    border-radius: 50%;
    margin: 2rem auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.dial-animation:hover {
    transform: rotate(36deg);
}

.dial-center {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-black);
}

/* Spécifications Raspberry Pi */
.pi-specs {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    max-width: 400px;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.spec-item {
    background: var(--light-grey);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

/* Configuration JSON interactive */
.config-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
}

.config-item strong {
    display: block;
    font-family: 'Courier New', monospace;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.config-item p {
    margin: 0;
    color: var(--dark-grey);
    font-size: 0.9rem;
}

/* Étapes du processus d'utilisation */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    font-family: 'Orbitron', monospace;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.step-content p {
    color: var(--dark-grey);
    margin: 0;
}

/* FAQ spécifique installation */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-grey);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-orange);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
}

/* Styles pour les installation steps étendus */
.install-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.install-step {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.step-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: var(--light-grey);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1.5rem;
}

.step-header:hover {
    background: #f0f0f0;
}

.step-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.step-description {
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.step-duration {
    font-size: 0.9rem;
    color: var(--accent-orange);
    font-weight: 600;
}

.step-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.step-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.install-step.expanded .step-content {
    max-height: 5000px;
}

.install-step.expanded .toggle-icon {
    transform: rotate(180deg);
}

.step-details {
    padding: 2rem;
}

/* Substeps détaillées */
.substep {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.substep:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.substep h4 {
    color: var(--accent-orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detailed-steps {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.detailed-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Étapes Raspberry Pi Imager */
.imager-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.imager-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--light-grey);
    transition: all 0.3s ease;
}

.imager-step:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.step-badge {
    background: var(--accent-orange);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.step-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.step-content ul li {
    margin-bottom: 0.3rem;
}

/* Tableau de configuration */
.config-table {
    background: var(--light-grey);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.config-table h5 {
    color: var(--accent-orange);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.config-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.config-table thead {
    background: var(--accent-orange);
    color: white;
}

.config-table th,
.config-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.config-table th {
    font-weight: 600;
    font-size: 0.9rem;
}

.config-table tbody tr:hover {
    background: #f8f9fa;
}

.config-table td:first-child {
    font-weight: 600;
    width: 25%;
}

.config-table td:nth-child(2) {
    width: 25%;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
}

.config-table td:nth-child(3) {
    width: 50%;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

/* Tabs de méthode et OS */
.method-tabs,
.os-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.method-tab,
.os-tab {
    padding: 0.7rem 1.5rem;
    background: var(--light-grey);
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.method-tab.active,
.os-tab.active {
    background: var(--accent-orange);
    color: white;
}

.method-content,
.os-content {
    display: none;
    padding: 1rem;
    background: white;
    border-radius: 0 8px 8px 8px;
    border: 1px solid #e0e0e0;
}

.method-content.active,
.os-content.active {
    display: block;
}

/* Commande d'installation stylisée */
.install-command-container {
    margin: 2rem 0;
}

.install-command {
    background: #2d3748;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.command-header {
    background: #4a5568;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.command-title {
    color: white;
    font-weight: 600;
}

.copy-cmd-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-cmd-btn:hover {
    background: #e85a2e;
}

.command-content {
    padding: 1.5rem;
}

.command-content pre {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Process d'installation */
.install-process {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.install-tasks {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.install-tasks li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

/* Simulation de progression */
.progress-simulation {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--accent-orange);
    margin: 1.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), #ff8c60);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

/* Structure de dossiers */
.folder-structure {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.folder-tree {
    font-family: 'Courier New', monospace;
    line-height: 1.8;
}

.folder,
.file {
    padding: 0.2rem 0;
    padding-left: 1rem;
}

/* Checklist de test */
.test-checklist {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 1rem 0;
}

.test-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.test-item:last-child {
    border-bottom: none;
}

.test-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-orange);
}

.test-item label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
}

/* Menu de configuration */
.config-menu {
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.menu-option {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

/* Liens de téléchargement */
.download-links {
    text-align: center;
    margin: 1.5rem 0;
}

/* Instructions d'installation */
.install-instructions {
    margin: 2rem 0;
}

.install-instructions h5 {
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

/* Commandes de log */
.log-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.log-cmd {
    background: var(--light-grey);
    padding: 1rem;
    border-radius: 8px;
}

/* === RESPONSIVE SPÉCIFIQUE INSTALLATION === */

@media (max-width: 768px) {
    /* Fonctionnalités détaillées mobile */
    .feature-detailed .grid {
        gap: 2rem;
    }
    
    /* Audio controls mobile */
    .audio-controls {
        flex-direction: column;
        align-items: center;
    }
    
    /* Spec grid mobile */
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    /* Process steps mobile */
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    /* Étapes Imager mobile */
    .imager-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-badge {
        align-self: center;
    }
    
    /* Config table mobile */
    .config-table {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .config-table table {
        font-size: 0.85rem;
    }
    
    .config-table th,
    .config-table td {
        padding: 0.7rem 0.5rem;
    }
    
    /* Method tabs mobile */
    .method-tabs,
    .os-tabs {
        flex-direction: column;
    }
    
    /* Install tasks mobile */
    .install-tasks {
        grid-template-columns: 1fr;
    }
    
    /* Command content mobile */
    .command-content pre {
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    /* Progress steps mobile */
    .install-progress {
        gap: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Requirements grid mobile */
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    /* Step header mobile */
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Progress très petit écran */
    .install-progress {
        flex-direction: column;
        align-items: center;
    }
    
    /* Command header très petit */
    .command-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Step badge très petit */
    .step-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Config table très petit */
    .config-table table {
        font-size: 0.8rem;
    }
    
    .config-table th,
    .config-table td {
        padding: 0.5rem 0.3rem;
    }
}