/* ##########################################
 * 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.
 *########################################### */
@import url('placeholder.css');
@import url('product_and_food_dictionaries.css');
@import url('image-uploader.css');
@import url('sidebar.css');
@import url('child_profile.css');
@import url('notifications.css');
@import url('components.css');

.child-profiles-grid .child-avatar-img,
.child-profiles-grid .child-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    object-fit: cover;
}

.child-profiles-grid .child-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
}

/* ================================================================
   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; }
#auth-container { 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; }

/* --- Classes de couleur de texte --- */
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }


/* ================================================================
   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 .recipe-details-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
}
.page-learning-edit .recipe-details-list li {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.page-learning-edit .recipe-details-list strong {
    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,
.page-learning-edit .form-card .clay-textarea {
    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); } }

/* ================================================================
   7. PAGE: PROFILS (PARENT & ENFANT)
================================================================ */
.page-parent-profile-edit .step1-layout,
.page-child-profile-edit .step1-layout,
.page-child-dashboard-profile .step1-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }

.page-parent-profile-edit .upload-zone,
.page-child-profile-edit .upload-zone,
.page-child-dashboard-profile .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-parent-profile-edit .upload-zone:hover, .page-parent-profile-edit .upload-zone.dragover,
.page-child-profile-edit .upload-zone:hover, .page-child-profile-edit .upload-zone.dragover,
.page-child-dashboard-profile .upload-zone:hover, .page-child-dashboard-profile .upload-zone.dragover { border-color: var(--primary-color); background-color: color-mix(in srgb, var(--primary-color) 5%, transparent); }

.page-parent-profile-edit .upload-zone .material-symbols-outlined,
.page-child-profile-edit .upload-zone .material-symbols-outlined,
.page-child-dashboard-profile .upload-zone .material-symbols-outlined { font-size: 3rem; color: var(--text-secondary); }

.page-parent-profile-edit .upload-zone p,
.page-child-profile-edit .upload-zone p,
.page-child-dashboard-profile .upload-zone p { color: var(--text-secondary); font-weight: 500; margin-top: 0.5rem; }

.page-parent-profile-edit .upload-zone span,
.page-child-profile-edit .upload-zone span,
.page-child-dashboard-profile .upload-zone span { font-weight: 600; color: var(--primary-color); }

.page-parent-profile-edit .preview-gallery,
.page-child-profile-edit .preview-gallery,
.page-child-dashboard-profile .preview-gallery { background-color: var(--app-bg); border-radius: 16px; display: flex; align-items: center; justify-content: center; min-height: 250px; }

.page-parent-profile-edit .preview-card,
.page-child-profile-edit .preview-card,
.page-child-dashboard-profile .preview-card { position: relative; border-radius: 12px; overflow: hidden; width: 100%; height: 100%; }

.page-parent-profile-edit .preview-card img,
.page-child-profile-edit .preview-card img,
.page-child-dashboard-profile .preview-card img { width: 100%; height: 100%; object-fit: cover; }

.page-parent-profile-edit .preview-card .remove-btn,
.page-child-profile-edit .preview-card .remove-btn,
.page-child-dashboard-profile .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; }

/* ================================================================
   8. PAGE: PROFILS ENFANTS (INDEX)
================================================================ */
.page-child-profile-index .clay-card {
    margin-bottom: 15px;
}

/* ================================================================
   11. PAGE: CRÉATION DE PRODUIT (NEW)
================================================================ */
.page-product-new .tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}
.page-product-new .tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}
.page-product-new .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.page-product-new .tab-pane {
    display: none;
}
.page-product-new .tab-pane.active {
    display: block;
}
.page-product-new .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: 200px;
    position: relative;
}
.page-product-new .upload-zone:hover {
    border-color: var(--primary-color);
}
.page-product-new .upload-zone .material-symbols-outlined {
    font-size: 3rem;
    color: var(--text-secondary);
}
.page-product-new .upload-zone img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
}
.page-product-new .d-none { display: none; }
.page-product-new .scanner-loading .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
    margin: 0 auto 1rem;
}
.page-product-new .scanner-loading p { font-weight: 500; color: var(--text-secondary); }
.page-product-new .scanner-success { color: var(--success-color); font-weight: 600; }
.page-product-new .scanner-error { color: var(--danger-color); font-weight: 600; }

