/* ##########################################
 * Application: Papa & Maman Solo
 * Développeur: Sébastien Berten (+IA)
 * Société: Cauris
 * Copyright: copie/modification interdite
 * Version: 3.5.0
 * Chemin et nom du fichier: public/css/app-solo.css
 * Date et heure de la dernière modification: 26/09/2025 19:11
 * Historique des changements:
 * - 3.5.0 (26/09/2025): Ajout des styles pour les notifications flash (succès/erreur).
 * - 3.4.0 (22/09/2025): Ajout des styles pour la page de création de recette (maquette).
 * - 3.3.0 (19/09/2025): Corrections cosmétiques sur la page de validation (titres, bordures fieldset).
 * - 3.2.0 (19/09/2025): Intégration des styles de la maquette pour la page de validation des recettes.
 * - 3.1.0 (19/09/2025): Ajout et affinage des styles pour la page de connexion (auth-container).
 * - 3.0.0 (19/09/2025): Refactorisation complète pour une structure fiable et sans conflits.
 *########################################### */

/* ================================================================
   1. VARIABLES & RESET GLOBAUX
================================================================ */
:root {
    --app-bg: #f4f5f7;
    --card-bg: #ffffff;
    --border-color: #e4e4e7;
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --primary-color: #3b82f6; /* Bleu par défaut (Papa Solo) */
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #22c55e;
    --white: #ffffff;
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(210, 219, 230, 0.7);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ================================================================
   2. STYLES GLOBAUX (BODY)
================================================================ */
body { transition: background-color 0.5s ease; }
body.auth-active { background-color: var(--app-bg); font-family: 'Poppins', sans-serif; overflow: hidden; }
body.app-active { background-color: var(--app-bg); font-family: 'Inter', sans-serif; color: var(--text-primary); }

/* Thèmes Papa / Maman */
body.theme-papa { --primary-color: #3b82f6; }
body.theme-maman {
    --primary-color: #ec4899;
    --app-bg: #fff1f2;
    --shadow-dark: #f8c1c5;
}


/* ================================================================
   3. COMPOSANTS COMMUNS
================================================================ */
/* --- Cartes --- */
.clay-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}
.danger-zone { border: 2px solid var(--danger-color); }
.danger-zone h3 { color: var(--danger-color); margin-bottom: 0.5rem; font-weight: 600; }
.danger-zone p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* --- Boutons --- */
.clay-button, .clay-button-danger, .clay-button-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 12px;
    border: none; cursor: pointer; font-weight: 600; font-size: 1rem;
    font-family: 'Inter', sans-serif; color: var(--white);
    background-color: var(--primary-color);
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    transition: all 0.2s ease-in-out; text-decoration: none;
}
.clay-button-danger { background-color: var(--danger-color); }
.clay-button-secondary { background-color: var(--app-bg); color: var(--text-secondary); }
.clay-button:hover, .clay-button-danger:hover, .clay-button-secondary:hover {
    box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
    transform: translateY(1px); text-decoration: none;
}
.clay-button-secondary:hover { background-color: var(--border-color); }
.clay-button:active, .clay-button-danger:active, .clay-button-secondary:active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    transform: translateY(2px);
}
.btn-icon { background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 0.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.btn-icon:hover { background-color: var(--app-bg); color: var(--text-primary); }

/* --- Formulaires (éléments de base) --- */
.clay-input, .clay-textarea {
    width: 100%; padding: 0.9rem 1.2rem; border-radius: 12px;
    border: 1px solid var(--border-color); background-color: var(--app-bg);
    font-family: inherit; font-size: 1rem; font-weight: 500;
    color: var(--text-primary); transition: all 0.2s ease; box-shadow: none;
}
.clay-input:focus, .clay-textarea:focus { outline: none; border-color: var(--primary-color); background-color: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent); }
.form-error-message { color: var(--danger-color); font-size: 0.85rem; margin-top: 0.25rem; min-height: 1em; }
.clay-input.is-invalid { border-color: var(--danger-color); }
.alert-danger { background-color: var(--danger-color); color: var(--white); padding: 1rem; border-radius: 12px; margin-bottom: 1.5rem; text-align: center; }

