@import url("thema-base.css");

:root {
    --primary-color: #1e3a8a;
    --accent-color: #ff6b4a;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

.header-theme {
    background: linear-gradient(135deg, #e05638 0%, #ff6b4a 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 10px 25px rgba(255, 107, 74, 0.15);
    position: relative;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.3);
}

.theme-badge {
    background: #1e3a8a;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: #ff6b4a;
    box-shadow: 0 10px 25px rgba(255, 107, 74, 0.06);
}

.step-number {
    background: #fff5f5;
    color: #ff6b4a;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #1e3a8a;
}

.arrow-icon {
    color: #ff6b4a;
    font-weight: 800;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

/* PAGES STAP (t1-stap*.html) */

.section-title { color: #1e3a8a; margin-bottom: 15px; border-bottom: 2px solid #ff6b4a; padding-bottom: 5px; }

.quiz-question { font-weight: 700; color: #1e3a8a; margin-bottom: 12px; margin-top: 15px; }

.quiz-option:hover { background: #f1f5f9; border-color: #cbd5e1; }

.check-btn { background-color: #ff6b4a; color: white; border: none; padding: 10px 20px; border-radius: 10px; cursor: pointer; font-weight: 700; margin-top: 15px; transition: background 0.2s; }

.check-btn:hover { background-color: #e55a39; }

/* --- Stap 1 : Dialogue --- */

.dialogue-box { display: flex; flex-direction: column; gap: 18px; margin: 30px 0; }

.bubble { padding: 18px 22px; border-radius: 18px; max-width: 85%; line-height: 1.5; font-size: 1.05rem; position: relative; }

.anouk { background-color: #fff7ed; border-left: 6px solid #ff6b4a; align-self: flex-start; }

.mats { background-color: #eff6ff; border-right: 6px solid #3b82f6; align-self: flex-end; text-align: left; }

.speaker { font-weight: 800; font-size: 0.9rem; text-transform: uppercase; display: block; margin-bottom: 6px; }

.anouk .speaker { color: #c2410c; }

.mats .speaker { color: #1d4ed8; }

/* --- Stap 2 : Vocabulaire interactif --- */

.vocab-category h3 { color: #c2410c; font-size: 1.1rem; margin-bottom: 10px; background: #fff7ed; padding: 6px 12px; border-radius: 8px; display: inline-block; }

.vocab-btn { background-color: #1e293b; color: white; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.85rem; font-family: 'Plus Jakarta Sans'; }

.vocab-table tr:hover { background-color: #f8fafc; }

.exercise-box h4 { color: #1e3a8a; font-size: 1.1rem; margin-bottom: 10px; }

.match-container { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }

.match-row { display: flex; align-items: center; gap: 15px; }

.match-word { background: white; border: 2px solid #cbd5e1; padding: 8px 12px; border-radius: 8px; width: 45%; font-weight: 700; }

.match-select { padding: 8px; border-radius: 8px; border: 2px solid #cbd5e1; width: 45%; font-family: 'Plus Jakarta Sans'; }

.fill-input { padding: 6px 10px; border: 2px solid #cbd5e1; border-radius: 6px; font-family: 'Plus Jakarta Sans'; font-weight: 700; text-align: center; color: #1d4ed8; }

.intruder-group { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; }

.intruder-label { font-weight: 700; min-width: 140px; color: #475569; }

.intruder-option { background: white; border: 2px solid #cbd5e1; padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: 0.2s; }

.intruder-option:hover { background: #f1f5f9; }

.score-zone { margin-top: 15px; font-weight: 700; color: #1e3a8a; background: #e0f2fe; padding: 10px; border-radius: 8px; display: inline-block; }

/* --- Stap 3 : Profils Social Media --- */

.profiles-container { display: flex; flex-direction: column; gap: 25px; margin: 25px 0; }

.social-profile { background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.01); }

.profile-header { background: #f8fafc; padding: 15px 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #e2e8f0; }

.profile-avatar { width: 50px; height: 50px; border-radius: 50%; background: #ff6b4a; color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; }

.profile-avatar.blue { background: #3b82f6; }

.profile-username { font-weight: 800; color: #1e293b; font-size: 1.1rem; }

.profile-body { padding: 20px; }

.profile-bio { font-style: italic; color: #475569; margin-bottom: 15px; padding-left: 10px; border-left: 3px solid #cbd5e1; }

.profile-text { line-height: 1.6; color: #334155; font-size: 1.05rem; }

.profile-tags { margin-top: 15px; color: #ff6b4a; font-weight: 700; font-size: 0.9rem; }

/* --- Stap 4 : Grammaire --- */

.grammar-block { background: #f8fafc; border-left: 6px solid #3b82f6; padding: 20px; border-radius: 0 14px 14px 0; margin-bottom: 20px; }

.grammar-block.inversion { border-left-color: #ff6b4a; background: #fff7ed; }

.syntax-box { font-family: monospace; font-size: 1.1rem; background: #1e293b; color: white; padding: 10px 15px; border-radius: 8px; display: inline-block; margin: 10px 0; }

.compl { color: #fb923c; font-weight: bold; }

.reorder-container { background: #f1f5f9; padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid #e2e8f0; }

.word-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; min-height: 45px; padding: 10px; background: white; border-radius: 8px; border: 2px dashed #cbd5e1; }

.word-card { background: #1e293b; color: white; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 700; user-select: none; transition: background 0.2s; }

.word-card:hover { background: #334155; }

.word-card.used { opacity: 0.4; pointer-events: none; }

.answer-zone { min-height: 45px; padding: 10px; background: #e2e8f0; border-radius: 8px; border: 2px solid #cbd5e1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-weight: 700; color: #1e293b; }

.btn-small { background: #64748b; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: bold; margin-right: 5px; }

.btn-small:hover { background: #475569; }

.final-score-zone { background: #e0f2fe; color: #1e3a8a; padding: 15px; border-radius: 10px; font-weight: bold; text-align: center; margin-top: 20px; display: none; }


/* --- Stap 6 : Projet carte d'identité --- */

.input-group input, .input-group select { width: 100%; padding: 10px; border: 2px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.2s; }

.input-group input:focus { border-color: #ff6b4a; }

.id-card-preview { background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%); color: white; padding: 25px; border-radius: 16px; box-shadow: 0 10px 25px rgba(30, 58, 138, 0.2); position: sticky; top: 20px; display: flex; flex-direction: column; justify-content: space-between; min-height: 320px; }

.id-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }

.id-avatar { width: 70px; height: 70px; background: rgba(255,255,255,0.1); border: 2px dashed rgba(255,255,255,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }

.id-card-body { margin-top: 20px; flex-grow: 1; }

.id-line { margin-bottom: 8px; font-size: 0.95rem; opacity: 0.9; }

.id-line span { font-weight: 700; color: #facc15; }

.id-card-footer { text-align: right; font-size: 0.75rem; opacity: 0.5; font-family: monospace; text-transform: uppercase; margin-top: 15px; }

.progress-bar { width: 0%; height: 100%; background: #10b981; transition: width 0.3s ease; }

.oral-zone { background: #fff7ed; border: 2px solid #ffedd5; padding: 20px; border-radius: 12px; margin-top: 25px; }

.timer-display { font-size: 2.5rem; font-weight: 800; color: #c2410c; font-family: monospace; margin: 10px 0; }

.btn-action { background: #ff6b4a; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: bold; cursor: pointer; }

.btn-action:hover { background: #e55a39; }

.print-btn { background: #10b981; color: white; border: none; padding: 12px 20px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; margin-top: 15px; }

@media (max-width: 768px) {
    .project-grid { grid-template-columns: 1fr; }
}

@media print {
    .main-content > a,
    .lesson-section:nth-of-type(2),
    .progress-container,
    .form-side,
    .print-btn,
    h2.section-title,
    .lesson-section > p,
    h3 { display: none !important; }

    html, body { height: 100%; margin: 0 !important; padding: 0 !important; background: white; }

    .main-content, .lesson-section, .project-grid, .preview-side {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .preview-side {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100vw;
        height: 100vh;
    }

    #cardElement {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 24cm !important;
        height: 14cm !important;
        padding: 40px !important;
        border-radius: 24px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #cardElement h4 { font-size: 1.8rem !important; margin: 0 !important; color: white !important; }
    #cardElement span { color: white !important; }
    #cardElement .id-avatar { width: 90px !important; height: 90px !important; font-size: 3rem !important; display: flex !important; }
    #cardElement .id-card-body { margin-top: 35px !important; }
    #cardElement .id-line { font-size: 1.35rem !important; margin-bottom: 18px !important; color: rgba(255,255,255,0.95) !important; display: block !important; }
    #cardElement .id-line span { color: #facc15 !important; font-weight: 700 !important; }
    #cardElement .id-card-footer { font-size: 0.95rem !important; color: rgba(255,255,255,0.5) !important; display: block !important; }
}
