/**
 * Styles pour le plugin Younicom Ynspir
 *
 * @package Younicom_Ynspir
 * @author Younicom
 * @link https://younicom.fr
 */

/* === Container principal === */
.sd-departements-list {
    margin: 1rem 0;
    padding: 0;
}

/* === Liste déroulante === */
.sd-departements-select {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    font-size: 16px;
    font-family: inherit;
    border-radius: 5px;
    background-color: #fff;
    color: #2D3748;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sd-departements-select:hover {
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

.sd-departements-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* === Message vide === */
.sd-empty-message {
    padding: 1.5rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    color: #856404;
    text-align: center;
    font-size: 14px;
}

/* === Personnalisation Select2 === */
.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 5px;
    height: auto;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #2D3748;
    line-height: 28px;
    padding-left: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #FF6B00;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #FF6B00;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #FF6B00;
    outline: none;
}

/* === Architectes === */
.sd-architectes-list {
    margin: 1rem 0;
    padding: 0;
}

.sd-architectes-select {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    font-size: 16px;
    font-family: inherit;
    border-radius: 5px;
    background-color: #fff;
    color: #2D3748;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sd-architectes-select:hover {
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

.sd-architectes-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* === Card Architecte === */
.sd-architecte-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sd-architecte-card:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
    transform: translateY(-2px);
}

.sd-architecte-photo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.sd-architecte-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-architecte-content {
    flex: 1;
}

.sd-architecte-nom {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2D3748;
}

.sd-architecte-description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
}

.sd-architecte-description p {
    margin: 0 0 10px 0;
}

.sd-architecte-description p:last-child {
    margin-bottom: 0;
}

/* === Preview dans la liste déroulante === */
.sd-architecte-preview {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .sd-architecte-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .sd-architecte-photo {
        width: 120px;
        height: 120px;
    }
    
    .sd-architecte-nom {
        font-size: 20px;
    }
}

