/* Demandes par photo — pages client (layouts/fabara) */
.dp-wrap { max-width: 860px; margin: 100px auto 70px; padding: 0 20px; }
.dp-wrap h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--green-dark); margin-bottom: 0.4rem; line-height: 1.15; }
.dp-sous-titre { color: var(--gray-mid); margin-bottom: 1.6rem; }
.dp-carte { background: white; border: 1px solid var(--green-pale); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.1rem; }

/* Étapes « comment ça marche » */
.dp-etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1.6rem; }
.dp-etape { background: var(--green-bg); border-radius: 14px; padding: 0.9rem 1rem; font-size: 0.85rem; color: var(--text); }
.dp-etape strong { display: block; font-family: var(--font-display); color: var(--green-main); font-size: 1.3rem; }

/* Formulaire */
.dp-champ { margin-bottom: 1.1rem; }
.dp-champ label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.dp-champ small { color: var(--gray-mid); font-size: 0.78rem; }
.dp-champ input[type=text], .dp-champ input[type=number], .dp-champ input[type=date], .dp-champ select, .dp-champ textarea {
    width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--green-pale); border-radius: 12px;
    font-family: var(--font-body); font-size: 0.95rem; background: var(--green-bg); color: var(--text);
}
.dp-champ textarea { min-height: 120px; resize: vertical; }
.dp-champ input:focus, .dp-champ select:focus, .dp-champ textarea:focus { outline: none; border-color: var(--green-main); background: white; }
.dp-erreur { color: #b91c1c; font-size: 0.8rem; margin-top: 0.3rem; display: block; }
.dp-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.dp-depot {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
    border: 2px dashed var(--green-pale); border-radius: 16px; padding: 1.6rem 1rem; text-align: center;
    background: var(--green-bg); cursor: pointer; color: var(--green-main); font-weight: 600;
}
.dp-depot:hover { border-color: var(--green-main); }
.dp-depot input { display: none; }
.dp-apercus { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.7rem; }
.dp-apercus img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--green-pale); }

/* Galerie de la demande */
.dp-galerie { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.8rem 0; }
.dp-galerie img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--green-pale); }
.dp-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.dp-pastille { background: var(--green-bg); color: var(--green-main); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.78rem; font-weight: 600; }

/* Statuts */
.dp-statut { padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.dp-ouverte { background: #fef3c7; color: #92400e; }
.dp-attribuee, .dp-acceptee { background: #dcfce7; color: #166534; }
.dp-fermee, .dp-non_retenue { background: #f3f4f6; color: #4b5563; }
.dp-envoyee { background: #dbeafe; color: #1e40af; }

/* Liste « mes demandes » */
.dp-item { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: inherit; }
.dp-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.dp-item-texte { flex: 1; min-width: 0; }
.dp-item-texte strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-item-texte span { font-size: 0.82rem; color: var(--gray-mid); }

/* Offres */
.dp-offre-tete { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.dp-prix { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--green-main); }
.dp-offre-photo { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; margin-top: 0.6rem; }
.dp-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.dp-btn { border: none; border-radius: 999px; padding: 0.7rem 1.3rem; font-weight: 700; font-family: var(--font-body); cursor: pointer; font-size: 0.9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.dp-btn-or { background: var(--gold); color: var(--green-dark); }
.dp-btn-vert { background: var(--green-main); color: white; }
.dp-btn-clair { background: var(--green-bg); color: var(--green-main); }

/* Fil de messages */
.dp-fil { margin-top: 1rem; border-top: 1px solid var(--green-pale); padding-top: 0.9rem; }
.dp-msg { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 14px; margin-bottom: 0.5rem; font-size: 0.9rem; line-height: 1.45; }
.dp-msg small { display: block; font-size: 0.72rem; color: var(--gray-mid); margin-top: 0.2rem; }
.dp-msg-moi { margin-left: auto; background: var(--green-main); color: white; }
.dp-msg-moi small { color: rgba(255, 255, 255, 0.75); }
.dp-msg-autre { background: var(--green-bg); }
.dp-fil form { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.dp-fil textarea { flex: 1; min-height: 44px; padding: 0.6rem 0.9rem; border: 1.5px solid var(--green-pale); border-radius: 12px; font-family: var(--font-body); resize: vertical; }
.dp-note { font-size: 0.78rem; color: var(--gray-mid); margin-top: 0.4rem; }

/* Bandeau d'appel (accueil, catalogue) */
.dp-cta {
    display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--green-dark), var(--green-main)); color: white;
    border-radius: 20px; padding: 1.4rem 1.6rem; margin: 0 auto;
}
.dp-cta-icone { width: 56px; height: 56px; border-radius: 16px; background: rgba(249, 168, 37, 0.2); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dp-cta-texte { flex: 1; min-width: 220px; }
.dp-cta-texte strong { display: block; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.2rem; }
.dp-cta-texte span { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }

@media (max-width: 640px) {
    .dp-etapes, .dp-ligne { grid-template-columns: 1fr; }
    .dp-galerie img { width: 96px; height: 96px; }
    /* Cartes de liste : titre sur 2 lignes, bouton/statut sous le texte (aligné avec lui) */
    .dp-item { flex-wrap: wrap; row-gap: 0.6rem; }
    .dp-item-texte { flex-basis: calc(100% - 88px); }
    .dp-item-texte strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .dp-item > .dp-btn, .dp-item > .dp-statut { margin-left: 88px; }
}
