/* Styles spécifiques pour les pages de ressources */

/* Header de la ressource */
.resource-header-section {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.resource-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.resource-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.resource-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.resource-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white !important;
}

.resource-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.resource-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Section contenu de la ressource */
.resource-content-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.resource-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Slides */
.slide {
    display: none;
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.slide.active {
    display: block;
}

.slide h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.slide h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.slide-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Points clés de la première slide */
.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.key-point {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.key-point i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.key-point h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.key-point p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sections de contenu */
.content-section {
    margin-bottom: 2rem;
}

.content-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-section li {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Grilles de comparaison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.comparison-grid.large {
    grid-template-columns: 1fr 1fr;
}

.comparison-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comparison-item h4,
.comparison-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-align: center;
}

.comparison-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.comparison-item ul {
    margin: 0;
    padding-left: 1rem;
}

.comparison-item li {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Grille des défis */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.challenge-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.challenge-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.challenge-item h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.challenge-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Boîtes spéciales */
.consequence-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.consequence-box h5 {
    color: #92400e;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.consequence-box p {
    color: #92400e;
    margin: 0;
    font-weight: 500;
}

.highlight-box {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.highlight-box p {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.focus-box {
    background: rgba(37, 99, 235, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
    border-left: 3px solid var(--primary-color);
}

.focus-box p {
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

.conclusion-box {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.conclusion-box h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.conclusion-box p {
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

/* Tags de compétences */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.skill-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Navigation entre slides */
.slide-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.prev-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.prev-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-btn {
    background: var(--primary-color);
    color: white;
}

.next-btn:hover {
    background: var(--primary-dark);
    transform: translateX(2px);
}

/* Indicateurs de slides */
.slide-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary-color);
}

/* Styles spécifiques pour le module Architecture Data Moderne */

/* Module info */
.module-info {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.module-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.module-topics {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.topic-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Challenge details */
.challenge-details ul {
    list-style: none;
    padding: 0;
}

.challenge-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.challenge-details li:last-child {
    border-bottom: none;
}

/* Paradox grid */
.paradox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.paradox-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.paradox-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.paradox-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Evolution grid */
.evolution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.evolution-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.evolution-item:hover {
    transform: translateY(-2px);
}

.evolution-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.evolution-item h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.evolution-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Pros and cons */
.pros-cons {
    margin-top: 1rem;
}

.pros h5, .cons h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.pros h5 {
    color: var(--success-color, #10b981);
}

.cons h5 {
    color: var(--danger-color, #ef4444);
}

.pros ul, .cons ul {
    margin-bottom: 1rem;
}

.pros li, .cons li {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Pattern cards */
.pattern-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.pattern-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.pattern-card ul {
    list-style: none;
    padding: 0;
}

.pattern-card li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pattern-card li:last-child {
    border-bottom: none;
}

/* Decision matrix */
.decision-matrix {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
}

.matrix-table th,
.matrix-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.matrix-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.matrix-table td:first-child {
    background: var(--bg-secondary);
    font-weight: 500;
    text-align: left;
}

/* Recommendations grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.recommendation-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.recommendation-item h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.recommendation-item ul {
    list-style: none;
    padding: 0;
}

.recommendation-item li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.recommendation-item li:last-child {
    border-bottom: none;
}

/* Warning box */
.warning-box {
    background: var(--warning-bg, #fef3c7);
    border: 1px solid var(--warning-border, #f59e0b);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box h5 {
    color: var(--warning-text, #92400e);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.warning-box p {
    color: var(--warning-text, #92400e);
    font-size: 0.875rem;
}

/* Trend box */
.trend-box {
    background: var(--info-bg, #dbeafe);
    border: 1px solid var(--info-border, #3b82f6);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.trend-box h5 {
    color: var(--info-text, #1e40af);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.trend-box p {
    color: var(--info-text, #1e40af);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resource-header-content h1 {
        font-size: 2rem;
    }
    
    .resource-subtitle {
        font-size: 1.25rem;
    }
    
    .resource-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .slide {
        padding: 2rem 1.5rem;
    }
    
    .slide h2 {
        font-size: 1.75rem;
    }
    
    .slide h3 {
        font-size: 1.25rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .key-points {
        grid-template-columns: 1fr;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .resource-header-section {
        padding: 100px 0 40px;
    }
    
    .resource-header-content h1 {
        font-size: 1.75rem;
    }
    
    .slide {
        padding: 1.5rem 1rem;
    }
    
    .slide h2 {
        font-size: 1.5rem;
    }
    
    .slide h3 {
        font-size: 1.125rem;
    }
    
    .skills-tags {
        justify-content: center;
    }
}
