/* presenter-responsive.css - Media queries pour responsive */
/* Version 60 */

/* ==================== TABLETTES (max-width: 1024px) ==================== */

@media (max-width: 1024px) {
    .thumbnails-panel {
        width: 150px;
    }
    
    .slide {
        width: 100%;
        max-width: 800px;
        height: auto;
        aspect-ratio: 16/9;
        padding: 2rem;
    }
    
    .editor-toolbar {
        padding: 0.6rem 1rem;
    }
    
    .editor-header {
        padding: 0.6rem 1rem;
    }
    
    .header-left h1 {
        font-size: 1.2rem;
    }
    
    .presentation-name-input {
        width: 15ch;
        min-width: unset;
    }
}

/* ==================== TABLETTES PORTRAIT (max-width: 768px) ==================== */

@media (max-width: 768px) {
    .editor-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .header-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .thumbnails-panel {
        width: 120px;
    }
    
    .slide {
        padding: 1.5rem;
    }
    
    .slide h1 {
        font-size: 2rem;
    }
    
    .slide h2 {
        font-size: 1.5rem;
    }
    
    .slide h3 {
        font-size: 1.2rem;
    }
    
    .slide p,
    .slide ul,
    .slide ol {
        font-size: 1rem;
    }
    
    .editor-toolbar {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .btn-tool {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-icon {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
    
    .btn-nav-icon {
        padding: 0.3rem 0.6rem;
        font-size: 1rem;
    }
    
    .slide-counter {
        min-width: 60px;
        font-size: 0.9rem;
    }
    
    .toolbar-separator {
        height: 25px;
    }
    
    .slide-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .slide-blocks {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .presentation-name-input {
        min-width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ==================== MOBILES (max-width: 480px) ==================== */

@media (max-width: 480px) {
    .thumbnails-panel {
        display: none;
    }
    
    .slide-preview {
        padding: 1rem;
    }
    
    .slide {
        width: 100%;
        padding: 1rem;
    }
    
    .slide h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .slide h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .slide h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .slide p,
    .slide ul,
    .slide ol {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .slide ul,
    .slide ol {
        margin-left: 1.5rem;
    }
    
    .header-left h1 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-tool {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .btn-icon {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .btn-nav-icon {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .slide-counter {
        min-width: 50px;
        font-size: 0.85rem;
    }
    
    .toolbar-separator {
        display: none;
    }
    
    .code-section {
        max-height: 200px;
    }
    
    .markdown-editor {
        font-size: 0.8rem;
        min-height: 150px;
    }
    
    .style-menu,
    .theme-menu {
        max-width: 100%;
        left: auto;
        right: 0;
    }
    
    .style-option {
        padding: 0.75rem;
    }
    
    .style-icon {
        font-size: 1.5rem;
    }
    
    .style-info strong {
        font-size: 0.9rem;
    }
    
    .style-info small {
        font-size: 0.8rem;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .presentation-controls {
        bottom: 1rem;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .btn-pres {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .presentation-progress {
        padding: 0 0.5rem;
        font-size: 0.9rem;
    }
}

/* ==================== MODE PAYSAGE MOBILE ==================== */

@media (max-width: 768px) and (orientation: landscape) {
    .slide-preview {
        padding: 0.5rem;
    }
    
    .slide {
        padding: 1rem;
    }
    
    .editor-toolbar {
        padding: 0.5rem;
    }
}

/* ==================== GRANDS ÉCRANS (min-width: 1920px) ==================== */

@media (min-width: 1920px) {
    .slide {
        width: 1280px;
        height: 720px;
        padding: 4rem;
    }
    
    .slide h1 {
        font-size: 3rem;
    }
    
    .slide h2 {
        font-size: 2.2rem;
    }
    
    .slide h3 {
        font-size: 1.8rem;
    }
    
    .slide p,
    .slide ul,
    .slide ol {
        font-size: 1.3rem;
    }
    
    .thumbnails-panel {
        width: 250px;
    }
    
    .thumbnail-preview {
        font-size: 0.75rem;
    }
}

/* ==================== IMPRESSION ==================== */

@media print {
    .editor-header,
    .editor-toolbar,
    .thumbnails-panel,
    .slide-controls,
    .code-section,
    .status-message,
    .presentation-controls {
        display: none !important;
    }
    
    .editor-container {
        height: auto;
    }
    
    .editor-main {
        display: block;
    }
    
    .slide {
        width: 100%;
        height: auto;
        box-shadow: none;
        page-break-after: always;
        margin-bottom: 2rem;
    }
    
    .slide-number {
        display: none;
    }
}