/* ================================================================
   12. PAGE: ÉDITION DE PRODUIT (EDIT)
================================================================ */
.page-product-edit .product-edit-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}
.page-product-edit .current-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--app-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-product-edit .current-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.page-product-edit .upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    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: 150px;
    position: relative;
}
.page-product-edit .upload-zone.dragover, .page-product-edit .upload-zone:hover {
    border-color: var(--primary-color);
    background-color: color-mix(in srgb, var(--primary-color) 5%, transparent);
}
.page-product-edit .upload-zone .material-symbols-outlined { font-size: 2.5rem; color: var(--text-secondary); }
.page-product-edit .upload-zone p { font-size: 0.9rem; color: var(--text-secondary); }
.page-product-edit .upload-zone img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.page-product-new .scanner-options {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.page-product-new .scanner-option {
    flex: 1;
}
.page-product-new .option-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.page-product-new .divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    height: 200px;
}
.page-product-new .divider::before, .page-product-new .divider::after {
    content: '';
    border-left: 1px solid var(--border-color);
    height: 100%;
}
.page-product-new .divider::before { margin-right: 1rem; }
.page-product-new .divider::after { margin-left: 1rem; }

.page-product-new .barcode-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 4rem; /* Pour aligner verticalement avec la zone d'upload */
}
.page-product-new .barcode-input-group .clay-input {
    flex-grow: 1;
}

/* ================================================================
   10. PAGE: LISTE DE COURSES
================================================================ */
.page-shopping-list .shopping-list-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.page-shopping-list .list-container .clay-card {
    max-height: 80vh;
    overflow-y: auto;
}

.page-shopping-list .shopping-items-list {
    list-style: none;
    padding: 0;
}

.page-shopping-list .shopping-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.page-shopping-list .shopping-item:last-child {
    border-bottom: none;
}

.page-shopping-list .item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.page-shopping-list .item-info {
    flex-grow: 1;
}

.page-shopping-list .item-name {
    font-weight: 600;
    display: block;
}

.page-shopping-list .item-quantity {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.page-shopping-list .item-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.page-shopping-list .empty-list-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.page-shopping-list .scanner-card {
    position: sticky;
    top: 2rem;
}

.page-shopping-list .image-preview-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: 200px;
    position: relative;
}
.page-shopping-list .image-preview-zone:hover {
    border-color: var(--primary-color);
}
.page-shopping-list .image-preview-zone .material-symbols-outlined {
    font-size: 3rem;
    color: var(--text-secondary);
}
.page-shopping-list .image-preview-zone img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
}

.page-shopping-list .d-none { display: none; }

.page-shopping-list .scanner-loading .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
    margin: 0 auto 1rem;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.page-shopping-list .scanner-loading p {
    font-weight: 500;
    color: var(--text-secondary);
}

.page-shopping-list .scanner-success {
    color: var(--success-color);
    font-weight: 600;
    text-align: center;
}
.page-shopping-list .scanner-error {
    color: var(--danger-color);
    font-weight: 600;
    text-align: center;
}

/* ================================================================
   9. PAGE: PRÉFÉRENCES ENFANT
================================================================ */
.preferences-layout {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Colonne gauche 1/3, Colonne droite 2/3 */
    gap: 2rem;
    align-items: start;
}

.food-list-container {
    position: sticky;
    top: 2rem;
}

.food-list {
    min-height: 100px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
    border-radius: 12px;
}

.food-dropzones-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.drop-zone {
    padding: 1.5rem;
    min-height: 150px;
    transition: all 0.2s ease;
}

.drop-zone h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.food-item {
    padding: 0.75rem 1rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: grab;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.food-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.food-item:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.4;
    background: var(--primary-color);
    border-style: dashed;
}

#loved-list.sortable-ghost-show, #loved-list:hover { border: 2px dashed #ef4444; }
#pass-list.sortable-ghost-show, #pass-list:hover { border: 2px dashed #3b82f6; }
#disliked-list.sortable-ghost-show, #disliked-list:hover { border: 2px dashed #71717a; }
#dont-know-list.sortable-ghost-show, #dont-know-list:hover { border: 2px dashed #f59e0b; }

/* ================================================================
   7. PAGE: PROFILS (PARENT & ENFANT)
================================================================ */
.page-parent-profile-edit .step1-layout,
.page-child-profile-edit .step1-layout,
.page-child-dashboard-profile .step1-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }

.page-parent-profile-edit .upload-zone,
.page-child-profile-edit .upload-zone,
.page-child-dashboard-profile .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-parent-profile-edit .upload-zone:hover, .page-parent-profile-edit .upload-zone.dragover,
.page-child-profile-edit .upload-zone:hover, .page-child-profile-edit .upload-zone.dragover,
.page-child-dashboard-profile .upload-zone:hover, .page-child-dashboard-profile .upload-zone.dragover { border-color: var(--primary-color); background-color: color-mix(in srgb, var(--primary-color) 5%, transparent); }

.page-parent-profile-edit .upload-zone .material-symbols-outlined,
.page-child-profile-edit .upload-zone .material-symbols-outlined,
.page-child-dashboard-profile .upload-zone .material-symbols-outlined { font-size: 3rem; color: var(--text-secondary); }

.page-parent-profile-edit .upload-zone p,
.page-child-profile-edit .upload-zone p,
.page-child-dashboard-profile .upload-zone p { color: var(--text-secondary); font-weight: 500; margin-top: 0.5rem; }