/* --- Autres --- */
.flash-success { background-color: var(--success-color); color: var(--white); padding: 1rem; border-radius: 12px; margin-bottom: 1.5rem; font-weight: 500; }
.status-badge { padding: 0.25rem 0.6rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.status-badge.status-non-verifie { background-color: #fef2cd; color: #af8503; }
.status-badge.status-verifie { background-color: #dcfce7; color: #166534; }


/* ================================================================
   4. STRUCTURE DE L'APPLICATION (SIDEBAR, MAIN CONTENT)
================================================================ */
.app-container { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background-color: var(--card-bg); padding: 2rem 1.5rem; display: flex; flex-direction: column; border-right: 1px solid var(--border-color); flex-shrink: 0; }
.sidebar .logo { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3rem; }
.sidebar .nav-link { color: var(--text-secondary); padding: 0.75rem 1rem; border-radius: 0.75rem; margin-bottom: 0.5rem; text-decoration: none; display: flex; align-items: center; gap: 0.75rem; transition: all 0.2s ease-in-out; font-weight: 500; }
.sidebar .nav-link:hover { background-color: var(--app-bg); color: var(--text-primary); text-decoration: none; }
.sidebar .nav-link.active { background-color: var(--primary-color); color: var(--white); font-weight: 600; }
.sidebar .nav-link .material-symbols-outlined { font-size: 1.5rem; }
.sidebar .logout-link { margin-top: auto; }
.main-content { flex-grow: 1; padding: 2rem 3rem; overflow-y: auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.page-header h1 { font-size: 2.25rem; font-weight: 700; }

/* ================================================================
   5. PAGES SPÉCIFIQUES
================================================================ */

/* --- PAGE: Login --- */
#auth-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; width: 100%; height: 100vh; position: relative; }
.icon-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.floating-icon {
    position: absolute; background: var(--card-bg); border-radius: 50%;
    width: 120px; height: 120px; display: flex; align-items: center; justify-content: center;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    animation: float 15s ease-in-out infinite;
}
.floating-icon .material-symbols-outlined { font-size: 5rem; color: var(--primary-color); font-weight: 700; }
.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-duration: 17s; } .floating-icon:nth-child(1) .material-symbols-outlined { font-size: 4rem; color: #ef4444; }
.floating-icon:nth-child(2) { top: 10%; left: 80%; animation-duration: 20s; animation-delay: -5s; } .floating-icon:nth-child(2) .material-symbols-outlined { color: #f59e0b; }
.floating-icon:nth-child(3) { top: 70%; left: 5%; animation-duration: 18s; animation-delay: -10s; } .floating-icon:nth-child(3) .material-symbols-outlined { font-size: 6rem; color: #8b5cf6;}
.floating-icon:nth-child(4) { top: 85%; left: 85%; animation-duration: 16s; animation-delay: -2s; } .floating-icon:nth-child(4) .material-symbols-outlined { color: #10b981; }
.floating-icon:nth-child(5) { top: 30%; left: 30%; animation-duration: 22s; animation-delay: -7s; } .floating-icon:nth-child(5) .material-symbols-outlined { font-size: 3.5rem; }
.floating-icon:nth-child(6) { top: 50%; left: 45%; animation-duration: 19s; animation-delay: -12s; } .floating-icon:nth-child(6) .material-symbols-outlined { color: #ec4899; }
@keyframes float { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-30px) rotate(180deg); } 100% { transform: translateY(0px) rotate(360deg); } }
.auth-branding-content, .auth-form-content { z-index: 1; text-align: center; }
.auth-branding-content .logo { font-size: 3rem; font-weight: 700; color: var(--text-primary); }
.auth-branding-content p { font-size: 1.25rem; color: var(--text-secondary); max-width: 350px; margin-top: 1rem; }
.auth-form-content { width: 100%; max-width: 420px; padding: 2.5rem; }
.auth-form-content .subtitle { margin-top: 0.5rem; color: var(--text-secondary); margin-bottom: 2.5rem; }
.auth-form-content .form-group { margin-bottom: 1.5rem; text-align: left; }
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; font-size: 0.9rem;}
.divider { display: flex; align-items: center; text-align: center; color: var(--text-secondary); margin: 1.5rem 0; font-size: 0.8rem; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.divider:not(:empty)::before { margin-right: .75em; } .divider:not(:empty)::after { margin-left: .75em; }
@media (max-width: 992px) { #auth-container { grid-template-columns: 1fr; } .auth-branding-content { display: none; } }

/* --- PAGE: Admin User CRUD --- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.5rem; align-items: start; max-width: 700px; margin: 0; }
.grid-span-2 { grid-column: span 2; }
.styled-table { width: 100%; border-collapse: collapse; } .styled-table thead th { text-align: left; padding-bottom: 1rem; color: var(--text-secondary); font-weight: 600; border-bottom: 2px solid var(--border-color); } .styled-table tbody td { padding: 1rem 0; border-bottom: 1px solid var(--border-color); vertical-align: middle; } .styled-table tbody tr:last-child td { border-bottom: none; } .styled-table .actions { display: flex; gap: 0.5rem; }
.choices-wrapper { background-color: var(--app-bg); border-radius: 12px; padding: 1rem; border: 1px solid var(--border-color); }
.choices-horizontal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.custom-choice { display: flex; align-items: center; }
.custom-choice input[type="checkbox"] { margin-right: 0.75rem; width: 1.15em; height: 1.15em; accent-color: var(--primary-color); }
.custom-choice label { margin-bottom: 0; font-weight: normal; }
.password-wrapper { position: relative; }
.password-wrapper .clay-input { padding-right: 3.5rem; }
.toggle-password { position: absolute; top: 50%; right: 0.5rem; transform: translateY(-50%); padding: 0.5rem; background: none; border: none; cursor: pointer; color: var(--text-secondary); display: flex; align-items: center; }

/* --- PAGE: Admin Learning Module --- */
.page-learning-edit .learning-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; align-items: flex-start; }
.page-learning-edit .hector-output-card h3, .page-learning-edit .form-card h3 { margin-bottom: 1.5rem; font-weight: 600; font-size: 1.25rem; }
.page-learning-edit .hector-output-card h4, .page-learning-edit .form-card h4 { margin-top: 1.5rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; }
.page-learning-edit .detected-title { font-size: 1.25rem; font-weight: 600; margin-top: 0.5rem; color: var(--text-primary); }
.page-learning-edit .form-card #recipe_titre.clay-input { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); padding: 0.9rem 1.2rem; }
.page-learning-edit .image-container { position: relative; margin-top: 1rem; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.page-learning-edit .image-container img { max-width: 100%; display: block; }
.page-learning-edit .hector-output-card .styled-table td { padding: 0.5rem 0; font-size: 0.9rem; }
.page-learning-edit .hector-output-card ol { padding-left: 1.5rem; margin-top: 0.5rem; }
.page-learning-edit #loupe { position: absolute; width: 150px; height: 150px; border: 4px solid var(--primary-color); border-radius: 50%; pointer-events: none; display: none; background-repeat: no-repeat; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.page-learning-edit .enlarge-btn { position: absolute; top: 0.5rem; right: 0.5rem; background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(4px); color: var(--text-primary); }
.page-learning-edit .form-table-container { margin-top: 1.5rem; }
.page-learning-edit .form-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.page-learning-edit .form-table-container > label, .page-learning-edit .form-card fieldset > legend { font-weight: 500; color: var(--text-secondary); display: block; margin-bottom: 1rem; }
.page-learning-edit .form-table-header { display: grid; padding: 0 0.5rem 0.5rem 0.5rem; }
.page-learning-edit .form-table-header > div { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.page-learning-edit .ingredient-header { grid-template-columns: 1fr 1fr 3fr 40px; gap: 0.5rem; }
.page-learning-edit .form-table-row { display: grid; gap: 0.5rem; align-items: center; padding: 0.15rem 0; }
.page-learning-edit .form-card .clay-input { padding: 0.5rem 0.75rem; font-size: 0.9rem; background-color: var(--card-bg); }
.page-learning-edit .ingredient-row { grid-template-columns: 1fr 1fr 3fr 40px; }
.page-learning-edit .step-row { grid-template-columns: 24px 1fr 40px; }
.page-learning-edit .step-number { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-align: center; }
.page-learning-edit .add-item-btn { margin-top: 1rem; }
.page-learning-edit .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: none; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(5px); }
.page-learning-edit .modal-content { position: relative; max-width: 90%; max-height: 90%; }
.page-learning-edit .modal-content img { display: block; max-width: 100%; max-height: 90vh; border-radius: 12px; }
.page-learning-edit .modal-close { position: absolute; top: -15px; right: -15px; width: 36px; height: 36px; background-color: var(--card-bg); color: var(--text-primary); border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.page-learning-edit .collection-steps { counter-reset: step-counter; }
.page-learning-edit .step-row .step-number::before { counter-increment: step-counter; content: counter(step-counter); }

/* ================================================================
   6. PAGE: CREATION DE RECETTE
================================================================ */
.page-recipe-creation .step-form-container { display: flex; flex-direction: column; gap: 2.5rem; }
.page-recipe-creation .form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(20px);
}
.page-recipe-creation .form-step.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.page-recipe-creation .step-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.page-recipe-creation .step-header .material-symbols-outlined { font-size: 2.5rem; color: var(--primary-color); }
.page-recipe-creation .step-header h2 { font-size: 1.5rem; margin: 0; }
.page-recipe-creation .step-header p { color: var(--text-secondary); margin: 0; font-size: 0.9rem; }
.page-recipe-creation .form-navigation { display: flex; justify-content: flex-end; margin-top: 1rem; }
.page-recipe-creation .form-section { margin-bottom: 2rem; }
.page-recipe-creation .form-section:last-child { margin-bottom: 0; }
.page-recipe-creation .form-section-title { font-size: 1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 1rem; }
.page-recipe-creation .choice-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.page-recipe-creation .choice-group label {
    display: flex; align-items: center; gap: 0.5rem;
    background-color: var(--app-bg);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}
.page-recipe-creation .choice-group input[type="radio"], .page-recipe-creation .choice-group input[type="checkbox"] { display: none; }
.page-recipe-creation .choice-group input:checked + label {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}
.page-recipe-creation .choice-group label:not(:has(:checked)):hover { border-color: var(--primary-color); }
.page-recipe-creation .step1-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.page-recipe-creation .upload-zone { border: 2px dashed var(--border-color); border-radius: 16px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s ease; background-color: var(--app-bg); display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 250px; }
.page-recipe-creation .upload-zone:not(.disabled):hover, .page-recipe-creation .upload-zone.dragover { border-color: var(--primary-color); background-color: color-mix(in srgb, var(--primary-color) 5%, transparent); }
.page-recipe-creation .upload-zone .material-symbols-outlined { font-size: 3rem; color: var(--text-secondary); }
.page-recipe-creation .upload-zone p { color: var(--text-secondary); font-weight: 500; margin-top: 0.5rem; }
.page-recipe-creation .upload-zone span { font-weight: 600; color: var(--primary-color); }
.page-recipe-creation .upload-zone.disabled { cursor: not-allowed; background-color: var(--app-bg); border-style: solid; border-color: var(--border-color); }
.page-recipe-creation .upload-zone.disabled .material-symbols-outlined, .page-recipe-creation .upload-zone.disabled p { opacity: 0.6; }
.page-recipe-creation #recipe-preview-container { background-color: var(--app-bg); border-radius: 16px; display: flex; align-items: center; justify-content: center; min-height: 250px; }
.page-recipe-creation #recipe-preview-container .preview-card { width: 100%; height: 100%; aspect-ratio: unset; }
.page-recipe-creation .preview-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.page-recipe-creation .preview-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: 0 4px 6px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.2s ease; border: 3px solid transparent; }
.page-recipe-creation .preview-card img { width: 100%; height: 100%; object-fit: cover; }
.page-recipe-creation .preview-card .remove-btn { position: absolute; top: 4px; right: 4px; background-color: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.page-recipe-creation .preview-card.is-main { border-color: var(--primary-color); }
.page-recipe-creation .preview-card .main-indicator { display: none; position: absolute; bottom: 4px; left: 4px; background-color: var(--primary-color); color: white; padding: 2px 6px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; }
.page-recipe-creation .preview-card.is-main .main-indicator { display: block; }
.page-recipe-creation .warning-box { background-color: color-mix(in srgb, var(--warning-color) 10%, transparent); border: 1px solid var(--warning-color); color: var(--text-primary); padding: 1rem; border-radius: 12px; display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; margin-top: 1.5rem; }
.page-recipe-creation .warning-box .material-symbols-outlined { color: var(--warning-color); font-size: 2.5rem; }
.page-recipe-creation .warning-box.danger { background-color: color-mix(in srgb, var(--danger-color) 10%, transparent); border-color: var(--danger-color); }
.page-recipe-creation .warning-box.danger .material-symbols-outlined { color: var(--danger-color); }
.page-recipe-creation .processing-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(244, 245, 247, 0.9); backdrop-filter: blur(5px); z-index: 1000; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.page-recipe-creation .processing-overlay.active { display: flex; animation: fadeIn 0.3s; }
.page-recipe-creation .processing-overlay h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.page-recipe-creation .processing-overlay p { color: var(--text-secondary); }
.page-recipe-creation .robot-animation { font-size: 6rem; animation: robot-float 3s ease-in-out infinite; margin-bottom: 1.5rem; color: var(--primary-color); }
@keyframes robot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }


/* === STYLES POUR L'OVERLAY INTERACTIF (AJOUT) === */
.processing-overlay .robot-animation.success {
    color: var(--success-color);
    animation: none; /* On stoppe l'animation flottante */
}
.processing-overlay .robot-animation.error {
    color: var(--danger-color);
    animation: none; /* On stoppe l'animation flottante */
}
.processing-overlay .error-details {
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: left;
}
.processing-overlay .error-details summary {
    color: var(--text-secondary);
    font-weight: 500;
}
.processing-overlay .error-details pre {
    margin-top: 0.75rem;
    background: none;
    max-height: 150px;
    overflow-y: auto;
    color: var(--text-primary);
}




/* ================================================================
   7. NOTIFICATIONS (FLASH MESSAGES)
================================================================ */
.flash-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flash-message {
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: none;
    font-weight: 500;
}

.flash-message .material-symbols-outlined {
    font-size: 1.8rem;
    margin-top: -2px; /* Ajustement vertical */
}

.flash-message p {
    margin: 0;
    line-height: 1.5;
}

/* Style Succès */
.flash-success {
    background-color: #f0fdf4; /* Vert très pâle */
    color: #15803d; /* Vert foncé */
}

.flash-success .material-symbols-outlined {
    color: #16a34a;
}

/* Style Erreur */
.flash-error {
    flex-direction: column;
    background-color: #fff1f2; /* Rose/Rouge très pâle */
    color: #b91c1c; /* Rouge foncé */
}

.flash-error .flash-error-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.flash-error .material-symbols-outlined {
    color: #dc2626;
}

/* Style de l'accordéon pour les détails */
.error-details {
    margin-top: 1rem;
    width: 100%;
    border-top: 1px solid #fecaca;
    padding-top: 0.75rem;
}

.error-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #b91c1c;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.error-details summary:hover {
    opacity: 1;
}

.error-details pre {
    margin-top: 0.5rem;
    background-color: rgba(0,0,0,0.05);
    padding: 0.75rem;
    border-radius: 8px;
    white-space: pre-wrap; /* Passage à la ligne du code */
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #991b1b;
}