/* style.css — frisechrono.fr — v1.0 */

/* ===== CSS Custom Properties ===== */
:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #DBEAFE;
    --secondary: #F59E0B;
    --secondary-hover: #D97706;
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --surface-hover: #F1F5F9;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --toolbar-h: 56px;
    --sidebar-w: 300px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea {
    font-family: inherit;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
ul { list-style: none; }

/* ===== Utilities ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    border-radius: var(--radius);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-hover); }
.btn-cta { background: var(--secondary); color: #fff; font-weight: 600; }
.btn-cta:hover { background: var(--secondary-hover); color: #fff; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-icon { padding: 0.5rem; border-radius: var(--radius); }
.btn-icon:hover { background: var(--surface-hover); }

/* ===== Navigation ===== */
.main-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 2rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
    flex-shrink: 0;
}
.nav-logo:hover { color: var(--text); }
.nav-links { display: flex; gap: 1.5rem; flex: 1; }
.nav-link { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; transition: color 0.15s; }
.nav-link:hover { color: var(--text); }
.nav-cta { margin-left: auto; }
/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu { top: calc(100% + 8px); left: -1rem; }
.nav-dropdown .nav-link { display: inline-flex; align-items: center; gap: 0.25rem; }
.nav-mobile-toggle { display: none; }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-cta { display: none; }
    .nav-mobile-toggle { display: flex; align-items: center; margin-left: auto; color: var(--text); }
}

/* ===== Homepage Hero ===== */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}
.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}
.hero .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.hero .btn-cta { font-size: 1.125rem; padding: 0.875rem 2rem; }

/* Mini timeline animation */
.hero-timeline {
    margin: 3rem auto 0;
    max-width: 600px;
    height: 60px;
    position: relative;
}
.hero-timeline-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateY(-50%);
}
.hero-timeline-dot {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 3px solid var(--bg);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-sm);
    animation: dotPulse 2s ease-in-out infinite;
}
.hero-timeline-dot:nth-child(2) { left: 25%; animation-delay: 0s; }
.hero-timeline-dot:nth-child(3) { left: 45%; animation-delay: 0.3s; }
.hero-timeline-dot:nth-child(4) { left: 65%; animation-delay: 0.6s; }
.hero-timeline-dot:nth-child(5) { left: 85%; animation-delay: 0.9s; background: var(--secondary); }
@keyframes dotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-alt { background: var(--surface); }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== Style Cards ===== */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.style-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.style-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.style-card-preview {
    height: 120px;
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.style-card h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.style-card p { font-size: 0.8125rem; color: var(--text-secondary); }

/* Style card inline SVG previews */
.style-preview-svg { width: 90%; height: 80%; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; }
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}
.step h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--text-secondary); }

@media (max-width: 640px) {
    .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-item h4 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.8125rem; color: var(--text-secondary); }

/* ===== Audience / Ideal For ===== */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.audience-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9375rem;
}

/* ===== Templates Grid ===== */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.template-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
}
.template-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.template-card-preview {
    height: 140px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.template-card-body { padding: 1rem 1.25rem; }
.template-card h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.template-card p { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 0.75rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.2s;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
    display: none;
    padding: 0 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ===== Footer ===== */
.site-footer {
    background: var(--text);
    color: #CBD5E1;
    padding: 3rem 0 0;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.footer-logo:hover { color: #fff; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-links h4 { color: #fff; font-size: 0.875rem; margin-bottom: 0.75rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #94A3B8; font-size: 0.8125rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8125rem;
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===== Editor Layout ===== */
.editor-page { overflow: hidden; height: 100vh; }
.editor-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: var(--toolbar-h) 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Editor toolbar */
.editor-toolbar {
    grid-column: 1 / -1;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.25rem;
    z-index: 50;
}
.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}
.toolbar-separator {
    width: 1px;
    height: 28px;
    background: var(--border);
    margin: 0 0.5rem;
}
.toolbar-spacer { flex: 1; }
.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s;
    position: relative;
}
.toolbar-btn:hover { background: var(--surface-hover); color: var(--text); }
.toolbar-btn.active { background: var(--primary-light); color: var(--primary); }
.toolbar-btn svg { width: 18px; height: 18px; }

/* Dropdown menus */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.375rem;
    z-index: 200;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text);
    text-align: left;
    transition: background 0.1s;
}
.dropdown-item:hover { background: var(--surface-hover); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-secondary); }
.dropdown-divider { height: 1px; background: var(--border); margin: 0.375rem 0; }

