.revendeur-search {
    max-width: 1100px;
}

#revendeur-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#revendeur-search-form select,
#revendeur-search-form button {
    padding: 10px;
}

.revendeur-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.revendeur-count {
    font-weight: 600;
    font-size: 15px;
    color: #024b9b;
    margin-bottom: 12px;
}

.revendeur-card-info {
    flex: 1;
}

.produit-label {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}

.produit-value {
    color: #024b9b;
    font-weight: 700;
    font-size: 15px;
}

.revendeur-card-info h3 {
    margin: 6px 0;
    font-size: 17px;
    color: #0f172a;
}

.revendeur-ville,
.revendeur-gouv {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    font-size: 14px;
    color: #4b5563;
}

.revendeur-ville svg,
.revendeur-gouv svg {
    flex-shrink: 0;
    color: #024b9b;
}

.revendeur-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.btn-contact-revendeur {
    background: linear-gradient(135deg, #dbdbdb 0%, #b8b8b8 100%);
    color: #333;
    padding: 10px 40px 10px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.btn-contact-revendeur::after {
    content: '\2192';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.btn-contact-revendeur:hover {
    background: linear-gradient(135deg, #024b9b 0%, #0462c7 100%);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

@media (max-width: 640px) {
    .revendeur-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .revendeur-card-action {
        min-width: unset;
    }

    .revendeur-ville, .revendeur-gouv{
	justify-content:center;
    }	
}

/* Pagination */
.revendeur-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #024b9b;
}

.page-btn:hover:not(:disabled) {
    background: #024b9b;
    color: #fff;
    border-color: #024b9b;
}

.page-btn.active {
    background: #024b9b;
    color: #fff;
    border-color: #024b9b;
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.page-dots {
    padding: 0 4px;
    color: #999;
}

.revendeur-loading,
.revendeur-none {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Contact popup modal */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.contact-modal.active {
    visibility: visible;
    pointer-events: auto;
}

.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active .contact-modal-overlay {
    opacity: 1;
}

.contact-modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 80px;
}

.contact-modal.active .contact-modal-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.contact-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
}

.contact-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.contact-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.contact-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    background: #ffffff;
}

.contact-field {
    margin-bottom: 18px;
}

.contact-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
}

.required {
    color: #dc2626;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #024b9b;
    box-shadow: 0 0 0 3px rgba(2, 75, 155, 0.1);
}

.contact-honeypot {
    display: none !important;
}

.contact-submit {
    background: linear-gradient(135deg, #024b9b 0%, #0462c7 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 4px;
}

.contact-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success p {
    font-size: 18px;
    font-weight: 600;
    color: #16a34a;
}
