/* ============================================================
   Voiles d'Occasion — Styles Frontend
   ============================================================ */

.vo-wrap {
    font-family: inherit;
    color: #1d2327;
}

/* ── Bloc filtres ── */
.vo-filters {
    background: #f4f7fa;
    border: 1px solid #dde1e7;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.vo-filters__title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
}

.vo-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 16px;
}

.vo-form__group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vo-form__group label {
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vo-form__group input,
.vo-form__group select {
    border: 1px solid #c3c4c7;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 14px;
    color: #1d2327;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.vo-form__group input:focus,
.vo-form__group select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.vo-form__actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Boutons ── */
.vo-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}

.vo-btn--primary {
    background: #2271b1;
    color: #fff;
}

.vo-btn--primary:hover {
    background: #135e96;
    color: #fff;
}

.vo-btn--secondary {
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.vo-btn--secondary:hover {
    background: #f0f6fc;
    color: #135e96;
}

.vo-btn--small {
    padding: 5px 12px;
    font-size: 12px;
    background: #e8f4fd;
    color: #2271b1;
    border: 1px solid #b3d4f0;
    border-radius: 4px;
    white-space: nowrap;
}

.vo-btn--small:hover {
    background: #cce3f7;
    color: #135e96;
}

/* ── Résultats ── */
.vo-results__count {
    font-size: 14px;
    color: #50575e;
    margin-bottom: 14px;
}

/* ── Tableau ── */
.vo-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #dde1e7;
}

.vo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 900px;
}

.vo-table thead tr {
    background: #2271b1;
    color: #fff;
}

.vo-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.vo-table tbody tr {
    border-bottom: 1px solid #e8ecf0;
    transition: background 0.1s;
}

.vo-table tbody tr:hover {
    background: #f0f6fc;
}

.vo-table tbody tr:last-child {
    border-bottom: none;
}

.vo-table td {
    padding: 9px 12px;
    vertical-align: middle;
    color: #1d2327;
}

/* Description row */
.vo-desc-row td {
    padding: 4px 12px 10px;
    color: #6b7280;
    font-size: 12px;
    background: #fafbfc;
}

/* ── Badges état ── */
.vo-etat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

.vo-etat--neuf     { background: #d1fae5; color: #065f46; }
.vo-etat--tres-bon { background: #dbeafe; color: #1e3a8a; }
.vo-etat--bon      { background: #e0f2fe; color: #0369a1; }
.vo-etat--moyen    { background: #fef3c7; color: #92400e; }
.vo-etat--mauvais  { background: #fee2e2; color: #991b1b; }

/* ── Miniature image ── */
.vo-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dde1e7;
}

.vo-photo-link {
    font-size: 12px;
    color: #2271b1;
    text-decoration: none;
    white-space: nowrap;
}

.vo-photo-link:hover {
    text-decoration: underline;
}

/* ── Pagination ── */
.vo-pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vo-page {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    text-decoration: none;
    color: #2271b1;
    font-size: 13px;
    background: #fff;
    transition: all 0.15s;
}

.vo-page:hover {
    background: #f0f6fc;
    border-color: #2271b1;
}

.vo-page--active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    font-weight: 700;
}

/* ── Vide ── */
.vo-empty {
    padding: 40px 20px;
    text-align: center;
    color: #50575e;
    background: #fafbfc;
    border: 1px dashed #dde1e7;
    border-radius: 8px;
}

.vo-empty a {
    color: #2271b1;
}

/* ── Responsive ── */
@media ( max-width: 768px ) {
    .vo-filters {
        padding: 16px;
    }

    .vo-form__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media ( max-width: 480px ) {
    .vo-form__grid {
        grid-template-columns: 1fr;
    }

    .vo-form__actions {
        flex-direction: column;
    }

    .vo-btn {
        text-align: center;
    }
}

/* ============================================================
   Formulaire de devis [voile_devis]
   ============================================================ */

.vo-devis-wrap {
    max-width: 680px;
    margin: 0 auto;
}

/* ── Récapitulatif voile ── */
.vo-devis-recap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #e8f4fd;
    border: 1px solid #b3d4f0;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.vo-devis-recap__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2271b1;
    white-space: nowrap;
    padding-top: 2px;
}

.vo-devis-recap__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vo-devis-recap__name {
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
}

.vo-devis-recap__details {
    font-size: 13px;
    color: #50575e;
}

/* ── Grille du formulaire ── */
.vo-devis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.vo-devis-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vo-devis-field--full {
    grid-column: 1 / -1;
}

.vo-devis-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.vo-devis-field label .required {
    color: #d63638;
}

.vo-devis-field input,
.vo-devis-field textarea {
    border: 1px solid #c3c4c7;
    border-radius: 5px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1d2327;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.vo-devis-field input:focus,
.vo-devis-field textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
    outline: none;
}

.vo-devis-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── Footer formulaire ── */
.vo-devis-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.vo-devis-rgpd {
    font-size: 11px;
    color: #8c8f94;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.vo-btn--large {
    padding: 12px 24px;
    font-size: 15px;
    white-space: nowrap;
}

/* ── Message de succès ── */
.vo-devis-success {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-left: 4px solid #059669;
    border-radius: 6px;
    padding: 20px 24px;
}

.vo-devis-success__icon {
    font-size: 28px;
    line-height: 1;
}

.vo-devis-success h3 {
    margin: 0 0 8px 0;
    color: #065f46;
    font-size: 18px;
}

.vo-devis-success p {
    margin: 0;
    color: #047857;
}

/* ── Messages d'erreur ── */
.vo-devis-errors {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-left: 4px solid #d63638;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.vo-devis-errors p {
    margin: 4px 0;
    font-size: 14px;
    color: #991b1b;
}

/* ── Responsive ── */
@media ( max-width: 560px ) {
    .vo-devis-grid {
        grid-template-columns: 1fr;
    }

    .vo-devis-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .vo-btn--large {
        text-align: center;
    }

    .vo-devis-recap {
        flex-direction: column;
        gap: 6px;
    }
}
