/* Import Google Font - Comfortaa pour un style maison chaleureux */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vert-mousse: #8FBC8F;
    --vert-feuille: #228B22;
    --terre-brune: #8B4513;
    --bois-clair: #DEB887;
    --bois-fonce: #A0522D;
    --blanc-casse: #F5F5DC;
    --orange-clay: #CD853F;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--blanc-casse), var(--bois-clair));
    min-height: 100vh;
    color: var(--terre-brune);
    font-weight: 400;
}

/* Auth Page */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.logo {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Header compact avec navigation intégrée */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--vert-feuille);
    color: white;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fab {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--orange-clay);
    color: white;
    border: none;
    font-size: 20px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Navigation par catégories améliorée */
.categories-section {
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-toggle {
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

.categories-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-text {
    font-size: 0.9rem;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.categories-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.categories-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.categories {
    display: none;
    padding: 0 20px 12px;
    gap: 8px;
    flex-wrap: wrap;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.categories.expanded {
    display: flex;
    max-height: 200px;
    padding: 12px 20px;
}

.cat-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
    margin-bottom: 6px;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.cat-btn.active {
    background: white;
    color: var(--vert-feuille);
    border-color: white;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

/* Couleurs dynamiques pour les catégories */
.cat-btn[data-cat="jardin"] {
    --cat-accent: #228B22;
}

.cat-btn[data-cat="outils"] {
    --cat-accent: #CD853F;
}

.cat-btn[data-cat="cuisine"] {
    --cat-accent: #FF6347;
}

.cat-btn[data-cat="garage"] {
    --cat-accent: #4682B4;
}

.cat-btn[data-cat="cave"] {
    --cat-accent: #800080;
}

.cat-btn[data-cat="electronique"] {
    --cat-accent: #1E90FF;
}

/* Contenu principal */
.main-content {
    margin-top: 110px;
    padding: 20px;
}

/* Barre de statistiques */
.stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--stat-color, var(--vert-feuille)) 0%, transparent 100%);
    opacity: 0.8;
}

.stat-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: var(--stat-color, var(--vert-feuille));
}

.stat-item:active {
    transform: translateY(-1px) scale(1.01);
}

.stat-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.stat-item:hover .stat-icon {
    transform: scale(1.15) rotate(-5deg);
}

.stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--stat-color, var(--terre-brune));
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.item-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.item-card:active {
    transform: scale(0.98);
}

.item-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: var(--bois-clair);
}

.item-info {
    padding: 10px;
}

.item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--terre-brune);
}

.item-location {
    font-size: 12px;
    color: var(--vert-feuille);
    font-weight: 500;
}

/* Badge de quantité pour la vue grille */
.item-quantity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--vert-feuille), var(--vert-mousse));
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    backdrop-filter: blur(10px);
}

/* Badge de quantité pour la vue liste */
.item-list-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.item-quantity-badge-small {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: linear-gradient(135deg, var(--vert-feuille), var(--vert-mousse));
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Badge de quantité pour la vue tableau */
.quantity-badge-table {
    display: inline-block;
    background: var(--vert-mousse);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header .close,
.photo-viewer .photo-viewer-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-header .close:hover,
.photo-viewer .photo-viewer-close:hover {
    background: #f0f0f0;
    color: var(--terre-brune);
    transform: scale(1.1);
}

.step {
    display: none;
    padding: 24px;
}

.step.active {
    display: block;
    animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Photo Zone Drag & Drop */
.photo-zone {
    border: 2px dashed #D4CEC4;
    border-radius: var(--border-radius);
    padding: 48px 24px;
    text-align: center;
    margin: 16px 0;
    cursor: pointer;
    transition: var(--transition);
    background: #FAFAF8;
}

.photo-zone:hover {
    border-color: var(--vert-mousse);
    background: var(--blanc-casse);
}

.photo-zone.dragover {
    border-color: var(--vert-feuille);
    background: rgba(34, 139, 34, 0.05);
    transform: scale(1.01);
}

.photo-placeholder {
    color: #8B7355;
    font-size: 15px;
    font-weight: 500;
}

.photo-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

/* Inputs */
.input-large {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8E3DC;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 400;
    transition: var(--transition);
    background: white;
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.05);
}

.input-large:hover {
    border-color: #D4CEC4;
}

.input-large:focus {
    outline: none;
    border-color: var(--vert-feuille);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.08), 0 1px 3px rgba(139, 69, 19, 0.05);
}

.input-large::placeholder {
    color: #A89F91;
}

.select-large {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8E3DC;
    border-radius: var(--border-radius);
    font-size: 15px;
    background: white;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 400;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.05);
}

