/* ==========================================================================
   Consolidated details stylesheet for Rejuste WENOUMI's Portfolio
   Realisation Details, Service Details, and Resource/Insight Details
   ========================================================================== */

/* ===== 1. GLOBAL DESIGN SYSTEM VARIABLES ===== */
:root {
    /* Color Palette */
    --color-obsidian: var(--rw-primary);
    --color-obsidian-deep: var(--rw-dark);
    --color-slate-dark: var(--rw-text);
    --color-slate-light: var(--rw-bg-subtle);
    --color-slate-border: var(--rw-border);
    --color-gold-light: var(--rw-gold-light);
    --color-gold-solid: var(--rw-gold-dark);
    --color-gold-dark: var(--rw-gold-dark);
    --color-white: var(--rw-light);
    
    /* Gradients */
    --gold-gradient: var(--rw-gradient-gold);
    --gradient-primary: var(--rw-gradient-primary);
    --gradient-glow: radial-gradient(circle at 10% 20%, rgba(247, 209, 56, 0.05) 0%, transparent 45%),
                     radial-gradient(circle at 90% 70%, rgba(8, 9, 48, 0.04) 0%, transparent 50%);

    /* UI Tokens */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: var(--rw-border);
    --glass-bg-dark: rgba(2, 4, 26, 0.03);
    
    --shadow-sm: var(--rw-shadow-sm);
    --shadow-md: var(--rw-shadow-md);
    --shadow-lg: var(--rw-shadow-lg);
    --shadow-premium: var(--rw-shadow-premium);
    
    --radius-sm: var(--rw-radius-sm);
    --radius-md: var(--rw-radius-md);
    --radius-lg: var(--rw-radius-lg);
    --radius-full: var(--rw-radius-full);
    
    --transition-smooth: var(--rw-transition-smooth);
}

/* Base Body Alignment for Details */
body {
    background-color: var(--color-slate-light);
    color: var(--color-slate-dark);
}

/* Immersive background glow lights */
.details-glow-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 700px;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 0;
}

/* ===== 2. CORE LAYOUT CONTAINERS ===== */
.realisation-detail-container,
.service-detail-container,
.resource-detail-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 2.5rem);
    z-index: 1;
}

/* Breadcrumbs with Translation Safety */
.realisation-breadcrumb,
.service-breadcrumb,
.resource-breadcrumb {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.realisation-breadcrumb a,
.service-breadcrumb a,
.resource-breadcrumb a {
    color: var(--color-obsidian);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.realisation-breadcrumb a:hover,
.service-breadcrumb a:hover,
.resource-breadcrumb a:hover {
    color: var(--color-gold-solid);
}

.breadcrumb-separator {
    color: #94a3b8;
    opacity: 0.7;
}

.realisation-breadcrumb .current,
.service-breadcrumb .current,
.resource-breadcrumb .current {
    color: var(--color-slate-dark);
    font-weight: 700;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Single-column centered canvas (No Sidebars) */
.content-wrapper,
.resource-content-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 920px;
    margin: 2rem auto 0;
    gap: 2.5rem;
    width: 100%;
}

/* Sidebar Container sections (Glassmorphism look) */
.sidebar-section,
.cta-card,
.related-services,
.resource-info-card,
.resource-tags-sidebar,
.similar-resources,
.category-info,
.resource-stats-card,
.newsletter-sidebar {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sidebar-section:hover,
.related-services:hover,
.resource-info-card:hover,
.resource-tags-sidebar:hover,
.similar-resources:hover,
.category-info:hover,
.resource-stats-card:hover,
.newsletter-sidebar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), 0 12px 24px rgba(8, 9, 48, 0.04);
    border-color: rgba(8, 9, 48, 0.15);
}

.sidebar-title,
.info-card-title,
.tags-title,
.similar-title,
.category-title,
.stats-title,
.newsletter-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-slate-dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-title i,
.info-card-title i,
.tags-title i,
.similar-title i,
.category-title i,
.stats-title i,
.newsletter-title i {
    color: var(--color-gold-solid);
}

/* Main Content Surface Panels */
.realisation-content,
.service-content,
.resource-content {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 5vw, 3rem);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ===== 3. COMMON UI COMPONENTS ===== */

/* Section Titles with gold accent */
.section-title {
    font-family: 'Century Schoolbook', 'Times New Roman', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-slate-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: var(--radius-full);
}

.section-title i {
    color: var(--color-gold-solid);
    font-size: 1.4rem;
}

/* Badges systems */
/* =========================================================
   BADGES & TAGS — PREMIUM REDESIGN
   ========================================================= */

.badges-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

/* ── Base badge ── */
.status-badge,
.category-badge,
.premium-featured-badge,
.resource-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Shimmer sweep on hover (all badges) */
.status-badge::after,
.category-badge::after,
.premium-featured-badge::after,
.resource-type-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    pointer-events: none;
}
.status-badge:hover::after,
.category-badge:hover::after,
.premium-featured-badge:hover::after,
.resource-type-badge:hover::after {
    transform: translateX(100%);
}

