/* ====================================
   Variables et Reset
   ==================================== */
:root {
    --black: rgb(67, 80, 95);
    --dark-gray: rgb(77, 90, 105);
    --medium-gray: rgb(87, 100, 115);
    --gray: #666666;
    --light-gray: #cccccc;
    --lighter-gray: #e5e5e5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   Header et Navigation
   ==================================== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--black);
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}

.logo-text strong {
    font-weight: 900;
}

.logo a {
    text-decoration: none;
}

.logo-text:hover {
    transform: scale(1.05);
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--medium-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--black);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--black);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 3px 0;
    transition: var(--transition);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    margin-top: 80px;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--lighter-gray) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--black);
    line-height: 1.2;
}

.code-bracket {
    color: var(--gray);
    font-family: 'Courier New', monospace;
}

/* Typewriter Effect */
.typewriter-cursor {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.highlight {
    display: block;
    background: linear-gradient(to right, var(--black), var(--medium-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

/* Hero Features Cards */
.hero-features {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.hero-feature-card {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.hero-feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
    color: var(--white);
}

.hero-feature-card h3,
.hero-feature-card .feature-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-feature-card .feature-title {
    margin-top: 0;
}

.hero-feature-card p {
    color: var(--light-gray);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.hero-feature-card p.feature-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ====================================
   Buttons
   ==================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--medium-gray);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-secondary:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ====================================
   Services Section
   ==================================== */
.services-preview {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--black);
    margin: 1rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border: 2px solid var(--lighter-gray);
    padding: 2.5rem;
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    border-color: var(--black);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
    min-height: 2em;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.link-arrow {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.link-arrow:hover {
    transform: translateX(5px);
    display: inline-block;
}

/* ====================================
   Why Us Section
   ==================================== */
.why-us {
    padding: 100px 0;
    background-color: var(--dark-gray);
    color: var(--white);
}

.why-us .section-title {
    color: var(--white);
}

.why-us .section-title::after {
    background-color: var(--white);
}

.why-us .philosophy-item h3 {
    color: var(--white);
}

.why-us .philosophy-item p {
    color: rgba(255, 255, 255, 0.85);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.feature-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.feature-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray);
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--light-gray);
}

.stats-box {
    background-color: var(--black);
    padding: 3rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border: 2px solid var(--medium-gray);
}

/* Snake Game Styles */
.snake-game-container {
    background-color: var(--black);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--medium-gray);
    text-align: center;
}

.snake-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.snake-score {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-align: center;
    width: 100%;
}

.snake-score span {
    color: #4ECDC4;
}

/* Start Screen */
.snake-start-screen {
    width: 300px;
    height: 300px;
    background: #1a1a1a;
    border: 2px solid var(--medium-gray);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.btn-snake-start {
    background: linear-gradient(135deg, #4ECDC4, #45B7D1);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.btn-snake-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.5);
    background: linear-gradient(135deg, #45B7D1, #4ECDC4);
}

#snakeCanvas {
    background-color: #1a1a1a;
    border: 2px solid var(--medium-gray);
    border-radius: 5px;
    display: block;
    margin: 0 auto 1rem;
    max-width: 100%;
    height: auto;
}

.snake-controls {
    margin-top: 1rem;
}

.snake-controls p {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.btn-snake-restart {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.btn-snake-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #F7931E, #FF6B35);
}

/* Mobile Controls - D-Pad */
.snake-mobile-controls {
    display: none; /* Hidden by default on desktop */
    justify-content: center;
    margin: 0.5rem 0;
}

.d-pad {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 3px; /* Reduced from 5px to 3px */
    max-width: 120px; /* Reduced from 150px to 120px */
}

.d-pad-middle {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px; /* Reduced from 5px to 3px */
}

.d-pad-btn {
    background-color: var(--medium-gray);
    color: var(--white);
    border: 2px solid var(--light-gray);
    padding: 10px; /* Reduced from 15px to 10px */
    font-size: 1.2rem; /* Reduced from 1.5rem to 1.2rem */
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.d-pad-btn:active {
    background-color: var(--primary-color);
    transform: scale(0.95);
}

.d-pad-up {
    grid-column: 1 / -1;
    justify-self: center;
    width: 40px; /* Reduced from 50px to 40px */
}

.d-pad-down {
    grid-column: 1 / -1;
    justify-self: center;
    width: 40px; /* Reduced from 50px to 40px */
}

.d-pad-left {
    grid-column: 1;
}

.d-pad-right {
    grid-column: 3;
}

/* Show mobile controls on tablets and mobile only */
@media (max-width: 768px) {
    .snake-mobile-controls {
        display: flex;
    }
    
    .desktop-hint {
        font-size: 0.8rem !important;
    }
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    display: block;
    font-family: 'Courier New', monospace;
}

.stat-percent {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
}

.stat-label {
    display: block;
    color: var(--light-gray);
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* ====================================
   Technologies Section
   ==================================== */
.technologies-preview,.location-section {
    padding: 100px 0;
    background-color: var(--lighter-gray);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.tech-tag {
    background-color: var(--white);
    color: var(--black);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--black);
    transition: var(--transition);
    cursor: default;
}

.tech-tag:hover {
    background-color: var(--black);
    color: var(--white);
    transform: scale(1.1);
}

.tech-cta {
    text-align: center;
}

/* ====================================
   AI CTA Section
   ==================================== */
.ai-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.ai-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: moveGrid 15s linear infinite;
}

.ai-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.ai-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0);
    }
}

.ai-cta-badge svg {
    width: 20px;
    height: 20px;
}

.ai-cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 900;
}

.ai-cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-ai {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--white);
    color: #667eea;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-ai:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
}

.btn-ai svg {
    transition: transform 0.3s ease;
}

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

/* ====================================
   CTA Section
   ==================================== */
.cta-section {
    padding: 100px 0;
    background-color: var(--black);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--black);
}

.cta-section .btn-primary:hover {
    background-color: var(--light-gray);
}

/* ====================================
   Footer
   ==================================== */
.main-footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.social-link {
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
    color: white;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

.slide-in-delay {
    animation: slideIn 0.8s ease-out 0.2s both;
}

.slide-in-delay-2 {
    animation: slideIn 0.8s ease-out 0.4s both;
}

/* Typing Animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.typing-animation {
    overflow: hidden;
    border-right: 3px solid var(--white);
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;

}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .why-us-content {
        grid-template-columns: 1fr;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero-feature-card {
        padding: 1.2rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 60px 0;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }

    .services-preview,
    .why-us,
    .technologies-preview,
    .cta-section {
        padding: 60px 0;
    }

    .btn {
        padding: 0.8rem 1.5rem;
    }
}

/* ====================================
   Page Hero (Pages secondaires)
   ==================================== */
.page-hero {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Shooting effect animation */
@keyframes shootEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(2);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Balle rebondissante */
.bouncing-ball {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.2s ease;
    user-select: none;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--light-gray);
    position: relative;
    z-index: 2;
}

/* ====================================
   Services Page
   ==================================== */
.services-detailed {
    padding: 100px 0 0px 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 3rem;
    border-radius: 10px;
    transition: var(--transition);
}

.service-detail:hover {
    background-color: var(--lighter-gray);
}

.service-detail:hover .service-number {
    color: var(--medium-gray);
}

.service-detail.reverse {
    direction: ltr;
}

.service-detail.reverse .service-detail-content {
    order: 2;
}

.service-detail.reverse .service-detail-visual {
    order: 1;
}

.service-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--lighter-gray);
    font-family: 'Courier New', monospace;
    display: block;
    margin-bottom: 1rem;
}

