/* ========================================
   PROJECT DETAILS PAGE - STYLES CENTRALISÉS
   ======================================== */

/* Breadcrumb styling */
.project-breadcrumb {
    margin-bottom: 30px;
}

.project-breadcrumb .thm-breadcrumb {
    background: transparent;
    padding: 0;
}

.project-breadcrumb .thm-breadcrumb li {
    color: #666;
    font-size: 14px;
}

.project-breadcrumb .thm-breadcrumb li a {
    color: #006299;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-breadcrumb .thm-breadcrumb li a:hover {
    color: #004d73;
}

/* Project Header - Two Column Layout */
.project-detail-header {
    padding: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.project-detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    clip-path: ellipse(120% 100% at 50% 100%);
    z-index: 1;
}

.project-header-content-wrapper {
    background: #efefef;
    border-radius: 15px 15px 0 0;
    margin: 20px 20px 0 20px;
    padding: 1px 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.project-header-intro {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.project-header-small-title {
    font-size: 18px;
    font-weight: 600;
    color: #ff8c42;
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: 0.3px;
    font-family: 'Poppins', sans-serif;
}

.project-header-large-title {
    color: #006299 !important;
    font-weight: 600;
    letter-spacing: 3.19px;
    font-size: 38px;
    line-height: 1.4;
    margin: 0;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    text-transform: none;
}

.project-header-image {
    width: 83%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-header-info {
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.project-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.project-info-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.project-info-item:last-child {
    border-bottom: none;
}

.project-info-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    width: 220px;
    flex-shrink: 0;
    margin-right: 30px;
}

.project-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.project-info-badge {
    display: inline-block;
    padding: 8px 0px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-info-badge .akasi-text {
    color: #006299;
    font-size: 18px;
}

.project-info-badge .digital-text,
.project-info-badge .infra-btp-text,
.project-info-badge .energies-text,
.project-info-badge .telecoms-text,
.project-info-badge .marketing-text,
.project-info-badge .business-text,
.project-info-badge .audit-text,
.project-info-badge .learning-text {
    color: #dc3545;
    font-size: 18px;
}

.project-detail-content {
    padding: -4px 0 40px 0;
    background: #f5f5f5;
    position: relative;
    z-index: 2;
}

.project-detail-section {
    margin-bottom: 60px;
}

.project-detail-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.project-detail-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #006299;
}

.project-detail-section h3 i {
    color: #006299;
    margin-right: 10px;
    font-size: 24px;
}

/* Titre à gauche + image à droite (même hauteur) */
.title-split {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-top: 12px;
    height: 300px;
}

.title-split-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-split-left h1 {
    margin: 0;
    text-align: left;
}

.title-split-right {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.title-split-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-sidebar-card h3 i {
    color: #006299;
    margin-right: 8px;
    font-size: 20px;
}

.project-detail-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.project-detail-section ul {
    padding-left: 0;
    list-style: none;
}

.project-detail-section li {
    margin-bottom: 12px;
    color: #555;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.project-detail-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #006299;
    font-weight: bold;
    font-size: 18px;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.project-stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 98, 153, 0.15);
    border-color: #006299;
}

.project-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #006299;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.project-stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.project-sidebar-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.project-sidebar-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 2px solid #006299;
}

.project-sidebar-card ul {
    list-style: none;
    padding: 0;
}

.project-sidebar-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.project-sidebar-card li:last-child {
    border-bottom: none;
}

.project-sidebar-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #006299;
    font-weight: bold;
}

.back-to-projects {
    margin-top: 60px;
    text-align: center;
    padding: 40px 0;
    border-top: 2px solid #e0e0e0;
}

.back-to-projects .thm-btn {
    background: #006299;
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 98, 153, 0.3);
}

.back-to-projects .thm-btn:hover {
    background: #004d73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 98, 153, 0.4);
}

/* Icon enhancements */
.section-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #006299;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    margin-right: 15px;
    vertical-align: middle;
}

/* Case study layout */
.case-intro {
    padding: 40px 0 10px 0;
}

.case-intro p {
    font-weight: normal;
    font-size: 164%;
    line-height: 1.25;
    color: #200a58;
    text-align: justify;
}

