/* Faculté Header */
.faculte-header {
    position: relative;
    overflow: hidden;
    height: 450px;
    display: flex;
    align-items: flex-end;
    color: white;
    margin-bottom: 30px;
}

.faculte-header-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.faculte-header-content {
    position: relative;
    z-index: 3;
    padding-bottom: 50px;
    width: 100%;
}

.faculte-logo {
    width: 120px;
    height: 120px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 5px solid var(--primary-color);
    overflow: hidden;
}

.faculte-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.faculte-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.faculte-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.faculte-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.faculte-meta-item {
    display: flex;
    align-items: center;
    margin-right: 25px;
    margin-bottom: 10px;
    font-size: 16px;
}

.faculte-meta-item i {
    font-size: 18px;
    margin-right: 8px;
    color: var(--secondary-color);
}

.faculte-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Section Heading */
.section-heading {
    margin-bottom: 25px;
    position: relative;
}

.section-heading h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.heading-underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Description Content */
.description-content {
    line-height: 1.7;
    color: #495057;
}

.description-content p {
    margin-bottom: 15px;
}

/* Département Card */
.departement-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
}

.departement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.departement-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.departement-desc {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.departement-stats {
    display: flex;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    font-size: 14px;
}

.stat-label {
    color: var(--gray-color);
    margin-right: 5px;
}

.stat-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* Formation Category */
.formation-category-title {
    font-size: 20px;
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
}

/* Formation Item */
.formation-item {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.formation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.formation-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.formation-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.formation-title a:hover {
    color: var(--primary-color);
}

.formation-badges {
    margin-bottom: 15px;
}

.formation-badges .badge {
    margin-right: 5px;
    padding: 5px 10px;
    font-weight: 500;
    font-size: 12px;
}

.formation-meta {
    display: flex;
    flex-direction: column;
}

.formation-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray-color);
}

.formation-meta-item i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary-color);
}

/* Sidebar */
.sidebar-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.sidebar-card-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
}

.sidebar-card-header h3 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.sidebar-card-body {
    padding: 20px;
}

/* Établissement Preview */
.etablissement-preview {
    text-align: center;
}

.etablissement-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #e5e5e5;
}

.etablissement-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.etablissement-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.etablissement-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.etablissement-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray-color);
}

.etablissement-meta-item i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-list li i {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 14px;
}

.contact-list li a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: var(--primary-color);
}

/* Other Facultés List */
.other-facultes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.other-facultes-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.other-facultes-list li:last-child {
    border-bottom: none;
}

.other-facultes-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.other-facultes-list a:hover {
    color: var(--primary-color);
}

.faculte-tag {
    background-color: #e9f7ef;
    color: var(--primary-color);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 500;
}

/* Button Styles */
.btn-custom-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom-primary:hover {
    background-color: #007c30;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 150, 57, 0.3);
}

.btn-custom-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom-secondary:hover {
    background-color: #e6c40f;
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 214, 24, 0.3);
}

.btn-custom-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 150, 57, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .faculte-header {
        height: auto;
        min-height: 400px;
    }
    
    .faculte-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .faculte-header {
        min-height: 350px;
    }
    
    .faculte-logo {
        width: 100px;
        height: 100px;
    }
    
    .faculte-title {
        font-size: 24px;
    }
    
    .faculte-subtitle {
        font-size: 16px;
    }
    
    .faculte-meta-item {
        margin-right: 15px;
        font-size: 14px;
    }
    
    .faculte-actions {
        flex-direction: column;
    }
    
    .faculte-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .section-heading h2 {
        font-size: 22px;
    }
    
    .formation-category-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .faculte-header {
        min-height: 300px;
    }
    
    .faculte-logo {
        width: 80px;
        height: 80px;
    }
    
    .faculte-title {
        font-size: 22px;
    }
    
    .faculte-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .faculte-meta-item {
        margin-right: 0;
    }
}