:root {
    --vert: #2f6b3a;
    --vert-clair: #e8f1e9;
}

body { background: #f4f6f3; font-size: 1rem; }

.barre { background: var(--vert); }

.btn-vert { background: var(--vert); color: #fff; border: none; }
.btn-vert:hover, .btn-vert:focus, .btn-vert:disabled { background: #24542d; color: #fff; }

.carte { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.min-w-0 { min-width: 0; }

.lien-titre { font-weight: 600; color: inherit; text-decoration: none; display: block; }

/* Vignette dans la liste */
.vignette {
    width: 96px; min-height: 96px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: var(--vert-clair); border-radius: 12px 0 0 12px; overflow: hidden; font-size: 2.2rem; text-decoration: none;
}
.vignette img { width: 100%; height: 100%; object-fit: cover; }

.photo-principale { width: 100%; max-height: 55vh; object-fit: cover; display: block; }
.photo-galerie { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.mini { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

/* Zone de prise de photo */
.zone-photo {
    display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer;
    min-height: 140px; border: 2px dashed #9bb59f; border-radius: 12px; background: var(--vert-clair);
    overflow: hidden; font-size: 1.1rem;
}
.zone-photo .apercu { width: 100%; max-height: 50vh; object-fit: contain; }

.ligne-diag {
    display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; color: inherit; text-decoration: none;
    border-bottom: 1px solid #eee; min-width: 0;
}
.ligne-diag:last-child { border-bottom: none; }

.suggestion:active { background: var(--vert-clair); }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* Voile pendant une analyse (appel aux API) */
.voile {
    position: fixed; inset: 0; background: rgba(255,255,255,.85); z-index: 2000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; font-size: 1.1rem;
}

/* Filtres par catégorie : défilement horizontal sur téléphone */
.filtres { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; -webkit-overflow-scrolling: touch; }
.filtres .btn { white-space: nowrap; flex-shrink: 0; }