/* ── Status: Completed ── */
.status-badge.status-completed {
    background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(5,150,105,0.1) 100%);
    color: #059669;
    border: 1px solid rgba(16,185,129,0.3);
    box-shadow: 0 0 0 0 rgba(16,185,129,0);
}
.status-badge.status-completed:hover {
    background: linear-gradient(135deg, rgba(16,185,129,0.25) 0%, rgba(5,150,105,0.18) 100%);
    box-shadow: 0 0 12px rgba(16,185,129,0.25);
    transform: translateY(-1px);
}

/* ── Status: In Progress ── */
.status-badge.status-in_progress {
    background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(217,119,6,0.1) 100%);
    color: #d97706;
    border: 1px solid rgba(245,158,11,0.3);
}
.status-badge.status-in_progress:hover {
    background: linear-gradient(135deg, rgba(245,158,11,0.25) 0%, rgba(217,119,6,0.18) 100%);
    box-shadow: 0 0 12px rgba(245,158,11,0.25);
    transform: translateY(-1px);
}

/* ── Status: Planned ── */
.status-badge.status-planned {
    background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(79,70,229,0.1) 100%);
    color: #6366f1;
    border: 1px solid rgba(99,102,241,0.3);
}
.status-badge.status-planned:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(79,70,229,0.18) 100%);
    box-shadow: 0 0 12px rgba(99,102,241,0.25);
    transform: translateY(-1px);
}

/* ── Category Badge ── */
.category-badge {
    background: linear-gradient(
        135deg,
        var(--category-color-alpha, rgba(8,9,48,0.06)) 0%,
        rgba(255,255,255,0.04) 100%
    );
    color: var(--category-color, var(--color-obsidian));
    border: 1px solid var(--category-color, rgba(8,9,48,0.12));
    box-shadow: 0 2px 8px -2px var(--category-color-alpha, rgba(8,9,48,0.1));
}
.category-badge:hover {
    background: var(--category-color, var(--color-obsidian));
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px var(--category-color, rgba(8,9,48,0.35));
}

/* ── Premium / Featured Badge ── */
.premium-featured-badge {
    background: linear-gradient(135deg, #f7d138 0%, #e6b800 40%, #d4a017 80%, #c8960c 100%);
    color: #1a0f00 !important;
    border: 1px solid rgba(247,209,56,0.4);
    box-shadow:
        0 0 0 1px rgba(247,209,56,0.15),
        0 4px 14px -4px rgba(212,160,23,0.45),
        inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
.premium-featured-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 0 0 1px rgba(247,209,56,0.3),
        0 8px 22px -4px rgba(212,160,23,0.55),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

/* ── Resource Type Badge ── */
.resource-type-badge {
    background: rgba(8, 9, 48, 0.055);
    color: var(--color-obsidian);
    border: 1px solid rgba(8, 9, 48, 0.1);
    backdrop-filter: blur(4px);
}
.resource-type-badge:hover {
    background: var(--color-obsidian);
    color: #fff;
    transform: translateY(-1px);
}

/* ── Pulse Dot (live indicator) ── */
.status-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: currentColor;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}
.status-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -1px;
    background-color: currentColor;
    border-radius: 50%;
    animation: statusPulse 1.8s infinite ease-in-out;
}
@keyframes statusPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* ── Crown sparkle ── */
.gold-sparkle {
    animation: sparkle 1.6s infinite alternate;
}
@keyframes sparkle {
    0%   { filter: drop-shadow(0 0 1px rgba(255,215,0,0.5)); }
    100% { filter: drop-shadow(0 0 6px rgba(255,215,0,1)); }
}

