/* 
   DIGITA - Système de Design Premium (Aperçu)
   Couleurs: Or (#D4AF37), Bleu (#2563eb), Noir (#050505)
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.5);
    --blue: #2563eb;
    --blue-glow: rgba(37, 99, 235, 0.4);
    --dark: #050505;
    --dark-alt: #0a0f1a;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85); /* Increased contrast */
    --sidebar-width: 280px;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --border-color: rgba(212, 175, 55, 0.2);
}

/* Global text override: body default is white, Bootstrap text-muted is overridden */
body {
    background-color: var(--dark);
    color: var(--text-white);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
}

/* Override Bootstrap text-muted for dark theme */
.text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Service cards and problem cards text */
.service-card-premium p,
.problem-card p,
.timeline-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.75;
}

/* --- Layout Adjustment for Sidebar --- */
.premium-layout-wrapper {
    display: flex;
    min-height: 100vh;
}

main.premium-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

@media (max-width: 991px) {
    main.premium-content {
        margin-left: 0;
        width: 100%;
    }
}

/* --- Hero Section Premium --- */
.hero-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 20%);
}

.hero-premium-content {
    max-width: 900px;
    z-index: 2;
}

.hero-premium-pretitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-premium-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards 0.2s;
    opacity: 0;
}

.title-reveal {
    background: linear-gradient(to right, #fff 20%, var(--gold) 40%, var(--blue) 60%, #fff 80%);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

.hero-premium-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    animation: fadeInUp 1s ease forwards 0.4s;
    opacity: 0;
}

/* --- Buttons Premium --- */
.btn-premium {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-premium-gold {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 0 20px var(--gold-glow);
}

.btn-premium-blue {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%); /* Sky Blue to Royal */
    color: white;
    box-shadow: 0 0 20px var(--blue-glow);
    border: none;
}

.btn-premium-gold:hover, .btn-premium-blue:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-gradient-blue {
    background: linear-gradient(to bottom, #87CEEB, #2563eb); /* Adjusting bottom color to be more visible than deep black */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gold {
    color: var(--gold) !important;
}

/* --- Canvas Particules Overlay --- */
.particles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* --- Services Grid Premium --- */
.services-premium {
    padding: 100px 5%;
}

.service-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.8rem;
    border-radius: 20px;
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

.service-card-premium:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
    display: block;
}

.service-card-premium h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}

/* --- Service Details --- */
.service-feature-list {
    margin-top: 1.2rem;
    padding-left: 0;
    list-style: none;
}

.service-feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.service-feature-list li i {
    color: var(--gold);
    margin-right: 0.6rem;
    font-size: 1rem;
}

/* --- More Glow Effects --- */
.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glow-card:hover::after {
    opacity: 0.3;
}

/* --- Problem Section --- */
.problems-premium {
    padding: 100px 5%;
    background: linear-gradient(to bottom, var(--dark), var(--dark-alt));
}

.problem-card {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid #ff4d4d; /* Red highlight for problem */
    padding: 2rem;
    border-radius: 0 16px 16px 0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.problem-card:hover {
    background: rgba(255, 77, 77, 0.1);
    transform: translateX(10px);
}

.problem-card h4 {
    color: #ff4d4d;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* --- Stats Section --- */
.stats-premium {
    padding: 80px 5%;
    background: var(--dark-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-heading);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Method / Timeline Section --- */
.method-premium {
    padding: 100px 5%;
}

.method-premium .container {
    padding: 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    width: 50%;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 40px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    right: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold-glow);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.1);
    position: absolute;
    top: -20px;
    right: 40px;
}

.timeline-item:nth-child(even) .timeline-number {
    left: 40px;
}

.timeline-content h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

/* --- Premium Background Effects --- */
.bg-premium-grid {
    position: relative;
    background-color: var(--dark);
    z-index: 1; /* Establishes stacking context */
}
.bg-premium-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(212,175,55,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212,175,55,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

.bg-premium-grid.animated::before {
    animation: gridMove 30s linear infinite;
}

.bg-premium-dark-blue {
    background: linear-gradient(135deg, #050505 0%, #030a17 50%, #050505 100%);
    position: relative;
    z-index: 1;
}

.bg-premium-dark-blue::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.bg-premium-glow {
    position: relative;
    overflow: hidden;
    background-color: var(--dark);
    z-index: 1;
}
.bg-premium-glow::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}
.bg-premium-glow::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Ensure containers are above the background effects */
.bg-premium-grid > .container,
.bg-premium-dark-blue > .container,
.bg-premium-glow > .container {
    position: relative;
    z-index: 2;
}
