/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
    --primary-color: #3282B8;
    --secondary-color: #0F4C75;
    --accent-color: #7eb4d8;
    --dark-purple: #0F4C75;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-dark: #1e293b;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(124, 58, 237, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(124, 58, 237, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(124, 58, 237, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(124, 58, 237, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: url('../images/backgrounds/test.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    padding-top: 80px;
}

/* Typography - Anton for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

main {
    flex: 1;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background-color: var(--bg-white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    color: var(--text-primary);
    text-align: center;
    padding: 18px 28px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(124, 58, 237, 0.05);
}

nav ul li a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

nav ul li a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

nav ul li a.active::before {
    display: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    max-width: 1200px;
    margin: 30px auto 80px;
    margin-top: 30px;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark-purple);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
    animation: fadeInRight 0.8s ease-out;
}

.floating-card {
    position: absolute;
    background: linear-gradient(135deg, rgba(50, 130, 184, 0.1), rgba(126, 180, 216, 0.1));
    border: 2px solid var(--dark-purple);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.card-1 {
    width: 200px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    width: 180px;
    height: 180px;
    top: 50%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.card-3 {
    width: 160px;
    height: 120px;
    bottom: 10%;
    left: 30%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PROJECTS CAROUSEL
   ============================================ */
.projects-carousel-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 40px;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.carousel-header {
    text-align: center;
    margin-bottom: 50px;
}

.carousel-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
    padding: 20px 10px;
}

.carousel-card {
    min-width: 350px;
    flex: 0 0 350px;
    background: white;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Background image support */
.carousel-card.has-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.carousel-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(50, 130, 184, 0.92) 0%,
        rgba(50, 130, 184, 0.88) 50%,
        rgba(126, 180, 216, 0.85) 100%
    );
    z-index: 1;
}

.carousel-card-content {
    position: relative;
    z-index: 2;
}

.carousel-card.has-background .carousel-card-title,
.carousel-card.has-background .carousel-card-description {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel-card.has-background .carousel-card-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Icône sur fond avec image transparente */
.carousel-card.has-background .carousel-card-icon img {
    /* Fond plus visible pour fond de carte sombre */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 70%);
}

.carousel-card.has-background .carousel-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    backdrop-filter: blur(10px);
}

.carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.carousel-card:hover::before {
    transform: scaleX(1);
}

.carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.carousel-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.carousel-card-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(167, 139, 250, 0.1));
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.carousel-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
    /* Amélioration pour images avec transparence */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Support pour images PNG transparentes */
.carousel-card-icon img[src$=".png"],
.carousel-card-icon img[src*=".png?"] {
    /* Fond blanc subtil pour les PNG transparents */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    border-radius: 8px;
}

.carousel-card-title-section {
    flex: 1;
}

.carousel-card-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 600;
}

.carousel-card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.carousel-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-category {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
}

.badge-status {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-version {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.carousel-card-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    min-height: 80px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary-color);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.carousel-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-purple);
}

.services {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    border: 1px solid var(--border-color);
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-label {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(167, 139, 250, 0.1));
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.featured-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-purple);
}

.featured-text p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.featured-list {
    list-style: none;
    margin-bottom: 30px;
}

.featured-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.featured-visual {
    position: relative;
    height: 400px;
}

.featured-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    max-width: 800px;
    margin: 80px auto;
    padding: 80px 20px;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    max-width: 1200px;
    margin: 80px auto 60px;
    padding: 60px 40px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-purple);
    animation: fadeInUp 0.8s ease-out;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-filters {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.portfolio-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    cursor: pointer;
}