/* Floating Actions Buttons */
.rw-btn {
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
}

.rw-btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white) !important;
    box-shadow: 0 4px 12px rgba(8, 9, 48, 0.15);
}

.rw-btn-gold {
    background: var(--gold-gradient);
    color: #12100e !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.rw-btn-outline {
    background: transparent;
    color: var(--color-obsidian) !important;
    border: 2px solid var(--color-obsidian);
}

.rw-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rw-btn-primary:hover {
    box-shadow: 0 6px 16px rgba(8, 9, 48, 0.25);
    opacity: 0.95;
}

.rw-btn-gold:hover {
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.rw-btn-outline:hover {
    background: var(--color-obsidian);
    color: var(--color-white) !important;
}

.btn-block {
    display: flex;
    width: 100%;
}

@keyframes pulseGold {
    0% { box-shadow: 0 0 0 0 rgba(247, 209, 56, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(247, 209, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 209, 56, 0); }
}

.animate-pulse-gold {
    animation: pulseGold 2s infinite;
}

/* Animations for scrolling reveals */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Related lists inside sidebars */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition-smooth);
    background-color: rgba(8, 9, 48, 0.02);
    border: 1px solid rgba(8, 9, 48, 0.04);
}

.related-item:hover {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
    border-color: var(--color-gold-solid);
}

.related-content h5 {
    margin: 0 0 0.2rem 0;
    color: var(--color-slate-dark);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.related-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
}

/* Related Icon container */
.related-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--related-color-alpha, rgba(8, 9, 48, 0.05));
    color: var(--related-color, var(--color-obsidian));
    border: 1px solid var(--related-color-border, rgba(8, 9, 48, 0.1));
    flex-shrink: 0;
    font-size: 1.15rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.related-item:hover .related-icon {
    transform: scale(1.1) rotate(5deg);
}

/* =========================================================
   TAGS & TECH ITEMS — PREMIUM REDESIGN
   ========================================================= */

.technologies-list,
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* ── TECH ITEM (specs panel, realisation) ── */
.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: rgba(8, 9, 48, 0.055);
    color: var(--color-obsidian);
    border: 1px solid rgba(8, 9, 48, 0.1);
    transition: var(--transition-smooth);
    cursor: default;
    position: relative;
    overflow: hidden;
}
.tech-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--color-obsidian);
    opacity: 0.3;
    border-radius: 0 2px 2px 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}
.tech-item:hover {
    background: var(--color-obsidian);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(8,9,48,0.3);
    border-color: transparent;
}
.tech-item:hover::before {
    width: 100%; opacity: 1;
}

/* ── TAG (hashtag pills, realisation) ── */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: rgba(14, 165, 233, 0.08);
    color: #0369a1;
    border: 1px solid rgba(14, 165, 233, 0.2);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.45s ease;
}
.tag:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(14,165,233,0.4);
    text-decoration: none;
}
.tag:hover::after {
    transform: translateX(100%);
}

/* =========================================================
   TECHNOLOGIES GRID — PREMIUM CARDS (Service Detail)
   ========================================================= */

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.tech-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(8, 9, 48, 0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    overflow: hidden;
    cursor: default;
    box-shadow: 0 2px 10px -4px rgba(8, 9, 48, 0.06);
}

/* Colored left accent bar driven by --tech-color */
.tech-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--tech-color, #080930);
    border-radius: 0 2px 2px 0;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.7;
}

/* Shimmer sweep */
.tech-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.45) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--tech-color, rgba(8,9,48,0.2));
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 8px 24px -8px var(--tech-color, rgba(8,9,48,0.2)),
        0 2px 10px -4px rgba(0,0,0,0.05);
}

.tech-card:hover::before {
    width: 5px;
    opacity: 1;
}

.tech-card:hover::after {
    transform: translateX(100%);
}

/* Icon bubble */
.tech-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--tech-color, #080930) 10%, transparent);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.tech-card:hover .tech-icon {
    background: color-mix(in srgb, var(--tech-color, #080930) 18%, transparent);
    transform: scale(1.1) rotate(5deg);
}

/* Text content */
.tech-content {
    min-width: 0;
    flex: 1;
}

.tech-content h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-obsidian);
    margin: 0 0 0.18rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-level-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Fallback: use @supports for browsers without color-mix */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
    .tech-icon {
        background: rgba(8, 9, 48, 0.07);
    }
    .tech-card:hover .tech-icon {
        background: rgba(8, 9, 48, 0.13);
    }
}