.select-large:hover {
    border-color: #D4CEC4;
}

.select-large:focus {
    outline: none;
    border-color: var(--vert-feuille);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.08), 0 1px 3px rgba(139, 69, 19, 0.05);
}

/* Boutons */
.btn-primary {
    background: var(--vert-feuille);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin: 8px 0;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(34, 139, 34, 0.2);
}

.btn-primary:hover {
    background: #1e7a1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-next {
    background: var(--vert-feuille);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(34, 139, 34, 0.2);
}

.btn-next:hover {
    background: #1e7a1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 139, 34, 0.3);
}

.btn-next:active {
    transform: translateY(0);
}

/* Bouton retour subtil (lien) */
.btn-back {
    background: none;
    border: none;
    color: #8B7355;
    cursor: pointer;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 400;
    font-size: 14px;
    padding: 8px 16px;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--terre-brune);
    text-decoration: none;
}

.btn-back:active {
    transform: scale(0.98);
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.summary {
    background: #FAFAF8;
    padding: 24px;
    border-radius: var(--border-radius);
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.05);
}

.summary h3 {
    margin: 0 0 24px 0;
    color: var(--terre-brune);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.summary-section {
    background: linear-gradient(135deg, #FAFAF8 0%, white 100%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(139, 69, 19, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.summary-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--vert-mousse);
}

.summary-section h4 {
    margin: 0 0 16px 0;
    color: var(--vert-feuille);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blanc-casse);
}

.summary-section p {
    margin: 10px 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

.summary-section p:first-of-type {
    margin-top: 0;
}

.summary-section p:last-of-type {
    margin-bottom: 0;
}

.summary-section strong {
    color: var(--terre-brune);
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}

.summary-section em {
    color: #9ca3af;
    font-style: normal;
}

.summary-section-full {
    grid-column: 1 / -1;
}

/* Responsive pour le résumé */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-section {
        padding: 16px;
    }
    
    .summary-section h4 {
        font-size: 14px;
    }
    
    .summary-section p {
        font-size: 13px;
    }
    
    .summary-section strong {
        min-width: 80px;
        font-size: 13px;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .modal {
        padding: 40px;
    }
}

/* Animat
ions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Toast amélioré */
.toast {
    font-family: 'Comfortaa', sans-serif !important;
    font-weight: 500 !important;
    border-radius: 25px !important;
    backdrop-filter: blur(10px) !important;
}

/* Labels pour les inputs */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--terre-brune);
    font-size: 14px;
}

/* Contrôle de quantité */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 2px solid var(--bois-clair);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    max-width: 160px;
}

.quantity-control:focus-within {
    border-color: var(--vert-feuille);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.quantity-btn {
    background: var(--blanc-casse);
    border: none;
    color: var(--terre-brune);
    font-size: 24px;
    font-weight: 600;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quantity-btn:hover {
    background: var(--vert-mousse);
    color: white;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--terre-brune);
    width: 72px;
    padding: 0;
    background: white;
    font-family: 'Comfortaa', sans-serif;
}

.quantity-input:focus {
    outline: none;
}

/* Masquer les flèches du input number */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Amélioration responsive */
@media (max-width: 480px) {
    .categories {
        padding: 8px 15px 12px;
        gap: 6px;
    }

    .cat-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .header-title {
        font-size: 1.2rem;
    }

    .fab {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Modal de 
détails */
.details-content {
    padding: 20px;
}

.details-photo {
    margin-bottom: 20px;
}

.details-photo-placeholder {
    margin-bottom: 20px;
}

.details-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--terre-brune);
    font-size: 14px;
}

.info-value {
    font-weight: 400;
    color: var(--vert-feuille);
    font-size: 14px;
    text-align: right;
}

/* Tags badges */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    transition: all 0.2s ease;
}

.tag-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.info-row-full {
    flex-direction: column;
    align-items: flex-start;
}

.info-row-full .info-label {
    margin-bottom: 8px;
}