.page-parent-profile-edit .upload-zone span,
.page-child-profile-edit .upload-zone span,
.page-child-dashboard-profile .upload-zone span { font-weight: 600; color: var(--primary-color); }

.page-parent-profile-edit .preview-gallery,
.page-child-profile-edit .preview-gallery,
.page-child-dashboard-profile .preview-gallery { background-color: var(--app-bg); border-radius: 16px; display: flex; align-items: center; justify-content: center; min-height: 250px; }

.page-parent-profile-edit .preview-card,
.page-child-profile-edit .preview-card,
.page-child-dashboard-profile .preview-card { position: relative; border-radius: 12px; overflow: hidden; width: 100%; height: 100%; }

.page-parent-profile-edit .preview-card img,
.page-child-profile-edit .preview-card img,
.page-child-dashboard-profile .preview-card img { width: 100%; height: 100%; object-fit: cover; }

.page-parent-profile-edit .preview-card .remove-btn,
.page-child-profile-edit .preview-card .remove-btn,
.page-child-dashboard-profile .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; }


/* === 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;
}


/* ================================================================
   9. PAGE: CREATION DE RECETTE (Correction)
================================================================ */
.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 .tabs-container { margin-top: 1.5rem; }
.page-recipe-creation .tabs-nav { display: flex; border-bottom: 2px solid var(--border-color); }
.page-recipe-creation .tab-btn { padding: 0.75rem 1.5rem; border: none; background-color: transparent; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 0.5rem; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s ease; }
.page-recipe-creation .tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.page-recipe-creation .tabs-content { padding-top: 1.5rem; }
.page-recipe-creation .tab-pane { display: none; }
.page-recipe-creation .tab-pane.active { display: block; }
.page-recipe-creation .url-input-group { display: flex; align-items: center; gap: 0.75rem; background-color: var(--app-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 0 1.2rem; transition: all 0.2s ease; }
.page-recipe-creation .url-input-group:focus-within { border-color: var(--primary-color); background-color: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent); }
.page-recipe-creation .url-input-group .material-symbols-outlined { color: var(--text-secondary); }
.page-recipe-creation .url-input-group input { border: none; background: transparent; padding: 0.9rem 0; width: 100%; font-size: 1rem; color: var(--text-primary); }
.page-recipe-creation .url-input-group input:focus { outline: none; }
.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.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(--danger-color) 10%, transparent); border: 1px solid var(--danger-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(--danger-color); font-size: 2.5rem; }
.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); } }

/* Page: Vérification de la recette (/admin/learning/edit) - Ajout de marges */
.page-learning-edit .hector-output-card .styled-table,
.page-learning-edit .hector-output-card ol,
.page-learning-edit .form-card fieldset {
    margin-top: 15px;
}

.page-learning-edit .form-card .details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ================================================================
   10. PAGE: LISTE DE COURSES (Styles des onglets)
================================================================ */
.page-shopping-list .tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.page-shopping-list .tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}
.page-shopping-list .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.page-shopping-list .tab-pane {
    display: none;
}
.page-shopping-list .tab-pane.active {
    display: block;
}
.page-shopping-list .barcode-input-group {
    display: flex;
    gap: 0.5rem;
}
.page-shopping-list .barcode-input-group .clay-input {
    flex-grow: 1;
}
.page-shopping-list .text-secondary {
    color: var(--text-secondary);
}
.page-shopping-list .small {
    font-size: 0.875rem;
}
.page-shopping-list .mb-2 {
    margin-bottom: 0.5rem;
}

/* ================================================================
   13. PAGE: TABLEAU DE BORD ADMIN
================================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.dashboard-card {
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}
.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    text-decoration: none;
}
.dashboard-card .material-symbols-outlined {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.dashboard-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.dashboard-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.child-profiles-grid .material-symbols-outlined.child-avatar {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.mt-5 {
    margin-top: 3rem;
}

/* ================================================================
   14. PAGE: LISTE DE COURSES (Édition en ligne)
================================================================ */
.inline-edit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.inline-edit-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
}
.inline-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
}
    flex-grow: 1;
}

/* ================================================================
   15. PAGE: PROFIL ENFANT (Édition avec onglets)
================================================================ */
.page-child-profile-edit .tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.page-child-profile-edit .tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}
.page-child-profile-edit .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.page-child-profile-edit .tab-pane {
    display: none;
}
.page-child-profile-edit .tab-pane.active {
    display: block;
}
.page-child-profile-edit .avatar-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-child-profile-edit .avatar-choice-item {
    cursor: pointer;
}
.page-child-profile-edit .avatar-choice-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.page-child-profile-edit .avatar-choice-item.selected img {
    border-color: var(--primary-color);
}
.page-child-profile-edit .selection-tick {
    display: none; /* On cache la coche */
}


