/**
 * PRESENTATION MODULE STYLES
 * ==========================
 * Styles pour slides et viewer
 */

.presentation-ui-container {
    padding: 0;
}

/* En-tête */
.presentation-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.presentation-header-content h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.presentation-subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    margin: 0;
}

/* Generator */
.presentation-generator {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.presentation-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.presentation-card-header h2 {
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
}

.presentation-info {
    background: #edf2f7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
}

.presentation-options {
    margin-bottom: 25px;
}

.presentation-options h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.presentation-option {
    margin-bottom: 15px;
}

.presentation-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
}

.presentation-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    margin-top: 5px;
    transition: border-color 0.2s;
}

.presentation-select:focus {
    outline: none;
    border-color: #667eea;
}

.presentation-actions {
    margin-top: 25px;
}

/* Help */
.presentation-help {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.presentation-help h3 {
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
}

.presentation-help ol {
    margin: 0;
    padding-left: 20px;
}

.presentation-help li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #4a5568;
}

/* Viewer */
.presentation-viewer {
    display: grid;
    grid-template-areas:
        "toolbar toolbar"
        "slide thumbnails"
        "navigation thumbnails";
    grid-template-columns: 1fr 250px;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    height: calc(100vh - 250px);
}

/* Toolbar */
.presentation-toolbar {
    grid-area: toolbar;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.presentation-toolbar-left,
.presentation-toolbar-center,
.presentation-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slide-counter {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1em;
}

/* Slide Container */
.presentation-slide-container {
    grid-area: slide;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.presentation-slide-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    border-radius: 0;
}

/* Slides */
.slide {
    width: 100%;
    height: 100%;
    min-height: 600px;
    padding: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Slide Title */
.slide-title {
    color: white;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide-main-title {
    font-size: 4em;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slide-subtitle {
    font-size: 2em;
    margin: 0 0 40px 0;
    opacity: 0.95;
}

.slide-meta {
    font-size: 1.2em;
    opacity: 0.9;
}

.slide-meta p {
    margin: 5px 0;
}

/* Slide Content */
.slide-content {
    background: white;
}

.slide-header {
    margin-bottom: 40px;
}

.slide-header h2 {
    margin: 0;
    font-size: 2.5em;
    color: #2d3748;
    border-bottom: 4px solid #667eea;
    padding-bottom: 15px;
}

.slide-body {
    flex: 1;
}

.slide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slide-list li {
    font-size: 1.3em;
    padding: 15px 0;
    padding-left: 40px;
    position: relative;
    line-height: 1.6;
    color: #2d3748;
}

.slide-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 1.5em;
}

.slide-list.large li {
    font-size: 1.5em;
    padding: 20px 0;
}

.slide-text {
    font-size: 1.4em;
    line-height: 1.8;
    color: #4a5568;
}

.slide-note {
    margin-top: 30px;
    padding: 20px;
    background: #edf2f7;
    border-radius: 8px;
    font-size: 1.1em;
    color: #2d3748;
}

/* Methods Grid */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.method-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.method-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.method-count {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.method-name {
    font-size: 1.1em;
    opacity: 0.95;
}

/* Timeline */
.timeline-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 20px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-date {
    font-weight: 700;
    color: #667eea;
    min-width: 80px;
    font-size: 1.1em;
}

.timeline-content {
    flex: 1;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.timeline-type {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.timeline-summary {
    color: #4a5568;
    line-height: 1.5;
}

/* Profiles Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.profile-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3em;
}

.profile-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #718096;
    font-size: 1.1em;
}

/* Patterns */
.patterns-list {
    display: grid;
    gap: 15px;
}

.pattern-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.pattern-label {
    font-size: 0.8em;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.pattern-text {
    flex: 1;
    color: #2d3748;
    font-weight: 500;
    font-size: 1.1em;
}

.pattern-count {
    font-weight: 700;
    color: #667eea;
    font-size: 1.3em;
    min-width: 50px;
    text-align: right;
}

/* Insights */
.insights-container {
    display: grid;
    gap: 20px;
}

.insight-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: #f7fafc;
    border-radius: 12px;
}

.insight-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
}

.insight-content h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.3em;
}

.insight-content p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 1.1em;
}

/* Matrix */
.matrix-summary {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.matrix-stat {
    text-align: center;
}

.matrix-stat-value {
    font-size: 4em;
    font-weight: 700;
    color: #667eea;
}

.matrix-stat-label {
    font-size: 1.2em;
    color: #718096;
}

.matrix-breakdown {
    display: grid;
    gap: 15px;
}

.matrix-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.matrix-type-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.2em;
}

.matrix-type-count {
    font-weight: 700;
    color: #667eea;
    font-size: 1.5em;
}

/* Conclusion */
.slide-conclusion {
    justify-content: space-between;
}

.slide-footer {
    text-align: center;
    font-size: 2em;
    color: #718096;
    margin-top: 40px;
}

/* Navigation */
.presentation-navigation {
    grid-area: navigation;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-nav {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-nav:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Thumbnails */
.presentation-thumbnails {
    grid-area: thumbnails;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-y: auto;
}

.presentation-thumbnails h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
}

.thumbnails-grid {
    display: grid;
    gap: 15px;
}

.thumbnail {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.thumbnail.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.thumbnail-number {
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.thumbnail-preview {
    font-size: 0.9em;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toast */
.presentation-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.presentation-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.presentation-toast-success {
    border-left: 4px solid #38a169;
}

.presentation-toast-error {
    border-left: 4px solid #e53e3e;
}

/* Responsive */
@media (max-width: 1024px) {
    .presentation-generator {
        grid-template-columns: 1fr;
    }
    
    .presentation-viewer {
        grid-template-areas:
            "toolbar"
            "slide"
            "navigation"
            "thumbnails";
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .presentation-thumbnails {
        max-height: 300px;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 30px;
        min-height: 400px;
    }
    
    .slide-main-title {
        font-size: 2.5em;
    }
    
    .slide-subtitle {
        font-size: 1.5em;
    }
    
    .slide-header h2 {
        font-size: 1.8em;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}