/* Editor sidebar */
.editor-sidebar {
    overflow-y: auto;
    border-right: 1px solid var(--border);
    background: var(--bg);
    padding: 1rem;
}
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.sidebar-field { margin-bottom: 0.75rem; }
.sidebar-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.sidebar-field input,
.sidebar-field select,
.sidebar-field textarea {
    width: 100%;
}
.sidebar-field textarea { resize: vertical; min-height: 60px; }
.sidebar-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.sidebar-field input[type="color"] {
    width: 100%;
    height: 36px;
    padding: 2px;
    cursor: pointer;
}

/* Editor canvas */
.editor-canvas {
    overflow: auto;
    background: #E5E7EB;
    position: relative;
    cursor: grab;
}
.editor-canvas:active { cursor: grabbing; }
.editor-canvas-inner {
    position: relative;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.timeline-container {
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    position: relative;
}

/* Zoom controls */
.zoom-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.25rem;
    box-shadow: var(--shadow-md);
    z-index: 30;
}
.zoom-controls button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}
.zoom-controls button:hover { background: var(--surface-hover); color: var(--text); }
.zoom-controls span { font-size: 0.75rem; font-weight: 500; min-width: 40px; text-align: center; }

/* Selected element styles */
.element-selected { outline: 2px dashed var(--primary); outline-offset: 2px; cursor: move; }
.resize-handle {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border: 1px solid var(--bg);
    border-radius: 2px;
    position: absolute;
    z-index: 20;
}

/* ===== Mobile editor ===== */
@media (max-width: 768px) {
    .editor-layout {
        grid-template-columns: 1fr;
        grid-template-rows: var(--toolbar-h) 1fr;
    }
    .editor-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        border-top: 1px solid var(--border);
        border-right: none;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 40;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    }
    .editor-sidebar.open { transform: translateY(0); }
    .editor-sidebar-handle {
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border-strong);
        border-radius: 2px;
        margin: 0.5rem auto 0.75rem;
    }
    .toolbar-btn span { display: none; }
}
@media (min-width: 769px) {
    .editor-sidebar-handle { display: none; }
}

/* ===== Gallery ===== */
.gallery-header { padding: 2rem 0; }
.gallery-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 0.375rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.gallery-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}
.gallery-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-card-preview {
    height: 160px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.gallery-card-body { padding: 1rem 1.25rem; }
.gallery-card h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.gallery-card p { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.gallery-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination button {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    background: var(--bg);
    color: var(--text);
    transition: all 0.15s;
}
.pagination button:hover, .pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== FAQ Page ===== */
.faq-page-hero {
    padding: 3rem 0 2rem;
    text-align: center;
    background: var(--surface);
}
.faq-page-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.faq-content { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }
.faq-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--text); }
.faq-content p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== Guide Sections ===== */
.guide-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.guide-section h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.guide-section p { margin-bottom: 0.75rem; font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== Modals ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 500;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { font-size: 1.0625rem; font-weight: 600; }
.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ===== Library Panel ===== */
.library-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 35;
    display: none;
    flex-direction: column;
}
.library-panel.open { display: flex; }
.library-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.library-header h3 { font-size: 0.9375rem; font-weight: 600; }
.library-search {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.library-search input { width: 100%; }
.library-body { flex: 1; overflow-y: auto; padding: 0.5rem; }
.library-category { margin-bottom: 0.5rem; }
.library-category-title {
    padding: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}
.library-event {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8125rem;
    transition: background 0.1s;
}
.library-event:hover { background: var(--surface-hover); }
.library-event input[type="checkbox"] { flex-shrink: 0; }
.library-event-date { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; }
.library-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
}

/* ===== Notifications / Toast ===== */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    z-index: 600;
    transition: transform 0.3s ease;
    pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== Ad slots ===== */
.ad-slot {
    text-align: center;
    padding: 0.5rem;
    min-height: 90px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.ad-slot-editor {
    grid-column: 1 / -1;
    height: 60px;
    min-height: 60px;
}

/* ===== Responsive typography ===== */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.875rem; }
    .hero .subtitle { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .hero { padding: 3rem 0 2.5rem; }
    .section { padding: 2.5rem 0; }
}

/* ===== Print ===== */
@media print {
    .editor-toolbar, .editor-sidebar, .zoom-controls, .no-print, .main-nav, .site-footer, .ad-slot { display: none !important; }
    .editor-canvas { overflow: visible !important; background: white !important; }
    .editor-layout { display: block !important; height: auto !important; }
    .timeline-container { box-shadow: none !important; }
    .timeline-svg { width: 100% !important; height: auto !important; }
}