.service-detail h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.service-detail p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.service-features li {
    color: var(--medium-gray);
    font-weight: 500;
}

/* Service Illustration Cards */
.service-illustration {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.illustration-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.illustration-icon svg {
    width: 50px;
    height: 50px;
    stroke: var(--white);
    color: var(--white);
}

.service-illustration h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-illustration p {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Process Section - Timeline Vertical */
.process-section {
    padding: 100px 0;
    background-color: var(--lighter-gray);
}

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

.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: linear-gradient(180deg, var(--black) 0%, var(--medium-gray) 100%);
}

.process-step-vertical {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.process-step-vertical:nth-child(1) { animation-delay: 0.1s; }
.process-step-vertical:nth-child(2) { animation-delay: 0.2s; }
.process-step-vertical:nth-child(3) { animation-delay: 0.3s; }
.process-step-vertical:nth-child(4) { animation-delay: 0.4s; }
.process-step-vertical:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-step-circle {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    border: 4px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.process-step-vertical:hover .process-step-circle {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.process-step-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    font-family: 'Courier New', monospace;
}

.process-step-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--black);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.process-step-vertical:hover .process-step-content {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-left-color: var(--dark-gray);
}

.process-step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--black);
    font-weight: 700;
}

.process-step-content p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Process Timeline */
@media (max-width: 768px) {
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step-circle {
        width: 60px;
        height: 60px;
    }
    
    .process-step-num {
        font-size: 1.2rem;
    }
    
    .process-step-content {
        padding: 1.5rem;
    }
    
    .process-step-content h3 {
        font-size: 1.2rem;
    }
}