.portfolio-item:nth-child(2) { animation-delay: 0.1s; }
.portfolio-item:nth-child(3) { animation-delay: 0.2s; }
.portfolio-item:nth-child(4) { animation-delay: 0.3s; }
.portfolio-item:nth-child(5) { animation-delay: 0.4s; }
.portfolio-item:nth-child(6) { animation-delay: 0.5s; }

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 300px;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light), #e5e7eb);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.portfolio-card-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.placeholder-icon {
    font-size: 4rem;
    position: relative;
    z-index: 4;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(50, 130, 184, 0.95), rgba(50, 130, 184, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 30px;
    z-index: 3;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-info {
    text-align: center;
    color: white;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.portfolio-info p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 0 5px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============================================
   TOOLS PAGE
   ============================================ */
.tools-hero {
    max-width: 1200px;
    margin: 30px auto 80px;
    padding: 60px 40px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tools-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(167, 139, 250, 0.1));
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.tools-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark-purple);
    animation: fadeInUp 0.8s ease-out;
}

.tools-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tools-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.features-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-light), #e5e7eb);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    color: var(--text-secondary);
}

.feature-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Feature card badges */
.feature-card .badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.badge-free {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.25));
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-basic {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 146, 60, 0.25));
    color: #ea580c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.badge-pro {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.25));
    color: var(--primary-color);
    border: 1px solid var(--dark-purple);
}

/* ============================================
   PRICING
   ============================================ */
.pricing-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.pricing-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    background: white;
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    color: var(--text-secondary);
    font-size: 1rem;
}

.price-annual {
    text-align: center;
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.price-annual strong {
    color: var(--text-primary);
    font-weight: 700;
}

.price-save {
    display: inline-block;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.25));
    color: #16a34a;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 5px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li.disabled {
    opacity: 0.5;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.testimonial-card h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Legacy testimonial styles (for backward compatibility) */
.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: var(--text-primary);
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-form-wrapper,
.contact-info-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-info-wrapper {
    padding: 30px 40px;
}

.contact-info-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-purple);
    text-align: center;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--dark-purple);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.form-status.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
}

.form-status.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.info-content p,
.info-content a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-content a {
    transition: var(--transition);
    text-decoration: none;
}

.info-content a:hover {
    color: var(--primary-color);
}

.availability-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.availability-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.availability-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.services-offered {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
}

.services-offered h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.services-list {
    list-style: none;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.services-list li:last-child {
    border-bottom: none;
}

.service-icon {
    font-size: 1.5rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 60px 20px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 10px 0;
    font-size: 14px;
    color: #9ca3af;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured, .services, .portfolio-section, .contact-section, .projects-carousel-section, .pricing-section, .testimonials-section, .tools-hero, .features-section, .stats-section, .page-header {
        padding: 40px 30px;
    }
    
    .carousel-card {
        min-width: 320px;
        flex: 0 0 320px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: -15px;
    }
    
    .carousel-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 80px 10px 10px 10px;
    }
    
    nav ul {
        gap: 8px;
    }
    
    nav ul li a {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .hero, .featured, .services, .portfolio-section, .contact-section, .projects-carousel-section, .pricing-section, .testimonials-section, .tools-hero, .features-section, .stats-section, .page-header {
        padding: 30px 20px;
    }
    
    .hero-title,
    .tools-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons,
    .tools-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .carousel-card {
        min-width: 280px;
        flex: 0 0 280px;
        padding: 25px 20px;
    }
    
    /* Garder les icônes à taille fixe sur mobile */
    .carousel-card-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        font-size: 2rem;
    }
    
    .carousel-card-icon img {
        padding: 6px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-stats {
        gap: 40px;
    }
    
    .carousel-card-title {
        font-size: 1.2rem;
    }
    
    .carousel-card-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title,
    .tools-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    nav ul li a {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .service-card,
    .feature-card {
        padding: 30px 20px;
    }
    
    .featured-content {
        padding: 30px 20px;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 25px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta {
        padding: 50px 20px;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .carousel-card {
        min-width: 260px;
        flex: 0 0 260px;
        padding: 20px 15px;
    }
    
    .carousel-card-description {
        min-height: 100px;
        font-size: 0.9rem;
    }
    
    .carousel-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-text {
        font-size: 0.85rem;
    }
}

/* ==========================================
   Scroll to Top Button
   ========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}