/* =========================================================
   TECH-CARD PREMIUM EXTRAS — Glow dot + entrance
   ========================================================= */

/* Animated glow dot in top-right corner of each tech-card */
.tech-glow-dot {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tech-color, #080930);
    opacity: 0.5;
    box-shadow: 0 0 0 0 var(--tech-color, #080930);
    animation: techDotPulse 2.5s infinite ease-in-out;
    z-index: 2;
}
@keyframes techDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tech-color, #080930) 40%, transparent); opacity: 0.5; }
    50%       { box-shadow: 0 0 0 7px color-mix(in srgb, var(--tech-color, #080930) 0%, transparent); opacity: 1; }
}

/* Reveal animation for tech-card (staggered by JS) */
.tech-card.reveal-item {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
}
.tech-card.reveal-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================================
   TECH-PILL — Stack Technique (Realisation Specs Panel)
   Premium colored pill with icon + accent dot
   ========================================================= */

.tech-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.85rem 0.32rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: none;
    color: color-mix(in srgb, var(--tech-color, #080930) 80%, #1e293b);
    background: color-mix(in srgb, var(--tech-color, #080930) 9%, rgba(255,255,255,0.9));
    border: 1px solid color-mix(in srgb, var(--tech-color, #080930) 22%, transparent);
    box-shadow: 0 1px 4px -1px color-mix(in srgb, var(--tech-color, #080930) 15%, transparent);
    transition: var(--transition-smooth);
    cursor: default;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

/* Shimmer on hover */
.tech-pill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.tech-pill:hover {
    background: color-mix(in srgb, var(--tech-color, #080930) 90%, #000);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--tech-color, #080930) 40%, transparent);
}
.tech-pill:hover::after {
    transform: translateX(100%);
}

/* Small colored dot indicator */
.tech-pill-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tech-color, #080930);
    opacity: 0.75;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--tech-color, #080930) 20%, transparent);
}
.tech-pill:hover .tech-pill-dot {
    opacity: 1;
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* Icon inside pill */
.tech-pill i {
    font-size: 0.8rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}
.tech-pill:hover i {
    opacity: 1;
}

/* @supports fallback for color-mix */
@supports not (color: color-mix(in srgb, red 10%, transparent)) {
    .tech-pill {
        background: rgba(8, 9, 48, 0.07);
        color: #080930;
        border: 1px solid rgba(8, 9, 48, 0.15);
    }
    .tech-pill:hover {
        background: #080930;
        color: #fff;
    }
    .tech-glow-dot {
        box-shadow: none;
        animation: none;
    }
}

/* LightGallery Custom Overlays */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
    cursor: zoom-in;
    border: 1px solid var(--color-slate-border);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 9, 48, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-hover-overlay i {
    color: var(--color-white);
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-hover-overlay i {
    transform: scale(1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(8, 9, 48, 0.85), transparent);
    color: var(--color-white);
    padding: 1.5rem 1rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
}

/* Testimonial slider layouts */
.testimonials-slider {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-card {
    background-color: rgba(8, 9, 48, 0.02);
    border: 1px solid var(--color-slate-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-card.featured {
    background: linear-gradient(135deg, rgba(247, 209, 56, 0.03) 0%, var(--color-white) 100%);
    border: 2px solid var(--color-gold-solid);
    box-shadow: 0 10px 20px rgba(247, 209, 56, 0.04);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-white);
    box-shadow: var(--shadow-sm);
}

.client-avatar-default {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-obsidian);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.client-details h4 {
    margin: 0 0 0.2rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-slate-dark);
}

.client-position {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-rating i {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.testimonial-rating i.filled {
    color: #FFD700;
}

.testimonial-content p {
    font-style: italic;
    color: #334155;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

.testimonial-date {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 0.75rem;
}

/* Statistics Grid wrappers */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.project-stats .stat-card {
    background: var(--color-white);
    border: 1px solid var(--color-slate-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.project-stats .stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold-solid);
    box-shadow: var(--shadow-md);
}

.project-stats .stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(8, 9, 48, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-obsidian);
    flex-shrink: 0;
}

.project-stats .stat-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.2rem 0;
    color: var(--color-slate-dark);
}

.project-stats .stat-content p {
    color: #64748b;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}


/* ===== 4. CASE STUDIES (REALISATIONS) SPECIFIC ===== */

/* Glassmorphism Header Hero Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.detail-hero-section {
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero-overlay-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(8, 9, 48, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.75;
}

.detail-hero-content-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
}

.hero-main-title {
    font-family: 'Century Schoolbook', 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-slate-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-excerpt-text {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Hero metadata statistics boxes */
.quick-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    background: rgba(8, 9, 48, 0.02);
    border: 1px solid rgba(8, 9, 48, 0.05);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quick-stat-box .stat-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.quick-stat-box .stat-lbl i {
    color: var(--color-gold-solid);
}

.quick-stat-box .stat-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-slate-dark);
}

.action-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Macbook Mockup Frame (CSS-only device mockup) */
.macbook-frame-mockup {
    width: 100%;
    max-width: 580px;
    background: #1e1e1e;
    border-radius: 12px 12px 0 0;
    border: 8px solid #2d3748;
    border-bottom: none;
    box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(8, 9, 48, 0.2);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.mockup-header-bar {
    background: #1a202c;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.mockup-header-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-header-bar .dot.red { background: #ef4444; }
.mockup-header-bar .dot.yellow { background: #f59e0b; }
.mockup-header-bar .dot.green { background: #10b981; }

.mockup-screen-content {
    position: relative;
    aspect-ratio: 16/10;
    background: #090d16;
    overflow: hidden;
}

.img-mockup {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.macbook-frame-mockup:hover .img-mockup {
    transform: scale(1.05);
}

.mockup-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #475569;
    gap: 0.75rem;
    background: radial-gradient(circle, #0f172a 0%, #020617 100%);
}

.mockup-placeholder i {
    font-size: 2.5rem;
    color: var(--color-gold-light);
    opacity: 0.8;
}

.mockup-placeholder span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Circular SVG Progress status indicator */
.circular-progress-indicator {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto;
}

.circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bg-circle {
    fill: none;
    stroke: rgba(8, 9, 48, 0.05);
    stroke-width: 8;
}

.progress-circle {
    fill: none;
    stroke: var(--color-gold-solid);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.progress-value .percent {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-slate-dark);
    line-height: 1;
}

.progress-value .lbl {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.15rem;
}

/* Project links sidebar list */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-item {
    padding: 0.7rem 1.1rem;
    background-color: rgba(8, 9, 48, 0.02);
    color: var(--color-slate-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(8, 9, 48, 0.04);
}

.link-item:hover {
    background-color: var(--color-obsidian);
    color: var(--color-white) !important;
    transform: translateX(5px);
}

.link-item i {
    color: var(--color-gold-solid);
}

.link-item:hover i {
    color: var(--color-white);
}

/* Immersive Bottom Page Navigation cards */
.detail-nav-footer {
    border-top: 1px solid var(--color-slate-border);
    margin-top: 4rem;
    padding-top: 2rem;
}

.footer-nav-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: var(--transition-smooth);
    max-width: 320px;
    flex-grow: 1;
    box-shadow: var(--shadow-sm);
}

.footer-nav-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold-solid);
    box-shadow: var(--shadow-md);
}

.footer-nav-card .nav-direction {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav-card:hover .nav-direction {
    color: var(--color-gold-solid);
}

.footer-nav-card .nav-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-slate-dark);
}


/* ===== 5. SERVICES SPECIFIC ===== */

/* Glowing service hero icon visual */
.service-icon-display {
    width: clamp(90px, 15vw, 120px);
    height: clamp(90px, 15vw, 120px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--color-white);
    box-shadow: var(--shadow-premium);
    animation: floatIcon 5s ease-in-out infinite alternate;
    margin: 0 auto;
}

@keyframes floatIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.service-hero-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    aspect-ratio: 16/9;
}

/* Service stats banner styling */
.stats-banner {
    background: var(--color-obsidian);
    background-image: var(--gradient-primary);
    padding: 1.75rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    color: var(--color-white);
}

.stats-banner .stats-grid {
    padding: 0 1rem;
}

.stats-banner .stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stats-banner .stat-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-gold-light);
}

.stats-banner .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
}

.stats-banner .stat-suffix {
    color: var(--color-gold-light);
    font-size: 1.1rem;
}

.stats-banner .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Service deliverables cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background-color: rgba(8, 9, 48, 0.02);
    border: 1px solid var(--color-slate-border);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background-color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-gold-solid);
}

.feature-icon {
    width: 38px;
    height: 38px;
    background-color: var(--color-white);
    border-radius: 50%;
    color: var(--color-gold-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.feature-content h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-slate-dark);
}

/* Pricing cards grid dashboard */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.package-card {
    background: var(--color-white);
    border: 1px solid var(--color-slate-border);
    border-radius: var(--radius-md);
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 20px 45px rgba(8, 9, 48, 0.06);
    border-color: var(--color-gold-solid);
}

.package-card.popular {
    border: 2px solid var(--color-gold-solid);
    background: linear-gradient(180deg, var(--color-white) 0%, rgba(247, 209, 56, 0.01) 100%);
    box-shadow: 0 10px 30px rgba(8, 9, 48, 0.04);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: #0c0a09;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.package-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.package-type.basic { background-color: #f1f5f9; color: #475569; }
.package-type.pro { background-color: #dbeafe; color: #1e40af; }
.package-type.custom { background-color: #fef3c7; color: #92400e; }

.package-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-slate-dark);
    margin-bottom: 1rem;
}

.package-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.2rem;
    color: var(--color-obsidian);
}

.package-price .price {
    font-size: 2.2rem;
    font-weight: 800;
}

.package-price .currency {
    font-size: 1.1rem;
    font-weight: 700;
}

.package-price .duration {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.package-description {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.package-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.package-features h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-slate-dark);
    margin-bottom: 1rem;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.4;
}

.package-features li i {
    font-size: 0.85rem;
    margin-top: 0.2rem;
}


/* ===== 6. RESOURCE / INSIGHT SPECIFIC ===== */

.resource-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-slate-border);
    margin-bottom: 2.5rem;
}

.resource-title {
    font-family: 'Century Schoolbook', 'Times New Roman', serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-slate-dark);
    line-height: 1.25;
    margin: 0.75rem 0 1.25rem;
}

.resource-excerpt {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 850px;
}

/* Author block metadata details */
.resource-author-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(8, 9, 48, 0.08);
}

.author-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--color-gold-solid);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.author-avatar-default {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--color-obsidian);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.author-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-slate-dark);
}

.publish-date {
    font-size: 0.8rem;
    color: #64748b;
}

.updated-date {
    opacity: 0.85;
    font-style: italic;
    margin-left: 0.5rem;
}

/* Horizontal metadata stats indicators */
.resource-stats-header {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.resource-stats-header .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(8, 9, 48, 0.02);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(8, 9, 48, 0.04);
}

.resource-stats-header .stat-item i {
    color: var(--color-gold-solid);
    font-size: 0.95rem;
}

/* Cover visual banner styling */
.resource-cover-image {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(8, 9, 48, 0.08);
}

.resource-cover-image .cover-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

/* Information table lists sidebar */
.info-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(8, 9, 48, 0.05);
}

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

.info-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-slate-dark);
}

.info-value.beginner, .info-value.debutant { color: #10b981; }
.info-value.intermediate, .info-value.intermediaire { color: #f59e0b; }
.info-value.advanced, .info-value.avance { color: #3b82f6; }
.info-value.expert { color: #8b5cf6; }

/* Interactive Like & Share sidebars actions */
.resource-actions-sidebar .download-btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.like-btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.share-btn {
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-slate-border);
    background: var(--color-white);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.share-btn[data-platform="twitter"]:hover { background: #1da1f2; border-color: #1da1f2; color: var(--color-white); }
.share-btn[data-platform="linkedin"]:hover { background: #0077b5; border-color: #0077b5; color: var(--color-white); }
.share-btn[data-platform="facebook"]:hover { background: #1877f2; border-color: #1877f2; color: var(--color-white); }
.share-btn[data-platform="copy"]:hover { background: var(--color-obsidian); border-color: var(--color-obsidian); color: var(--color-white); }

/* Newsletter subscription sidebar styling */
.newsletter-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-slate-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--color-white);
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--color-obsidian);
    outline: none;
}

.newsletter-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(8, 9, 48, 0.15);
}

/* Comments thread system styling */
.resource-comments {
    margin-top: 4rem;
    border-top: 1px solid var(--color-slate-border);
    padding-top: 3rem;
}

.comments-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-slate-dark);
    margin-bottom: 2rem;
}

.comments-count {
    color: var(--color-gold-solid);
    font-weight: 600;
}

.comment-form, .reply-form {
    background-color: rgba(8, 9, 48, 0.02);
    border: 1px solid var(--color-slate-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.comment-textarea, .reply-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-slate-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--color-white);
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
}

.comment-textarea:focus, .reply-textarea:focus {
    border-color: var(--color-obsidian);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-comment-submit, .btn-reply-submit {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-reply-cancel {
    background: transparent;
    color: #64748b;
    border: 1px solid var(--color-slate-border);
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

.btn-comment-submit:hover, .btn-reply-submit:hover {
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comment-item {
    background: var(--color-white);
    border: 1px solid var(--color-slate-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(8,9,48,0.1);
}

.comment-avatar-default {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-obsidian);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
}

.comment-author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-slate-dark);
}

.comment-date {
    font-size: 0.75rem;
    color: #64748b;
}

.comment-content {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-reply-btn, .comment-delete-btn {
    background: transparent;
    border: none;
    color: var(--color-obsidian);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    transition: color 0.2s ease;
}

.comment-delete-btn {
    color: #ef4444;
}

.comment-reply-btn:hover { color: var(--color-gold-solid); }
.comment-delete-btn:hover { color: #b91c1c; }

/* Sub replies threads indentation */
.comment-reply {
    margin-left: 2.5rem;
    margin-top: 1.25rem;
    background-color: rgba(8, 9, 48, 0.02);
    border-left: 3px solid var(--color-gold-solid);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
}

.reply-form {
    margin-left: 2.5rem;
    margin-top: 1.25rem;
}

/* Toast Notifications styles */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
    animation: slideIn 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.toast-notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-left: 4px solid #34d399;
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-left: 4px solid #f87171;
}

.toast-notification.slide-out {
    animation: slideOut 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}


/* ===== 7. CKEDITOR RICH-TEXT TYPOGRAPHY STYLING ===== */
.rich-text,
.resource-main-content,
.description-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #1e293b;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Headers style nested inside CKEditor HTML */
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4, .rich-text h5, .rich-text h6,
.resource-main-content h1, .resource-main-content h2, .resource-main-content h3, 
.resource-main-content h4, .resource-main-content h5, .resource-main-content h6 {
    font-family: 'Century Schoolbook', 'Times New Roman', serif;
    font-weight: 700;
    color: var(--color-slate-dark);
    margin-top: 2.2rem;
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.rich-text h1, .resource-main-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--color-slate-border);
    padding-bottom: 0.5rem;
}

.rich-text h2, .resource-main-content h2 {
    font-size: 1.5rem;
    border-left: 4px solid var(--color-gold-solid);
    padding-left: 0.75rem;
}

.rich-text h3, .resource-main-content h3 { font-size: 1.25rem; color: var(--color-obsidian); }
.rich-text h4, .resource-main-content h4 { font-size: 1.1rem; color: #475569; }

.rich-text p, .resource-main-content p {
    margin-bottom: 1.25rem;
}

/* Code highlight */
.rich-text code, .resource-main-content code {
    background: #0f172a;
    color: #f7d138;
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
}

.rich-text pre, .resource-main-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.rich-text pre code, .resource-main-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
    font-weight: normal;
}

/* Bullet list */
.rich-text ul, .rich-text ol,
.resource-main-content ul, .resource-main-content ol {
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}

.rich-text ul li, .rich-text ol li,
.resource-main-content ul li, .resource-main-content ol li {
    margin-bottom: 0.5rem;
}

.rich-text ul li::marker, .resource-main-content ul li::marker {
    color: var(--color-gold-solid);
    font-size: 1.2rem;
}

.rich-text ol li::marker, .resource-main-content ol li::marker {
    color: var(--color-obsidian);
    font-weight: 700;
}

/* Blockquotes */
.rich-text blockquote, .resource-main-content blockquote {
    border-left: 4px solid var(--color-gold-solid);
    background: rgba(247, 209, 56, 0.04);
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Media styling inside text */
.rich-text img, .resource-main-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(8, 9, 48, 0.05);
}

.rich-text table, .resource-main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-slate-border);
}

.rich-text table th, .resource-main-content table th {
    background: var(--color-obsidian);
    background-image: var(--gradient-primary);
    color: var(--color-white);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
}

.rich-text table td, .resource-main-content table td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(8, 9, 48, 0.05);
    font-size: 0.95rem;
    color: var(--color-slate-dark);
}

.rich-text table tr:nth-child(even) td, 
.resource-main-content table tr:nth-child(even) td {
    background-color: rgba(8, 9, 48, 0.01);
}

.rich-text table tr:hover td,
.resource-main-content table tr:hover td {
    background-color: rgba(247, 209, 56, 0.03);
}


/* ===== 8. RESPONSIVE MULTI-PLATFORM ADAPTATIONS ===== */

/* Horizontal widgets and controls (No Sidebars) */
.resource-actions-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.resource-actions-bar .left-actions,
.resource-actions-bar .right-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Horizontal specifications grid */
.specs-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.specs-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.specs-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.specs-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-slate-dark);
}

