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

:root {
    --primary-color: #0e7490;
    --accent-color: #06b6d4;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

.header-theme {
    background: linear-gradient(135deg, #0e7490 0%, #06b6d4 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(14, 116, 144, 0.1);
    position: relative;
}

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

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.theme-badge {
    background: #06b6d4;
    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;
}

.header-theme p {
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: #06b6d4;
    box-shadow: 0 10px 25px rgba(6,182,212,0.06);
}

.step-number {
    background: #ecfeff;
    color: #0891b2;
    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: #0e7490;
}

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

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

.section-title { color: #0e7490; margin-bottom: 15px; border-bottom: 2px solid #06b6d4; padding-bottom: 5px; }

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

.quiz-option:hover { background: #f0fdff; border-color: #a5f3fc; }

.check-btn { background-color: #06b6d4; 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: #0891b2; }

/* --- Bulles de Dialogue (Stap 1) --- */

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

.chat-bubble {
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 75%;
    line-height: 1.5;
    position: relative;
    font-size: 1.05rem;
}

.chat-camille {
    background-color: #ecfeff;
    color: #0e7490;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-elien {
    background-color: #f0fdf4;
    color: #166534;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-passant {
    background-color: #fef9c3;
    color: #713f12;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.speaker-name {
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
    letter-spacing: 0.5px;
}

.chat-camille .speaker-name { color: #0891b2; }

.chat-elien .speaker-name { color: #22c55e; }

.chat-passant .speaker-name { color: #ca8a04; }

/* --- Zone de Questions de repérage --- */

.quiz-box {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
}

.quiz-question {
    margin-bottom: 20px;
}

.quiz-question p {
    font-weight: 700;
    color: #0e7490;
    margin-bottom: 10px;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: #06b6d4;
    background-color: #ecfeff;
}

.option-btn.correct {
    background-color: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.option-btn.wrong {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* --- Vocabulaire interactif --- */

.vocab-category h3 { color: #0e7490; font-size: 1.1rem; margin-bottom: 10px; background: #ecfeff; 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: #0e7490; 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: #0891b2; }

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

/* --- Grammaire --- */

.hidden-text { background-color: #1e293b; color: #1e293b; border-radius: 4px; cursor: pointer; user-select: none; padding: 2px 6px; transition: background 0.2s; }

.hidden-text.revealed { background-color: transparent; color: inherit; }

.grammar-block { background: #ecfeff; border-left: 6px solid #06b6d4; padding: 20px; border-radius: 0 14px 14px 0; margin-bottom: 20px; }

.grammar-block.variant { border-left-color: #facc15; background: #fefce8; }

.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; }

.voorvoegsel { color: #34d399; 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: #0e7490; color: white; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 700; user-select: none; transition: background 0.2s; }

.word-card:hover { background: #0891b2; }

.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: #0e7490; }

.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: #ecfeff; color: #0e7490; padding: 15px; border-radius: 10px; font-weight: bold; text-align: center; margin-top: 20px; display: none; }

/* --- Audio --- */

.transcript-toggle { background: #ecfeff; border: 2px solid #a5f3fc; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 700; color: #0891b2; font-family: 'Plus Jakarta Sans'; font-size: 0.9rem; margin-top: 15px; }

.transcript-toggle:hover { background: #cffafe; }

.transcript-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-top: 15px; display: none; line-height: 1.7; color: #334155; }

/* --- Zone orale --- */

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

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

.btn-action { background: #06b6d4; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: bold; cursor: pointer; font-family: 'Plus Jakarta Sans'; }

.btn-action:hover { background: #0891b2; }

/* --- Projet final --- */

.input-group input, .input-group select, .input-group textarea { 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; box-sizing: border-box; }

.input-group input:focus, .input-group select:focus { border-color: #06b6d4; }

.checkbox-group { display: flex; flex-direction: column; gap: 8px; margin-top: 5px; }

.checkbox-group label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #334155; cursor: pointer; }

.checkbox-group input[type="checkbox"] { width: auto; accent-color: #06b6d4; }

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

.preview-card { background: white; border: 3px solid #06b6d4; border-radius: 20px; padding: 25px; min-height: 200px; }

.preview-card h3 { color: #0e7490; margin-top: 0; border-bottom: 2px solid #ecfeff; padding-bottom: 10px; }

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

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

/* --- Tableau horaires --- */

.schedule-table { width: 100%; border-collapse: collapse; margin: 15px 0; }

.schedule-table th { background: #0e7490; color: white; padding: 10px 14px; text-align: left; font-weight: 700; }

.schedule-table td { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; }

.schedule-table tr:nth-child(even) { background: #f0fdff; }

.schedule-table tr:hover { background: #ecfeff; }

/* --- Itinéraire --- */

.itinerary-step { background: white; border: 2px solid #e2e8f0; border-radius: 12px; padding: 15px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 15px; }

.step-icon { background: #06b6d4; color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }

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

@media (max-width: 600px) {
    .header-theme h1 { font-size: 1.8rem; }
}

@media print {
    /* Cacher tout sauf la preview-card */
    .main-content > a,
    .progress-container,
    .print-btn,
    .oral-zone,
    header { display: none !important; }

    /* Masquer les enfants du formulaire SAUF la preview-card */
    .form-side > *:not(.preview-card) { display: none !important; }

    html, body { margin: 0 !important; padding: 0 !important; background: white; }
    .main-content, .lesson-section, .project-grid, .form-side {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .preview-card {
        display: block !important;
        width: 100% !important;
        padding: 20px !important;
        box-shadow: none !important;
        border: 2px solid #06b6d4 !important;
    }
}

.matching-container { display: flex; justify-content: space-between; gap: 40px; margin-top: 20px; }
.matching-column { display: flex; flex-direction: column; gap: 12px; width: 45%; }
.match-item { background: white; border: 2px solid #e2e8f0; padding: 15px; border-radius: 12px; text-align: center; cursor: pointer; font-weight: 700; color: #475569; transition: all 0.2s; user-select: none; }
.match-item:hover { border-color: #06b6d4; background-color: #ecfeff; }
.match-item.selected { border-color: #06b6d4; background-color: #06b6d4; color: white; }
.match-item.matched { border-color: #10b981; background-color: #dcfce7; color: #166534; cursor: default; pointer-events: none; }
.match-item.wrong-flash { background-color: #fee2e2; border-color: #ef4444; }
@media (max-width: 600px) { .matching-container { flex-direction: column; gap: 20px; } .matching-column { width: 100%; } }
