/* Header Section */

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.matiere-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.matiere-nom {
    font-weight: 600;
    color: var(--dark-color);
}

/* Partners */
.partners-container {
    margin-top: 20px;
}

.partner-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
}


/* Insertion Rate */
.insertion-rate .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background-color: #f8f9fa;
}

.insertion-rate-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.insertion-rate-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.insertion-rate .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    margin-top: 5px;
}

.insertion-rate .progress-bar {
    border-radius: 4px;
    background-color: var(--primary-color);
}


/* Programme/Matières */
.programme-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.programme-accordion .accordion-button {
    background-color: white;
    font-weight: 600;
    color: var(--dark-color);
    padding: 15px 20px;
}

.programme-accordion .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.programme-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.programme-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.formation-header {
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: flex-end;
    color: white;
    margin-bottom: 30px;
}

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

.formation-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

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

.badge-container {
    margin-bottom: 15px;
}

.badge-container .badge {
    font-size: 0.9rem;
    padding: 6px 12px;
    margin-right: 8px;
    font-weight: 500;
}

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

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

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

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

.formation-meta-item a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

.formation-meta-item a:hover {
    border-bottom: 1px solid white;
}

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

/* Tab Navigation */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--grey-color);
    font-weight: 500;
    padding: 12px 15px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-bottom: 3px solid #e9ecef;
    background-color: #f8f9fa;
}



/* 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;
}

/* Formation Details Card */
.formation-details-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
}

.formation-details-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

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

.formation-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.formation-details-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
}

.detail-label {
    font-weight: 600;
    min-width: 130px;
    color: var(--dark-color);
}

.detail-value {
    color: #495057;
}

/* Thématiques */
.thematiques-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.thematique-badge {
    background-color: #f0f0f0;
    border-radius: 30px;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.thematique-badge:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.thematique-main {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 5px;
}

.thematique-sub {
    color: #6c757d;
    font-size: 0.9em;
}

/* Admission Steps */
.admission-steps {
    margin-top: 30px;
    margin-bottom: 30px;
}

.admission-step {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.admission-step:not(:last-child):after {
    content: "";
    position: absolute;
    left: 25px;
    top: 60px;
    width: 2px;
    height: calc(100% - 60px);
    background-color: var(--primary-color);
    opacity: 0.3;
}

.admission-step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.admission-step-content {
    flex-grow: 1;
}

.admission-step-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.admission-step-desc {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.5;
}

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

.etablissement-preview-header {
    display: flex;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.etablissement-logo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    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;
}

.placeholder-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #6c757d;
    font-size: 30px;
}

.etablissement-info {
    flex-grow: 1;
}

.etablissement-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.etablissement-type {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
}

.etablissement-rating {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.etablissement-rating i {
    margin-right: 2px;
}

.etablissement-rating span {
    color: #6c757d;
    font-size: 14px;
    margin-left: 5px;
}

.etablissement-location {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
}

.etablissement-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

.etablissement-preview-body {
    padding: 20px;
    color: #495057;
    line-height: 1.6;
}

.etablissement-preview-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

/* Faculté Info */
.faculte-info {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.faculte-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.faculte-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.departement-info {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-top: 20px;
}

.departement-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 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;
}

/* Timeline List */
.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.timeline-content {
    flex-grow: 1;
}

.timeline-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* 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 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:last-child {
    margin-bottom: 0;
}

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

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

/* Similar Formations List */
.similar-formations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.similar-formations-list li:last-child {
    border-bottom: none;
}

.similar-formations-list a {
    display: block;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.similar-formations-list a:hover {
    color: var(--primary-color);
}

.formation-name {
    font-weight: 500;
    display: block;
    margin-bottom: 3px;
}

.formation-meta {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 13px;
}

.formation-level {
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 30px;
    margin-right: 10px;
}

.formation-school {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Share Modal */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.share-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-link .form-control {
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .badge-container {
        margin-bottom: 15px;
        margin-top: 35px;
    }
    .formation-header {
        height: auto;
        min-height: 350px;
    }
    
    .formation-title {
        font-size: 28px;
    }
    
    .formation-meta-item {
        margin-right: 15px;
    }
    
    .formation-actions {
        flex-direction: column;
    }
    
    .formation-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .admission-step {
        flex-direction: column;
    }
    
    .admission-step-number {
        margin-bottom: 15px;
    }
    
    .admission-step:not(:last-child):after {
        display: none;
    }
    
    .etablissement-preview-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .etablissement-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .etablissement-preview-footer {
        flex-direction: column;
    }
    
    .etablissement-preview-footer .btn:first-child {
        margin-bottom: 10px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

/* 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 {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-custom-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 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);
}


.formation-detail-section {
    margin-bottom: 30px;
}

.formation-detail-section-title {
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.formation-detail-section-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.formation-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.formation-detail-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.formation-detail-list li:before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 14px;
}

/* Key Info List */
.key-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.key-info-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.key-info-icon {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.key-info-content {
    flex-grow: 1;
}

.key-info-label {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 3px;
}

.key-info-value {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
}