.related-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-top: 1rem;
}

.cta-horizontal-banner {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.cta-horizontal-banner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), 0 12px 24px rgba(8, 9, 48, 0.04);
    border-color: rgba(8, 9, 48, 0.15);
}

.newsletter-horizontal {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    max-width: 650px;
    margin: 3rem auto;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.newsletter-horizontal .newsletter-form {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.newsletter-horizontal .newsletter-input {
    flex-grow: 1;
    margin-bottom: 0;
}

.newsletter-horizontal .newsletter-btn {
    width: auto;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .newsletter-horizontal .newsletter-form {
        flex-direction: column;
    }
    .newsletter-horizontal .newsletter-btn {
        width: 100%;
    }
}

/* Small tablets / Landscape phones */
@media (max-width: 768px) {
    .realisation-hero .hero-content,
    .service-hero .hero-content,
    .detail-hero-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text-block {
        order: 2;
    }

    .hero-visual-block,
    .hero-visual {
        order: 1;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-cta,
    .action-buttons-wrapper {
        justify-content: center;
    }

    .realisation-badges,
    .service-badges,
    .badges-flex-container {
        justify-content: center;
    }
    
    .comment-reply {
        margin-left: 1.25rem;
    }

    .reply-form {
        margin-left: 1.25rem;
    }

    /* Technologies grid — 2 colonnes sur tablette */
    .technologies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Tech pills wrap — légèrement plus grand pour le touch */
    .tech-pills-wrap {
        gap: 0.45rem;
    }
    .tech-pill {
        font-size: 0.72rem;
        padding: 0.3rem 0.75rem 0.3rem 0.6rem;
    }

    /* Badges — taille légèrement réduite mobile */
    .status-badge,
    .category-badge,
    .premium-featured-badge,
    .resource-type-badge {
        font-size: 0.68rem;
        padding: 0.32rem 0.85rem;
    }
}

/* Portrait mobile devices (320px - 480px) */
@media (max-width: 480px) {
    .realisation-detail-container,
    .service-detail-container,
    .resource-detail-container {
        padding: 1.25rem 0.5rem;
        border-radius: var(--radius-md);
    }

    .realisation-content,
    .service-content,
    .resource-content {
        padding: 1.5rem 1rem;
    }

    .rw-btn {
        width: 100%;
    }

    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-banner .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .stats-banner .stat-icon {
        margin: 0 auto;
    }

    /* Technologies grid — 1 colonne sur mobile portrait */
    .technologies-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    /* Tech-card full-width mobile */
    .tech-card {
        padding: 0.75rem 1rem;
    }
    .tech-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    /* Pills wrappent proprement sur petit écran */
    .tech-pills-wrap {
        gap: 0.4rem;
    }
    .tech-pill {
        font-size: 0.7rem;
    }
}

/* ===== 9. PRINT LAYOUT OVERRIDES ===== */
@media print {
    .realisation-sidebar,
    .service-sidebar,
    .resource-sidebar,
    .resource-sidebar-right,
    .action-buttons-wrapper,
    .share-buttons,
    .like-btn,
    .resource-comments,
    .newsletter-sidebar,
    .breadcrumb-separator,
    .realisation-breadcrumb,
    .service-breadcrumb,
    .resource-breadcrumb,
    .detail-nav-footer {
        display: none !important;
    }

    .content-wrapper,
    .resource-content-wrapper {
        grid-template-columns: 1fr !important;
    }

    .realisation-content,
    .service-content,
    .resource-content {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    body {
        color: #000000 !important;
        background: #ffffff !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000000 !important;
    }
}
