/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: white;
    min-height: 100vh;
    color: #333;
}

/* Container principal */
.setup-guide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header de la page */
.setup-guide-header {
    text-align: left;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    color: #333;
}

.setup-guide-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.setup-guide-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Contenu principal */
.setup-guide-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Étapes du guide */
.guide-step {
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.guide-step:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.guide-step.active {
    border-color: #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

/* En-tête des étapes */
.step-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.step-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.step-number {
    background: white;
    color: #667eea;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #667eea;
    flex-shrink: 0;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.guide-step.collapsible .step-header:hover .toggle-icon {
    transform: scale(1.1);
}

/* Contenu des étapes */
.step-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.guide-step.active .step-content,
.guide-step.expanded .step-content {
    max-height: 1000px;
    padding: 30px;
}

/* Layout du contenu */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    text-align: left;
}

/* Section vidéo */
.video-section {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-section video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
    display: block;
}

.video-section:hover video {
    transform: scale(1.02);
}

/* Section texte */
.text-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.text-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    font-weight: 400;
    text-align: left;
}

.text-section ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.text-section li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 25px;
    font-size: 1rem;
    color: #6c757d;
}

.text-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

.text-section li:last-child {
    border-bottom: none;
}

/* Footer */
.setup-guide-footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
}

.back-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #667eea;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #667eea;
    background: #f8f9fa;
}

/* Responsive design */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-section video {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .setup-guide-container {
        margin: 10px;
        padding: 15px;
    }
    
    .setup-guide-header {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .setup-guide-header h1 {
        font-size: 2rem;
    }
    
    .setup-guide-header p {
        font-size: 1rem;
    }
    
    .step-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .step-header h2 {
        font-size: 1.3rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .guide-step.active .step-content,
    .guide-step.expanded .step-content {
        padding: 20px;
    }
    
    .content-layout {
        gap: 25px;
    }
    
    .video-section video {
        max-height: 300px;
    }
    
    .text-section p {
        font-size: 1rem;
    }
    
    .text-section li {
        font-size: 0.95rem;
        padding: 10px 0;
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .setup-guide-header h1 {
        font-size: 1.8rem;
    }
    
    .step-header h2 {
        font-size: 1.2rem;
    }
    
    .video-section video {
        max-height: 250px;
    }
    
    .text-section p {
        font-size: 0.95rem;
    }
    
    .text-section li {
        font-size: 0.9rem;
    }
}