/**
 * Technologies Services - Réalisations Styling
 * Premium Medical/Corporate Aesthetic
 */

:root {
    --primary-gradient: linear-gradient(135deg, #086896 0%, #159ada 100%);
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
}

/* --- HERO SECTION --- */
.realisations-hero {
    position: relative;
    padding: 140px 0 100px;
    background: var(--dark-bg);
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 32px 32px;
    opacity: 0.4;
}

.realisations-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(8, 104, 150, 0.2) 0%, transparent 70%);
    filter: blur(80px);
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(8, 104, 150, 0.2);
    border: 1px solid rgba(8, 104, 150, 0.3);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #159ada;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* --- FILTERS (Removed) --- */
.realisations-section {
    padding: 80px 0;
    background: var(--light-bg);
}

/* --- CARDS --- */
.realisation-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.realisation-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.realisation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(8, 104, 150, 0.1);
}

.realisation-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.realisation-image.mini {
    height: 180px;
}

.realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.realisation-card:hover .realisation-image img {
    transform: scale(1.1);
}

.realisation-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 104, 150, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.realisation-card:hover .realisation-overlay {
    opacity: 1;
}

.view-details {
    padding: 10px 20px;
    background: #fff;
    color: var(--primary);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.realisation-card:hover .view-details {
    transform: translateY(0);
}

.realisation-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.realisation-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.realisation-meta i {
    margin-right: 4px;
    color: var(--primary);
}

.realisation-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
    line-height: 1.4;
}

.realisation-title.mini {
    font-size: 1.1rem;
}
.realisation-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.realisation-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.equipment {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* --- DETAIL PAGE --- */
.project-hero {
    position: relative;
    padding: 200px 0 100px;
    color: #fff;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.project-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.project-hero-content {
    position: relative;
    max-width: 900px;
}

.project-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.project-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.project-meta {
    display: flex;
    gap: 32px;
    font-size: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item i {
    color: #159ada;
}

/* --- BODY SECTION --- */
.project-body {
    background: #fff;
    padding: 50px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.project-section {
    margin-bottom: 40px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(8, 104, 150, 0.1);
}

.project-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.project-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
}

.project-list li {
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.project-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.project-list.results li {
    padding: 16px 20px;
    background: rgba(8, 104, 150, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-list.results li::before {
    display: none;
}

.project-list.results i {
    color: #27ae60;
    font-size: 1.25rem;
}

.project-quote {
    margin: 60px 0;
    padding: 40px;
    background: var(--dark-bg);
    border-radius: 24px;
    color: #fff;
    position: relative;
}

.project-quote i {
    font-size: 3rem;
    color: rgba(21, 154, 218, 0.2);
    position: absolute;
    top: 20px;
    left: 40px;
}

.project-quote p {
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    position: relative;
    margin-bottom: 20px;
}

.project-quote footer {
    font-size: 0.95rem;
    font-weight: 800;
    color: #159ada;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- SIDEBAR --- */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.metrics-grid {
    display: grid;
    gap: 16px;
}

.metric-item {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
}

.sidebar-list li {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sidebar-list li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    color: var(--primary);
}

.cta-card {
    background: var(--primary-gradient);
    color: #fff;
}

.cta-card .sidebar-title {
    color: #fff;
}

.btn-sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: var(--primary);
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-sidebar-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-back:hover {
    transform: translateX(-5px);
}

/* --- RELATED PROJECTS --- */
.project-related {
    padding: 100px 0;
    background: #f1f5f9;
}

.section-badge {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .project-hero {
        padding: 160px 0 80px;
    }
    
    .project-title {
        font-size: 2.2rem;
    }
    
    .project-body {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 12px;
    }
}