/* Old styles kept for compatibility */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.process-step {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.process-step-number {
    width: 60px;
    height: 60px;
    background-color: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
    font-family: 'Courier New', monospace;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.process-arrow {
    font-size: 2rem;
    color: var(--gray);
}

/* ====================================
   Clients Page
   ==================================== */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    border: 2px solid var(--medium-gray);
    padding: 2.5rem;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-quote {
    font-size: 4rem;
    color: var(--medium-gray);
    line-height: 1;
    font-family: Georgia, serif;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--light-gray);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--lighter-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    border: 2px solid var(--medium-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.portfolio-image {
    height: 200px;
    background-color: var(--dark-gray);
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

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

.portfolio-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-gray), var(--black));
}

.portfolio-icon {
    font-size: 4rem;
    color: var(--white);
    font-family: 'Courier New', monospace;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.portfolio-content p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.tag {
    background-color: var(--medium-gray);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Clients Stats */
.clients-stats {
    padding: 100px 0;
    background-color: var(--black);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.stat-box:hover {
    border-color: var(--white);
    transform: scale(1.05);
}

/* ====================================
   Technology Page
   ==================================== */
.tech-stack-section {
    padding: 0 0 100px 0;
}

.tech-stack-section.content-section-alt {
    padding: 100px 0;
}

/* Tech Stack Grid - Modern Bento Box Layout */
.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-stack-card {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    border: 2px solid var(--medium-gray);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-stack-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.tech-stack-card:hover::before {
    opacity: 1;
}

.card-large {
    grid-column: span 2;
}

.card-wide {
    grid-column: span 4;
}

.card-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-orange {
    background: #FF8C35;
}

.badge-green {
    background: #4ECDC4;
}

.badge-blue {
    background: #004E89;
}

.badge-purple {
    background: #9B59B6;
}

.tech-stack-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tech-stack-card p {
    color: var(--light-gray);
    line-height: 1.6;
    margin-top: 1rem;
}

.tech-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-badge {
    background: var(--medium-gray);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large,
    .card-wide {
        grid-column: span 1;
    }
}

.tech-item {
    background-color: var(--lighter-gray);
    padding: 2rem;
    border-radius: 10px;
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tech-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tech-item p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.tech-progress {
    background-color: var(--light-gray);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--black), var(--medium-gray));
    border-radius: 10px;
    transition: width 1s ease;
}

/* Frameworks Section */
.frameworks-section {
    padding: 100px 0;
    background-color: var(--lighter-gray);
}

.frameworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.framework-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
}

.framework-card:hover {
    border-color: var(--black);
    transform: scale(1.05);
}

.framework-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.framework-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Philosophy Section */
.philosophy-section {
    padding: 100px 0;
    background-color: var(--white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

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

.philosophy-icon {
    font-size: 3rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    color: var(--black);
}

/* SVG Icons for Philosophy/Advantages Section */
.philosophy-icon-svg {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.philosophy-icon-svg svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
    color: var(--white);
}

.philosophy-item:hover .philosophy-icon-svg {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.philosophy-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.philosophy-item p {
    color: var(--gray);
    line-height: 1.8;
}

.all-tech-section {
    padding: 100px 0;
    background-color: var(--lighter-gray);
}

/* Secondary pages - unified content sections */
.content-section {
    padding: 100px 0;
    background-color: var(--white);
}

.content-section-alt {
    padding: 100px 0;
    background-color: var(--lighter-gray);
}

.content-prose {
    max-width: 900px;
    margin: 0 auto;
}

.content-prose p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1.25rem;
}

.highlight-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid var(--light-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.highlight-box h2 {
    color: var(--black);
    margin-bottom: 1rem;
}

.highlight-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.location-cities {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.page-hero .cms-hero-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    border-radius: 24px;
}

/* ====================================
   Contact Page
   ==================================== */
.success-message {
    background-color: #27c93f;
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.success-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.error-message {
    background-color: #dc3545;
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.error-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.error-content p {
    margin: 0;
}

.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem;
    border-radius: 10px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--light-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    color: var(--white);
    stroke: var(--white);
}

.contact-detail-content h4 {
    margin-bottom: 0.5rem;
}

.contact-detail-content a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.contact-detail-content a:hover {
    color: var(--white);
}

.social-links-contact h4 {
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    background-color: var(--medium-gray);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--white);
    color: var(--black);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--lighter-gray);
    padding: 3rem;
    border-radius: 10px;
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--medium-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}

.form-group textarea {
    resize: vertical;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--lighter-gray);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--black);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.faq-item p {
    color: var(--gray);
    line-height: 1.8;
}

/* Map Section */
.map-section {
    padding: 100px 0;
}

.map-placeholder {
    background-color: var(--lighter-gray);
    padding: 4rem;
    border-radius: 10px;
    text-align: center;
}

.map-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.map-content p {
    color: var(--gray);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Notification System */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background-color: #ff5f56;
}

/* ====================================
   CDC Generator
   ==================================== */
.cdc-generator-section {
    padding: 60px 0 100px;
    background: linear-gradient(135deg, var(--lighter-gray) 0%, var(--white) 100%);
}

.cdc-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.ai-badge svg {
    width: 20px;
    height: 20px;
}

.cdc-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.cdc-intro p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Progress Bar */
.cdc-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed .step-circle {
    background: var(--black);
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #4ECDC4, #45B7D1);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.progress-step span {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
}

.progress-line {
    width: 80px;
    height: 3px;
    background: var(--light-gray);
    margin: 0 1rem;
}

.progress-step.completed ~ .progress-line {
    background: var(--black);
}

/* Chat Container */
.chat-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 700px;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.chat-avatar svg {
    width: 28px;
    height: 28px;
}

.chat-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin: 0.3rem 0 0 0;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-message {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.4s ease;
}

.chat-message.user-message {
    justify-content: flex-end;
}

.chat-message.ai-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.message-content {
    max-width: 70%;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-bottom-right-radius: 5px;
}

.ai-message .message-content {
    border-bottom-left-radius: 5px;
}

.message-content p {
    margin: 0;
    line-height: 1.6;
}

/* Chat Typing Indicator */
.chat-typing {
    display: flex;
    gap: 0.4rem;
    padding: 1rem 0;
    justify-content: center;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    border-top: 2px solid var(--lighter-gray);
    padding: 1.5rem;
    background: var(--white);
}

.chat-input-form {
    display: flex;
    gap: 1rem;
}

.chat-input-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--lighter-gray);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.chat-input-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-input-form input:disabled {
    background: var(--lighter-gray);
    cursor: not-allowed;
}

.chat-input-form button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-input-form button:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.chat-input-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-input-form button svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

/* Result Section */
.cdc-result-section {
    padding: 60px 0 100px;
}

.cdc-result-section .result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cdc-result-section .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27c93f, #4ECDC4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
    box-shadow: 0 15px 40px rgba(39, 201, 63, 0.3);
}

.cdc-result-section .result-header h3 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.cdc-result-section .result-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.result-preview {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.cdc-preview-collapsed {
    background: var(--lighter-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed #667eea;
}

.cdc-preview-collapsed h4 {
    color: var(--black);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cdc-preview-collapsed p {
    color: var(--gray);
    margin: 0;
}

/* Contact Form Section */
.contact-form-section {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-form-header h3 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.contact-form-header p {
    color: var(--gray);
    line-height: 1.6;
}

.cdc-contact-form .form-group {
    margin-bottom: 1.5rem;
}

.cdc-contact-form label {
    display: block;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.cdc-contact-form input[type="text"],
.cdc-contact-form input[type="email"],
.cdc-contact-form input[type="tel"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--lighter-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.cdc-contact-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row-inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label span {
    color: var(--gray);
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

.loader-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Success Section */
.cdc-success-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--lighter-gray) 0%, var(--white) 100%);
}

.success-message-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #27c93f, #4ECDC4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 20px 50px rgba(39, 201, 63, 0.3);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-icon-large svg {
    width: 60px;
    height: 60px;
    color: var(--white);
}

.success-message-box h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.success-text {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.success-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-item .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    color: var(--black);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.detail-item p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row-inline {
        grid-template-columns: 1fr;
    }
    
    .success-details {
        grid-template-columns: 1fr;
    }
    
    .success-message-box {
        padding: 2rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
}

/* Responsive Chat */
@media (max-width: 768px) {
    .chat-container {
        height: 600px;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .chat-input-container {
        padding: 1rem;
    }
}

/* Form Container */
.cdc-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.cdc-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.cdc-step.active {
    display: block;
}

.cdc-step h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.step-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Option Cards */
.cdc-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cdc-option-card {
    position: relative;
    cursor: pointer;
}

.cdc-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-content {
    border: 2px solid var(--lighter-gray);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--white);
}

.cdc-option-card:hover .option-content {
    border-color: #4ECDC4;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
}

.cdc-option-card input[type="radio"]:checked + .option-content {
    border-color: #4ECDC4;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(69, 183, 209, 0.1));
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.option-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.option-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Checkboxes */
.cdc-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.cdc-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 2px solid var(--lighter-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cdc-checkbox:hover {
    border-color: #4ECDC4;
    background: rgba(78, 205, 196, 0.05);
}

.cdc-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cdc-checkbox input[type="checkbox"]:checked {
    accent-color: #4ECDC4;
}

.cdc-checkbox span {
    color: var(--medium-gray);
    font-weight: 500;
}

/* Form Groups */
.cdc-form-group {
    margin-bottom: 1.5rem;
}

.cdc-form-group label {
    display: block;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.cdc-form-group input,
.cdc-form-group textarea,
.cdc-form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--lighter-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.cdc-form-group input:focus,
.cdc-form-group textarea:focus,
.cdc-form-group select:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.cdc-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Form Actions */
.cdc-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-generate {
    position: relative;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Result Section */
.cdc-result {
    animation: fadeInUp 0.6s ease;
}

.result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27c93f, #4ECDC4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
    box-shadow: 0 15px 40px rgba(39, 201, 63, 0.3);
}

.result-header h3 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.result-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.result-content {
    background: var(--lighter-gray);
    padding: 2.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    max-height: 600px;
    overflow-y: auto;
}

.cdc-generated-content {
    color: var(--dark-gray);
    line-height: 1.8;
}

.cdc-generated-content h2 {
    color: var(--black);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cdc-generated-content h3 {
    color: var(--dark-gray);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.cdc-generated-content strong {
    color: var(--black);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.result-actions .btn svg {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Benefits Section */
.cdc-benefits {
    padding: 100px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    border: 2px solid var(--medium-gray);
    border-radius: 15px;
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.benefit-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .cdc-progress {
        padding: 0 1rem;
    }
    
    .progress-line {
        width: 40px;
    }
    
    .progress-step span {
        display: none;
    }
    
    .cdc-form-container {
        padding: 2rem 1.5rem;
    }
    
    .cdc-options,
    .cdc-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .cdc-form-row {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   CMS Cards (Sites Internet Page)
   ==================================== */
.cms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.cms-card {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    border: 2px solid var(--medium-gray);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cms-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ECDC4, #45B7D1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cms-card:hover {
    transform: translateY(-10px);
    border-color: #4ECDC4;
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.2);
}

.cms-card:hover::before {
    opacity: 1;
}

.cms-card-custom::before {
    background: linear-gradient(90deg, #FF6B35, #F7931E);
}

.cms-card-custom:hover {
    border-color: #FF6B35;
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.cms-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4ECDC4, #45B7D1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    font-family: 'Courier New', monospace;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
}

.cms-card-custom .cms-logo {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.cms-card:hover .cms-logo {
    transform: scale(1.1) rotate(5deg);
}

.cms-card h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cms-card p {
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cms-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.cms-badge {
    background: var(--medium-gray);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cms-card:hover .cms-badge {
    background: #4ECDC4;
    transform: scale(1.05);
}

.cms-card-custom:hover .cms-badge {
    background: #FF6B35;
}

/* CMS Card as Link */
.cms-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cms-card-link:hover {
    text-decoration: none;
}

.cms-link-text {
    display: block;
    margin-top: 1.5rem;
    color: #4ECDC4;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cms-card-link:hover .cms-link-text {
    opacity: 1;
}

/* ====================================
   Pages CMS Détail
   ==================================== */
.cms-hero {
    margin-top: 80px;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    text-align: center;
    color: var(--white);
}

.cms-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.cms-hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #4ECDC4, #45B7D1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    font-family: 'Courier New', monospace;
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.4);
}

.cms-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--white);
}

.cms-hero-description {
    font-size: 1.4rem;
    color: var(--light-gray);
    line-height: 1.6;
}

.cms-detail-section {
    padding: 80px 0;
    background: var(--white);
}

.cms-detail-block {
    margin-bottom: 60px;
}

.cms-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: center;
}

.cms-content-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.cms-content-text p {
    margin-bottom: 1.5rem;
}

/* Use Cases */
.cms-use-cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cms-use-case-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    border: 2px solid var(--medium-gray);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.cms-use-case-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.use-case-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    color: #4ECDC4;
}

.use-case-icon svg {
    width: 24px;
    height: 24px;
    color: #4ECDC4;
}

.use-case-content h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.use-case-content p {
    color: var(--light-gray);
    line-height: 1.6;
    margin: 0;
}

/* Advantages Grid */
.cms-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cms-advantage-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid var(--medium-gray);
}

.cms-advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon svg {
    width: 48px;
    height: 48px;
    color: var(--white);
}

.cms-advantage-card h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cms-advantage-card p {
    color: var(--light-gray);
    line-height: 1.6;
    margin: 0;
}

/* Features List */
.cms-features-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cms-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--lighter-gray);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.cms-feature-item:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.feature-check {
    color: #4ECDC4;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text {
    color: var(--dark-gray);
    font-size: 1rem;
}

/* Tech Tags */
.cms-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.cms-tech-tag {
    background: var(--medium-gray);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cms-tech-tag:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* CTA Block */
.cms-cta-block {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    border-radius: 20px;
    margin-top: 60px;
    color: var(--white);
}

.cms-cta-block h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cms-cta-block p {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 2.5rem;
}

.cms-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cms-cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cms-cta-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--black);
}

/* Responsive CMS Pages */
@media (max-width: 1024px) {
    .cms-use-cases {
        grid-template-columns: 1fr;
    }
    
    .cms-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cms-features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cms-hero-title {
        font-size: 2.5rem;
    }
    
    .cms-hero-description {
        font-size: 1.1rem;
    }
    
    .cms-section-title {
        font-size: 2rem;
    }
    
    .cms-advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .cms-cta-buttons {
        flex-direction: column;
    }
    
    .cms-cta-buttons .btn {
        width: 100%;
    }
}

/* Responsive CMS Grid */
@media (max-width: 1024px) {
    .cms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cms-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   Page Transitions
   ==================================== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: all;
}

/* Transition 1: Code Loading */
.code-loading {
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.code-loading.active {
    opacity: 1;
}

.terminal {
    background: #1a1a1a;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.8rem 1rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    gap: 0.5rem;
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-header .dot.red { background: #ff5f56; }
.terminal-header .dot.yellow { background: #ffbd2e; }
.terminal-header .dot.green { background: #27c93f; }

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    color: var(--white);
}

.terminal-body p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.prompt {
    color: #27c93f;
    margin-right: 0.5rem;
}

.loading {
    color: #ffbd2e;
    margin-top: 1rem;
}

.dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.progress-bar {
    background: #2d2d2d;
    height: 20px;
    border-radius: 10px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #27c93f, #4ECDC4);
    height: 100%;
    width: 0;
    animation: progressFill 0.8s ease-out forwards;
}

@keyframes progressFill {
    to { width: 100%; }
}

/* Exit animation */
.page-transition-overlay.exit {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ====================================
   Responsive pour pages secondaires
   ==================================== */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .service-detail {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .service-detail.reverse .service-detail-content {
        order: 1;
    }

    .service-detail.reverse .service-detail-visual {
        order: 2;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .process-arrow {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .tech-category-title {
        font-size: 1.5rem;
    }

    .faq-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}


/* ====================================
   Chat Widget - Floating Assistant
   ==================================== */

/* Chat Widget Container */
.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Chat Bubble Button */
.chat-bubble-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.chat-bubble-btn.show {
    opacity: 1;
    transform: scale(1);
}

.chat-bubble-btn.hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.chat-bubble-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.bubble-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bubble-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Bubble Badge */
.bubble-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

/* Pulse Animation */
.bubble-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b79b8 0%, #764ba2 100%);
    opacity: 0.5;
    animation: pulse 2s infinite;
    top:0px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Chat Window */
.chat-widget-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-widget-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Widget Header */
.chat-widget-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
}

.header-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.header-info .status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 2px 0 0 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.header-btn svg {
    width: 18px;
    height: 18px;
    color: white;
}

/* Messages Container */
.chat-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
}

.welcome-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.welcome-message h4 {
    font-size: 18px;
    color: var(--black);
    margin-bottom: 10px;
}

.welcome-message p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-start-chat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Widget Messages */
.widget-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget-message.user-message {
    justify-content: flex-end;
}

.widget-message.ai-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar svg {
    width: 18px;
    height: 18px;
    color: white;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message .message-content {
    background: white;
    color: var(--black);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message-content p {
    margin: 0;
}

/* Typing Indicator */
.widget-typing {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    width: fit-content;
    margin-left: 42px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.widget-typing span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.widget-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.widget-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Chat Input */
.chat-widget-input {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e1e8ed;
}

.widget-input-form {
    display: flex;
    gap: 10px;
}

.widget-input-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.widget-input-form input:focus {
    border-color: #667eea;
}

.widget-input-form input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.widget-input-form button {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.widget-input-form button:hover:not(:disabled) {
    transform: scale(1.1);
}

.widget-input-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.widget-input-form button svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Chat Footer */
.chat-widget-footer {
    padding: 10px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e1e8ed;
    font-size: 11px;
    color: var(--gray);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.chat-widget-footer strong {
    color: var(--black);
}

/* Widget CDC Form */
.widget-cdc-form {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-cdc-form .form-header {
    text-align: center;
    margin-bottom: 20px;
}

.widget-cdc-form .form-header h4 {
    font-size: 18px;
    color: var(--black);
    margin-bottom: 8px;
}

.widget-cdc-form .form-header p {
    font-size: 13px;
    color: var(--gray);
}

.widget-cdc-form .form-group {
    margin-bottom: 12px;
}

.widget-cdc-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.widget-cdc-form input:focus {
    outline: none;
    border-color: #667eea;
}

.widget-cdc-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.widget-cdc-form .checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--gray);
}

.widget-cdc-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.widget-cdc-form .btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.widget-cdc-form .btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.widget-cdc-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.widget-cdc-form .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Widget Success */
.widget-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    margin-top: 10px;
}

.success-icon-widget {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
}

.widget-success h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.widget-success p {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 8px;
}

.widget-success .success-note {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 10px;
}

.widget-success .btn-new-project {
    background: white;
    color: #27ae60;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s;
}

.widget-success .btn-new-project:hover {
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-widget-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        bottom: 10px;
        right: 10px;
        border-radius: 15px;
    }

    .chat-bubble-btn {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .message-content {
        max-width: 80%;
    }
}

/* Button as link compatibility */
button.btn {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ====================================
   Blog
   ==================================== */
.blog-section {
    padding: 80px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--black);
}

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

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: var(--gray);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary);
    color: var(--white);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--light-gray);
    color: var(--gray);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-badge:hover,
.tag-badge.active {
    background: var(--primary);
    color: var(--white);
}

/* Articles Grid */
.blog-filter-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-gray);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.btn-clear-filter {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-clear-filter:hover {
    text-decoration: underline;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    border: 2px solid var(--medium-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: block;
}

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

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-bottom: 12px;
}

.article-date,
.article-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-category {
    margin-bottom: 12px;
}

.article-category a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--light-gray);
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
}

.article-author {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.btn-read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.btn-read-more:hover {
    gap: 10px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.pagination-btn:hover {
    background: var(--secondary);
}

.pagination-info {
    color: var(--gray);
    font-size: 0.95rem;
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 60px 20px;
}

.no-articles p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 20px;
}

/* Article Page */
.blog-article {
    padding-bottom: 80px;
}

.article-header {
    padding: 60px 0 40px;
    text-align: center;
}

.article-title-page {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--black);
}

.article-meta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.95rem;
}

.meta-item svg {
    color: var(--primary);
}

.article-tags-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.article-featured-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 50px;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    padding: 40px 0;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
    color: var(--black);
}

.article-body h1 {
    font-size: 2.2rem;
}

.article-body h2 {
    font-size: 1.8rem;
}

.article-body h3 {
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    color: var(--gray);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
    line-height: 1.8;
    color: var(--gray);
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--secondary);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

.article-body code {
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #c7254e;
}

.article-body pre {
    background: var(--dark-gray);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
}

.article-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: var(--gray);
}

.article-footer {
    border-top: 1px solid var(--light-gray);
    padding-top: 40px;
    margin-top: 60px;
}

.article-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Blog */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .article-title-page {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 50px 0;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-filter-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-title-page {
        font-size: 1.8rem;
    }
    
    .article-meta-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .article-body h1 {
        font-size: 1.8rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
}
