/* Layout de base */
.content-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.modern-card-wrapper {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.modern-card__content {
    padding: 2rem;
}

/* Titres */
h1 {
    color: #1F2937;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    color: #374151;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

h3 {
    color: #4B5563;
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
}

/* Conteneur vidéo */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    background-color: #F3F4F6;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Contenu du tutoriel */
.tutorial-content {
    margin: 2rem 0;
    color: #4B5563;
    line-height: 1.6;
}

.tutorial-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.tutorial-content ul ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.tutorial-content li {
    margin-bottom: 0.75rem;
}

/* Section astuces */
.tips-section {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.tips-section h3 {
    color: #2563EB;
    margin-top: 0;
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #2563EB;
    color: white;
}

.btn-primary:hover {
    background-color: #1D4ED8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #F3F4F6;
    color: #1F2937;
}

/* Dark mode variables override */
[data-theme="dark"] .modern-card-wrapper {
    background-color: var(--bg-secondary, #111827);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] h1 { color: var(--text-primary, #e5e7eb); }
[data-theme="dark"] h2 { color: var(--text-primary, #e5e7eb); }
[data-theme="dark"] h3 { color: var(--text-primary, #e5e7eb); }

[data-theme="dark"] .video-container { background-color: #0f172a; }
[data-theme="dark"] .tutorial-content { color: var(--text-primary, #e5e7eb); }

[data-theme="dark"] .tips-section {
    background-color: #0f172a;
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .tips-section h3 { color: var(--secondary-color, #3b82f6); }

[data-theme="dark"] .btn-secondary {
    background-color: #1f2937;
    color: #e5e7eb;
}
[data-theme="dark"] .btn-secondary:hover { background-color: #111827; }

.btn-secondary:hover {
    background-color: #E5E7EB;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
    .content-wrapper {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .modern-card__content {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .modern-card-wrapper {
        animation: fadeInUp 0.6s ease-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