.case-section h2 {
    font-weight: normal;
    font-size: 28px;
    line-height: 1.25;
    color: #200a58;
    text-align: justify;
}

.case-lead {
    font-size: 18px;
    color: #374151;
    line-height: 1.9;
    text-align: justify;
}

.left-accent {
    position: relative;
    padding-left: 28px;
}

.left-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 6px;
    background: linear-gradient(180deg, #B9002D 0%, #6C2BD9 100%);
    border-radius: 4px;
}

.case-list {
    margin-top: 14px;
}

.case-list li {
    margin: 3px 0 10px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 150%;
    color: #333;
}

.case-image {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Related projects */
.related-projects {
    background: #ffffff;
    padding: 60px 0 20px 0;
}

.related-title {
    font-size: 28px;
    font-weight: 800;
    color: #243b53;
    margin-bottom: 30px;
}

/* Styles identiques à projets.php pour les projets connexes - Hauteur uniforme forcée */
.related-grid.row {
    margin: 0;
}

.related-grid .col-xl-4 {
    margin-bottom: 50px;
    height: 380px;
    display: flex;
    padding-left: 15px;
    padding-right: 15px;
}

.related-grid .services-one__single {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.related-grid .services-one__single:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.related-grid .service-one__img {
    position: relative;
    overflow: hidden;
    flex-shrink: 0 !important;
    height: 193.33px !important;
    min-height: 193.33px !important;
    max-height: 193.33px !important;
    width: 100%;
}

.related-grid .service-one__img img {
    height: 193.33px !important;
    min-height: 193.33px !important;
    max-height: 193.33px !important;
    object-fit: cover !important;
    width: 100% !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.related-grid .services-one__single:hover .service-one__img img {
    transform: scale(1.05);
}

.related-grid .service-one__content {
    padding: 25px !important;
    background: #fff;
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    height: calc(380px - 193.33px);
}

.related-grid .service-one__title {
    font-size: 1.5rem;
    margin-bottom: 15px !important;
    flex-shrink: 0 !important;
    line-height: 1.3;
    min-height: auto;
}

.related-grid .service-one__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.related-grid .service-one__title a:hover {
    color: #006299;
}

/* Limiter le titre italic à 2 lignes */
.related-grid .service-one__title .italic-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: calc(1.3em * 2) !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
    word-break: break-word;
}

.related-grid .service-one__text {
    color: #666;
    line-height: 1.6 !important;
    flex: 1 1 auto;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0;
    min-height: 0;
    max-height: calc(1.6em * 2) !important;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.related-pagination {
    margin-top: 24px;
}

.related-pagination .page-item {
    margin: 0 4px;
}

.related-pagination .page-link {
    color: #006299;
    border: 1px solid #dde3ea;
}

.related-pagination .page-item.active .page-link {
    background: #006299;
    color: #fff;
    border-color: #006299;
}

/* Alignement parfait avec projets.php */
.italic-text {
    font-style: normal;
}

/* Animations au scroll */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* Amélioration du breadcrumb */
.project-breadcrumb {
    border-bottom: 1px solid #e0e0e0;
}

.pagination .page-link {
    color: #006299;
    border: 1px solid #dde3ea;
}

.pagination .page-item.active .page-link {
    background-color: #006299;
    border-color: #006299;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 991px) {
    .title-split {
        flex-direction: column;
        height: auto;
    }

    .title-split-right {
        height: 260px;
    }

    .title-split-left h1 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .project-header-content-wrapper {
        margin: 15px;
        padding: 30px 25px;
    }

    .project-header-large-title {
        font-size: 38px;
        line-height: 1.25;
        color: #200a58;
        padding: 0;
        margin-bottom: 15px;
    }

    .project-header-small-title {
        font-size: 16px;
    }

    .project-main-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .project-header-info {
        padding: 20px 15px;
    }

    .project-info-label {
        min-width: 150px;
        font-size: 13px;
    }

    .project-info-value {
        font-size: 14px;
    }

    .project-header-image {
        min-height: 300px;
        margin-bottom: 30px;
    }
}