/* Partenaire Expertises Manager - Frontend Styles */

.pce-expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pce-expertise-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pce-expertise-card:hover {
    border-color: #FF5C00;
    box-shadow: 0 8px 20px rgba(255, 92, 0, 0.15);
    transform: translateY(-4px);
}

.pce-expertise-header {
    padding: 30px 25px;
    text-align: center;
    border-bottom: 3px solid;
    flex-shrink: 0;
}

.pce-expertise-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.pce-expertise-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
}

.pce-expertise-title {
    font-size: 20px;
    font-weight: 700;
    color: #2D2D2D;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.pce-expertise-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pce-expertise-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.pce-expertise-button {
    display: inline-block;
    background: #FF5C00;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.pce-expertise-button:hover {
    background: #E65200;
    transform: scale(1.05);
}

.pce-expertise-button:active {
    transform: scale(0.98);
}

/* Modal */
.pce-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: pce-fadeIn 0.3s;
}

@keyframes pce-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pce-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pce-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: pce-slideUp 0.3s;
}

@keyframes pce-slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pce-modal-header {
    padding: 30px;
    border-bottom: 3px solid #FF5C00;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.pce-modal-header h2 {
    margin: 0;
    font-size: 26px;
    color: #2D2D2D;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.pce-modal-header img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}

.pce-modal-header .pce-modal-icon {
    font-size: 60px;
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}

.pce-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pce-modal-close:hover {
    color: #FF5C00;
}

.pce-modal-body {
    padding: 30px;
}

.pce-modal-section {
    margin-bottom: 30px;
}

.pce-modal-section h3 {
    font-size: 18px;
    color: #FF5C00;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.pce-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pce-modal-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.pce-modal-list li:last-child {
    border-bottom: none;
}

.pce-modal-list li span {
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.pce-modal-description {
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .pce-expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pce-expertise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pce-modal-content {
        width: 95%;
        max-height: 90vh;
    }
}

/* Print styles */
@media print {
    .pce-expertise-button,
    .pce-modal-close {
        display: none;
    }
}