.details-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-edit {
    flex: 1;
    background: var(--orange-clay);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit:hover {
    background: #b8753f;
    transform: translateY(-1px);
}

.btn-delete {
    flex: 1;
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Bar
re de recherche */
.search-container {
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 20px;
    box-shadow: var(--shadow-soft);
    z-index: 800;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--vert-feuille);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.clear-search:hover {
    background: #f0f0f0;
    color: var(--terre-brune);
}

/* Contenu principal */
.main-content {
    margin-top: 110px;
    padding: 20px;
}

/* Barre de statistiques */
.stats-bar {
    background: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    width: 15%;
}

.stat-number {
    color: var(--vert-feuille);
    font-weight: 600;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--terre-brune);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Responsive pour la recherche */
@media (max-width: 480px) {
    .search-container {
        padding: 8px 15px;
    }

    .search-input {
        font-size: 16px;
        /* Évite le zoom sur iOS */
    }

    .stats-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-content {
        margin-top: 160px;
    }
}

/* 
Actions du header */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fab-secondary {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Mo
dal d'export */
.export-content {
    padding: 20px;
}

.export-stats {
    margin-bottom: 30px;
}

.export-stats h3 {
    margin-bottom: 15px;
    color: var(--terre-brune);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-card {
    background: var(--blanc-casse);
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vert-feuille);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--terre-brune);
    font-weight: 500;
}

.export-options h3 {
    margin-bottom: 15px;
    color: var(--terre-brune);
    font-weight: 600;
}

.export-buttons {
    display: grid;
    gap: 10px;
}

.btn-export {
    background: white;
    border: 2px solid var(--vert-mousse);
    color: var(--vert-feuille);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.btn-export:hover {
    background: var(--vert-mousse);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

@media (min-width: 480px) {
    .export-buttons {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* 
QR Code Modal */
.qr-content {
    padding: 20px;
    text-align: center;
}

.qr-code-container {
    margin-bottom: 20px;
}

.qr-code-image {
    max-width: 200px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    padding: 10px;
    background: white;
}

.qr-info {
    margin-top: 20px;
}

.qr-info p {
    margin-bottom: 20px;
    color: var(--terre-brune);
    font-size: 14px;
}

.qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-viewer-actions button {
    background: var(--vert-mousse);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 120px;
}

.photo-viewer-actions button:hover {
    background: var(--vert-feuille);
    transform: translateY(-1px);
}

.btn-qr {
    background: var(--vert-mousse);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 120px;
}

.btn-qr:hover {
    background: var(--vert-feuille);
    transform: translateY(-1px);
}

/* Ajustement des actions de détails */
.details-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .details-actions {
        grid-template-columns: 1fr;
    }

    .qr-actions {
        flex-direction: column;
    }
}

/* Styles pour les composants modulaires */

/* Placeholder d'image avec icône de catégorie */
.item-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bois-clair);
    color: var(--terre-brune);
}

.placeholder-icon {
    font-size: 2rem;
    opacity: 0.7;
}

/* Indicateur d'objet modifié */
.item-updated {
    font-size: 10px;
    color: var(--orange-clay);
    font-weight: 600;
    margin-top: 2px;
}

/* Amélioration des boutons d'export */
.export-btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.export-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.export-info {
    flex: 1;
}

.export-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.export-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Styles pour les infos détaillées */
.info-row-full {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.info-description {
    background: var(--blanc-casse);
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

/* QR Code styles */
.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--vert-feuille);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.qr-url {
    background: var(--blanc-casse);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
    word-break: break-all;
    font-family: monospace;
    font-size: 12px;
}

.qr-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

.btn-retry {
    background: var(--orange-clay);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'Comfortaa', sans-serif;
}

/* Statistiques avec couleurs dynamiques */
.stat-item {
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-1px);
}

.stat-icon {
    font-size: 1.1rem;
}

.stat-text {
    font-size: 14px;
}

/* Responsive pour les nouveaux composants */
@media (max-width: 480px) {
    .export-btn-content {
        gap: 10px;
    }

    .export-icon {
        font-size: 1.2rem;
    }

    .export-title {
        font-size: 14px;
    }

    .export-desc {
        font-size: 12px;
    }

    .qr-actions {
        flex-direction: column;
        gap: 8px;
    }

    .qr-actions button {
        width: 100%;
    }
}

/* M
odal de recherche */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: searchModalSlide 0.3s ease;
}

@keyframes searchModalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Comfortaa', sans-serif;
    padding: 8px 12px;
    background: transparent;
}

.search-modal-input::placeholder {
    color: #999;
}

.search-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-close:hover {
    background: #f0f0f0;
    color: var(--terre-brune);
}

.search-suggestions {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.search-suggestion {
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-suggestion:hover {
    background: var(--blanc-casse);
}

.search-suggestion-icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

.search-suggestion-text {
    flex: 1;
    font-size: 14px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Responsive pour navigation et recherche */
@media (max-width: 768px) {
    .categories {
        justify-content: flex-start;
    }

    .cat-btn {
        flex: 0 0 auto;
        min-width: fit-content;
    }

    .search-modal-content {
        width: 95%;
        margin: 0 10px;
    }

    .main-content {
        margin-top: 100px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.2rem;
    }

    .categories-toggle {
        padding: 10px 15px;
    }

    .categories.expanded {
        padding: 10px 15px;
    }

    .cat-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .search-modal {
        padding-top: 60px;
    }
}

/* Badge
s de comptage sur les catégories */
.category-badge {
    background: var(--orange-clay);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

.cat-btn.active .category-badge {
    background: var(--vert-feuille);
}

/* Animation pour l'ouverture des catégories */
.categories.expanding {
    display: flex;
    animation: categoriesExpand 0.3s ease forwards;
}

.categories.collapsing {
    animation: categoriesCollapse 0.3s ease forwards;
}

@keyframes categoriesExpand {
    from {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    to {
        max-height: 200px;
        opacity: 1;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@keyframes categoriesCollapse {
    from {
        max-height: 200px;
        opacity: 1;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    to {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Indicateur visuel pour les catégories avec objets */
.cat-btn:not([data-cat="all"]):not(.active):hover .category-badge {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Amélioration de l'accessibilité */
.categories-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.cat-btn:focus {
    outline: 2px solid var(--vert-feuille);
    outline-offset: 2px;
}

/* États de chargement */
.categories-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.categories-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* 
===== QR CODE MODAL ===== */
.qr-content {
    padding: 20px;
    text-align: center;
}

.qr-code-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    margin-bottom: 20px;
    background: var(--blanc-casse);
    border-radius: var(--border-radius);
    border: 2px dashed #ddd;
}

.qr-code-display {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-display canvas {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    background: white;
    padding: 10px;
}

.qr-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--terre-brune);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--vert-feuille);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.qr-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #e74c3c;
}

.btn-retry {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-retry:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.qr-info {
    margin-bottom: 25px;
    color: var(--terre-brune);
}

.qr-info p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.qr-url {
    background: var(--blanc-casse);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--vert-feuille);
}

.qr-url small {
    font-family: 'Courier New', monospace;
    color: #666;
    word-break: break-all;
}

.qr-data-info {
    margin-top: 15px;
}

.qr-data-info details {
    background: var(--blanc-casse);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e0e0e0;
}

.qr-data-info summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--terre-brune);
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.qr-data-info summary:hover {
    background: rgba(139, 69, 19, 0.1);
}

.qr-data-info pre {
    margin-top: 10px;
    background: white;
    text-align: left;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    overflow-x: auto;
    color: #333;
    line-height: 1.4;
}

.qr-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.qr-actions .btn-export {
    background: var(--vert-feuille);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-actions .btn-export:hover {
    background: #1e7e1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.qr-actions .btn-export:active {
    transform: translateY(0);
}

/* Responsive QR Modal */
@media (max-width: 768px) {
    .qr-content {
        padding: 15px;
    }

    .qr-code-container {
        min-height: 250px;
    }

    .qr-code-display canvas {
        max-width: 200px;
        max-height: 200px;
    }

    .qr-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .qr-actions .btn-export {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .qr-code-display canvas {
        max-width: 180px;
        max-height: 180px;
        padding: 8px;
    }

    .qr-info p {
        font-size: 0.9rem;
    }

    .qr-url small {
        font-size: 0.75rem;
    }
}

/*
 ===== VISIONNEUSE PHOTO (POPIN PLEIN ÉCRAN) ===== */
.photo-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.photo-viewer.active {
  display: flex;
}

.photo-viewer-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.photo-viewer-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

/* Bouton de fermeture de la visionneuse */
.photo-viewer-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.photo-viewer-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.photo-viewer-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* Bouton de téléchargement dans la visionneuse */
.photo-viewer .btn-download {
  background: var(--vert-mousse);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-family: 'Comfortaa', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.photo-viewer .btn-download:hover {
  background: var(--vert-feuille);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.photo-viewer .btn-download:active {
  transform: translateY(0);
}

/* Responsive pour la visionneuse */
@media (max-width: 768px) {
  /* Stats bar : scroll horizontal en mobile */
  .stats-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    padding: 12px 20px !important;
    margin: 0 -20px 20px -20px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stats-bar::-webkit-scrollbar {
    display: none;
  }

  .stat-item {
    flex: 0 0 auto !important;
    min-width: 150px !important;
    scroll-snap-align: start;
    padding: 16px 20px !important;
  }

  .stat-icon {
    font-size: 32px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-text {
    font-size: 13px;
  }

  /* Catégories : scroll horizontal en mobile */
  .categories.expanded {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .categories.expanded::-webkit-scrollbar {
    display: none;
  }

  .categories.expanded .cat-btn {
    flex: 0 0 auto;
    min-width: 100px;
    scroll-snap-align: start;
  }

  .photo-viewer {
    padding: 15px;
  }

  .photo-viewer-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .photo-viewer-content {
    gap: 15px;
  }

  .photo-viewer-image {
    max-height: 75vh;
  }
}

@media (max-width: 480px) {
  .photo-viewer {
    padding: 10px;
  }

  .photo-viewer-close {
    width: 36px;
    height: 36px;
    font-size: 22px;
    top: 5px;
    right: 5px;
  }

  .photo-viewer-image {
    max-height: 70vh;
    border-radius: 6px;
  }

  .photo-viewer .btn-download {
    padding: 10px 20px;
    font-size: 13px;
    width: 100%;
    max-width: 250px;
  }
}

/* Animation d'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Indicateur de chargement pour les images */
.photo-viewer-image[src] {
  animation: imageLoad 0.3s ease;
}

@keyframes imageLoad {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Grille de formulaire pour l'étape 2 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--terre-brune);
    line-height: 1.3;
}

.form-group-full {
    grid-column: 1 / -1;
}

.textarea-large {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8E3DC;
    border-radius: var(--border-radius);
    font-family: 'Comfortaa', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    transition: var(--transition);
    background: white;
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.05);
}

.textarea-large:hover {
    border-color: #D4CEC4;
}

.textarea-large:focus {
    outline: none;
    border-color: var(--vert-feuille);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.08), 0 1px 3px rgba(139, 69, 19, 0.05);
}

.textarea-large::placeholder {
    color: #A89F91;
}

/* Indicateur de champ requis */
.form-group label::after {
    content: '';
}

.form-group label[for="itemName"]::after,
.form-group label[for="category"]::after {
    content: ' *';
    color: #e74c3c;
    font-weight: 700;
}

/* États de validation */
.input-large:invalid:not(:placeholder-shown),
.select-large:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.input-large:valid:not(:placeholder-shown),
.select-large:valid:not(:placeholder-shown) {
    border-color: var(--vert-mousse);
}

/* Amélioration des champs de date */
input[type="date"].input-large {
    position: relative;
    cursor: pointer;
}

input[type="date"].input-large::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

input[type="date"].input-large::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Amélioration des champs numériques */
input[type="number"].input-large::-webkit-inner-spin-button,
input[type="number"].input-large::-webkit-outer-spin-button {
    opacity: 0.6;
    transition: var(--transition);
}

input[type="number"].input-large:hover::-webkit-inner-spin-button,
input[type="number"].input-large:hover::-webkit-outer-spin-button {
    opacity: 1;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step {
        padding: 20px;
    }
    
    .step-buttons {
        margin-top: 20px;
    }
}

/* 🔍 Autocomplete */
.form-group {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--vert-feuille);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--blanc-casse);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--blanc-casse);
    color: var(--vert-feuille);
}

.autocomplete-item strong {
    color: var(--vert-feuille);
    font-weight: 600;
}

.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-suggestions::-webkit-scrollbar-track {
    background: var(--blanc-casse);
}

.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: var(--vert-mousse);
    border-radius: 3px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--vert-feuille);
}

/* 📋 Résumé amélioré (Étape 3) */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-section {
    background: #FAFAF8;
    padding: 16px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--vert-feuille);
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.05);
}

.summary-section-full {
    grid-column: 1 / -1;
}

.summary-section h4 {
    margin: 0 0 12px 0;
    color: var(--vert-feuille);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.summary-section p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #5A4A3A;
}

.summary-section p strong {
    color: var(--terre-brune);
    font-weight: 600;
}

.summary-section p em {
    color: #8B7355;
    font-style: normal;
}

.summary-action {
    background: linear-gradient(135deg, var(--vert-mousse), var(--vert-feuille));
    padding: 16px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(34, 139, 34, 0.2);
}

.summary-action p {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}
