/* ═══════════════════════════════════════════════════════════════════════════
   TUTEUR IA — mise en forme des reponses
   ═══════════════════════════════════════════════════════════════════════════

   Le tuteur rend ses reponses en HTML : paragraphes, cartes numerotees pour
   les etapes d'un raisonnement, code, separateurs. Ces classes les habillent.

   Elles vivaient dans un <style> de cent trente et une lignes au debut du
   partial, inclus par les deux layouts — donc envoye sur chaque page du site,
   utile ou non.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Paragraphes espacés */
.tutor-paragraph {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.tutor-paragraph:last-child { margin-bottom: 0; }

/* Cartes numérotées pour les étapes */
.tutor-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #d1fae5;
    border-radius: 1rem;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}
.tutor-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}
.tutor-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}
.tutor-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.tutor-card-body {
    padding: 1rem;
    color: #374151;
    line-height: 1.65;
}

/* Emoji comme icône */
.tutor-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* Blocs spéciaux (tip, warning, etc.) */
.tutor-block {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    margin: 0.75rem 0;
    line-height: 1.5;
}
.tutor-block-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}
.tutor-tip { background: #fef9c3; border-left: 4px solid #facc15; }
.tutor-goal { background: #ede9fe; border-left: 4px solid #8b5cf6; }
.tutor-success { background: #dcfce7; border-left: 4px solid #22c55e; }
.tutor-error { background: #fee2e2; border-left: 4px solid #ef4444; }
.tutor-warning { background: #ffedd5; border-left: 4px solid #f97316; }
.tutor-note { background: #e0f2fe; border-left: 4px solid #0ea5e9; }
.tutor-key { background: #fef3c7; border-left: 4px solid #f59e0b; }
.tutor-question { background: #f3e8ff; border-left: 4px solid #a855f7; }

/* Listes stylées */
.tutor-list {
    margin: 0.75rem 0;
    padding: 0;
    list-style: none;
}
.tutor-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e5e7eb;
}
.tutor-list-item:last-child { border-bottom: none; }
.tutor-bullet {
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.4;
}
.tutor-list-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Code inline */
.tutor-code {
    background: #f3f4f6;
    color: #7c3aed;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, monospace;
    font-size: 0.875em;
}

/* Séparateur */
.tutor-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d1d5db, transparent);
    margin: 1.25rem 0;
}
