@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@300;400;500&display=swap');

/* =================================
   MODERN CSS RESET & VARIABLES
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-green: #9FD832;
    --primary-green-light: #b8e055;
    --primary-green-dark: #7fc214;
    --dark-bg: #010409;
    --dark-surface: #0a0f1a;
    --dark-surface-light: #1a1f2e;
    --dark-border: #2a3441;
    --text-primary: #ffffff;
    --text-secondary: #a0a9c0;
    --text-muted: #6b7280;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #9FD832;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    --gradient-dark: linear-gradient(135deg, var(--dark-bg), var(--dark-surface));
    --gradient-surface: linear-gradient(135deg, var(--dark-surface), var(--dark-surface-light));
    --gradient-border: linear-gradient(135deg, var(--dark-border), transparent);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-green: 0 0 20px rgba(159, 216, 50, 0.3);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 1.5rem 0;
    
    /* Animations */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark theme adjustments */
[data-theme="dark"] {
    --dark-bg: #000000;
    --dark-surface: #0f1015;
    --dark-surface-light: #1f242f;
}

/* Light theme (optional) */
[data-theme="light"] {
    --dark-bg: #ffffff;
    --dark-surface: #f8fafc;
    --dark-surface-light: #f1f5f9;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
}

/* =================================
   BASE STYLES
================================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =================================
   CURSOR EFFECTS
================================= */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(159, 216, 50, 0.5);
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.15s ease-out;
}

@media (pointer: fine) {
    .cursor-dot,
    .cursor-outline {
        opacity: 1;
    }
}

/* =================================
   BACKGROUND EFFECTS
================================= */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 25%, rgba(159, 216, 50, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(159, 216, 50, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 216, 50, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 30s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

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

/* =================================
   NAVIGATION
================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.navbar.scrolled {
    background: rgba(1, 4, 9, 0.95);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    padding: 0.3rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo {
    width: 200px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    position: relative;
    transition: all var(--transition-normal);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--dark-surface);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--dark-surface-light);
    color: var(--primary-green);
    transform: scale(1.05);
}

.theme-toggle i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-normal);
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg);
}

[data-theme="light"] .theme-toggle .fa-moon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg);
}

[data-theme="light"] .theme-toggle .fa-sun {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 20px;
    cursor: pointer;
    justify-content: space-between;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =================================
   BUTTONS
================================= */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(75, 112, 6, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--dark-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary-green);
    background: rgba(159, 216, 50, 0.1);
    transform: translateY(-2px);
}

/* =================================
   HERO SECTION
================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    overflow: hidden;
}

.hero-lottie {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

#hero-lottie-animation {
    width: 100%;
    height: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 10vh auto 0; /* Remonter légèrement le contenu hero */
    padding: 0 var(--container-padding);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(159, 216, 50, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(159, 216, 50, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 500;
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    font-size: 2.5rem; /* Ajusté de 4.5rem à 4rem */
    font-weight: 800;
    margin-bottom: 2.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Style pour le mot "cœur" en vert avec trait de soulignement */
.word-green {
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}

.word-green::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: underlineGrow 0.8s ease-out;
}

@keyframes underlineGrow {
    0% { width: 0; }
    100% { width: 100%; }
}

.line {
    display: block;
    margin: 0.5rem 0;
}

.line.highlight {
    position: relative;
}

.word {
    position: relative;
    z-index: 2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(159, 216, 50, 0.1);
    border-radius: 8px;
    z-index: 1;
}

.typing-container {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.typing-prefix {
    color: var(--text-secondary);
}

.typed-text {
    color: var(--primary-green);
    font-weight: 600;
}

.cursor-blink {
    color: var(--primary-green);
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce-slow 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-green);
    margin: 0 auto;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
    transform: rotate(45deg);
}

@keyframes bounce-slow {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Video de fond */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}
.hero-bg video.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform var(--transition-normal), filter var(--transition-normal);
    filter: brightness(0.10) !important;
}

/* Overlay transparent par défaut et fond vert clair au hover */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: background var(--transition-normal);
    pointer-events: none;
    z-index: -1;
}
.hero:hover .hero-bg-video {
    transform: scale(1.05);
    filter: brightness(0.10) !important;
}
.hero:hover .hero-bg-overlay {
    background: rgba(93, 99, 80, 0.3) !important;
}

/* =================================
   SECTIONS
================================= */
section {
    padding: var(--section-padding);
    position: relative;
}

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

.section-tag {
    display: inline-block;
    background: rgba(159, 216, 50, 0.1);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(159, 216, 50, 0.2);
}

.section-title {
    font-size: 42px !important;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-subtitle,
p.section-subtitle {
  max-width: 500px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  display: block !important;
}

.section-header p,
.section-header .section-subtitle,
.section-header p.section-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
 
  max-width: 400px !important;
}

/* =================================
   ABOUT SECTION
================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.text-block {
    margin-bottom: 2rem;
}

.text-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.text-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.2rem;
}

/* Classe pour l'animation de coloration au scroll */
.text-scroll-color {
    color: var(--text-secondary); /* Couleur initiale grise */
    transition: none; /* Pas de transition CSS, GSAP s'en charge */
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-container {
    position: relative;
    width: 100%;
    max-width: 500px; /* Réduction de la taille maximale */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-main-image {
    width: 100%;
    height: auto;
    max-height: 400px; /* Limitation de la hauteur */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(1, 4, 9, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.innovation-badge {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-glow);
}

.innovation-badge i {
    font-size: 1.1rem;
}

/* Styles d'avatars génériques */
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-green);
    margin-right: 1rem;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

/* Portfolio Images améliorées */
.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Ajout d'effets de parallax légers sur les images */
@media (min-width: 1024px) {
    .hero-bg-video {
        transition: transform 0.1s ease-out;
    }
    
    .about-main-image {
        transition: transform var(--transition-slow), filter var(--transition-normal);
    }
}

/* Images responsive */
@media (max-width: 768px) {
    .about-image-container {
        margin-bottom: 3rem;
    }
    
    .about-main-image {
        height: 250px;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        margin-right: 0.8rem;
    }
    
    .innovation-badge {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-bg-video {
        transform: scale(1.2);
    }
}

/* Animations d'entrée pour les images */
.about-image-container,
.author-avatar,
.portfolio-image {
    animation: fadeInImage 0.6s ease-out;
}

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

/* Effets de loading pour les images */
.portfolio-image img,
.about-main-image,
.author-avatar img {
    background: linear-gradient(90deg, 
        var(--dark-surface) 0%, 
        var(--dark-border) 50%, 
        var(--dark-surface) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.portfolio-image img[src],
.about-main-image[src],
.author-avatar img[src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive pour nouvelles sections */
@media (max-width: 768px) {
    .process-timeline::before {
        left: 20px;
    }
    
    .process-step {
        flex-direction: column !important;
        text-align: center !important;
        padding-left: 60px;
    }
    
    .step-number {
    position: absolute;
    left: 0;
        margin: 0;
    }
    
    .step-content {
        max-width: 100%;
        margin-top: 1rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    

    
    .hero-features {
        justify-content: center;
    }
}

/* =================================
   CONTACT SECTION - FOND NOIR
================================= */
/* Section Contact sur fond noir */
.contact-section {
    background: var(--dark-bg) !important;
    color: var(--text-primary) !important;
    padding: 6rem 0;
}

.contact-section .section-header {
    color: var(--text-primary) !important;
}

.contact-section .section-tag {
    background: linear-gradient(135deg, #136F63, #0F5C52);
    color: white;
}

.contact-section .section-title {
    color: var(--text-primary) !important;
}

.contact-section .section-title .highlight {
    color: var(--primary-green) !important;
}

.contact-section .section-subtitle {
    color: var(--text-secondary) !important;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-content.centered {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}



/* =================================
   FOOTER
================================= */
.footer {
    background: var(--gradient-dark);
    border-top: 1px solid var(--dark-border);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 3.5rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
}
.footer-section {
  flex: 1 1 0 !important;
  min-width: 200px !important;
  max-width: 320px !important;
}
.footer-section:first-child {
  flex: 1.7 1 0 !important;
  min-width: 320px !important;
  max-width: 420px !important;
  align-items: flex-start !important;
  text-align: left !important;
}
.footer-desc {
  text-align: justify !important;
  text-align-last: left !important;
  word-spacing: normal !important;
  letter-spacing: 0.1px !important;
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .footer-section,
  .footer-section:first-child {
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    align-items: center !important;
    text-align: center !important;
  }
  .footer-desc {
    text-align: center !important;
    text-align-last: center !important;
  }
}

.footer-section:first-child {
  margin-left: 0 !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    height: 40px; /* Hauteur identique au header */
}

.footer-logo img {
    height: 100%;
    width: auto;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section ul li a:hover {
    color: var(--primary-green);
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-item i {
    width: 16px;
    color: var(--primary-green);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary-green);
}

/* =================================
   RESPONSIVE DESIGN
================================= */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --section-padding: 2.5rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content.centered {
        padding: 0 1rem;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    /* Footer responsive tablette */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-section {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
    }
    
    .hamburger {
        display: flex !important;
        align-items: center;
    }
    
    .nav-right {
        display: none;
    }

    .nav-right.active {
        display: flex;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(1, 4, 9, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: all var(--transition-normal);
        gap: 3rem;
    }
    
    .nav-right.active .nav-menu, .nav-right.active .nav-actions {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-actions .btn-primary {
    width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    

    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        margin-left: 100px;
    }
    
    /* S'assurer que le contenu ne soit pas caché sous la navbar fixe */
    body {
        padding-top: 80px !important;
    }

    /* Footer responsive mobile - STYLES UNIFIÉS */
    .footer {
        padding: 2rem 0 1rem !important;
    }

    .footer-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2rem !important;
    }

    .footer-section {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .footer-section h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
        color: var(--text-primary) !important;
    }

    .footer-section p,
    .footer-desc {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
        text-align: justify !important;
        color: var(--text-secondary) !important;
    }

    .footer-section ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-section ul li {
        margin-bottom: 0.6rem !important;
    }

    .footer-section ul li a {
        font-size: 0.9rem !important;
        color: var(--text-secondary) !important;
        text-decoration: none !important;
        transition: color var(--transition-normal) !important;
    }

    .footer-section ul li a:hover {
        color: var(--primary-green) !important;
    }

    /* Contact items uniformisés */
    .contact-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-bottom: 0.6rem !important;
        color: var(--text-secondary) !important;
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    .contact-item i {
        width: 16px !important;
        color: var(--primary-green) !important;
        flex-shrink: 0 !important;
    }

    .contact-item span,
    .contact-item a {
        color: var(--text-secondary) !important;
        text-decoration: none !important;
    }

    .contact-item a:hover {
        color: var(--primary-green) !important;
    }

    /* Styles pour les contacts dans les ul > li avec icônes */
    .footer-section ul li {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-bottom: 0.6rem !important;
        color: var(--text-secondary) !important;
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    .footer-section ul li i {
        width: 16px !important;
        color: var(--primary-green) !important;
        flex-shrink: 0 !important;
    }

    .footer-section ul li span,
    .footer-section ul li a {
        color: var(--text-secondary) !important;
        text-decoration: none !important;
    }

    .footer-section ul li a:hover {
        color: var(--primary-green) !important;
    }

    /* Footer social uniformisé */
    .footer-social {
        display: flex !important;
        justify-content: center !important;
        gap: 1rem !important;
        margin-top: 1rem !important;
    }

    .footer-social a,
    .social-link {
        width: 36px !important;
        height: 36px !important;
        background: var(--dark-surface) !important;
        border: 1px solid var(--dark-border) !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--text-secondary) !important;
        text-decoration: none !important;
        transition: all var(--transition-normal) !important;
    }

    .footer-social a:hover,
    .social-link:hover {
        background: var(--primary-green) !important;
        border-color: var(--primary-green) !important;
        color: var(--dark-bg) !important;
        transform: translateY(-2px) !important;
    }

    /* Footer bottom uniformisé */
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        padding-top: 1.5rem !important;
        margin-top: 1.5rem !important;
        border-top: 1px solid var(--dark-border) !important;
    }

    .footer-bottom p {
        color: var(--text-muted) !important;
        font-size: 0.8rem !important;
        margin: 0 !important;
    }

    /* Logo footer responsive */
    .footer-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 1rem !important;
        gap: 0.5rem !important;
    }

    .footer-logo img {
        height: 32px !important;
        width: auto !important;
    }

    .footer-logo span {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        background: var(--gradient-primary) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
}

/* Mobile très petit (480px et moins) */
@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem !important;
    }

    .footer-content {
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }

    .footer-section {
        max-width: 100% !important;
    }

    .footer-section h4 {
        font-size: 1rem !important;
    }

    .footer-section p,
    .footer-desc {
        font-size: 0.85rem !important;
    }

    .footer-section ul li a,
    .contact-item {
        font-size: 0.85rem !important;
    }

    .footer-social a,
    .social-link {
        width: 32px !important;
        height: 32px !important;
    }

    .footer-logo img {
        height: 28px !important;
    }

    .footer-logo span {
        font-size: 1.1rem !important;
    }

    .footer-bottom p {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
  .stacked-cards-container {
    margin-bottom: 0.2rem !important;
    padding-bottom: 0 !important;
  }
  .section-header {
    margin-top: 0.2rem !important;
    padding-top: 0 !important;
    }
}

/* =================================
   ANIMATIONS & UTILITIES
================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(1.5);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
        opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
    }

.slide-in-right.visible {
        opacity: 1;
    transform: translateX(0);
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Stacked Cards - Version Exacte de LoniyaTech 4 */
.stacked-cards-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem 0;
    height: 250vh; /* Hauteur pour contrôler la durée du défilement */
}

.stacked-card {
    position: sticky;
    background: rgba(20, 26, 33, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
    transition: transform 0.4s ease-out;
}

/* 
  La superposition "par-devant" est obtenue en augmentant le z-index
  pour les cartes qui apparaissent plus bas dans le code HTML.
  Chaque carte se "colle" un peu plus bas que la précédente.
*/
.stacked-card[data-index="1"] {
    top: 10vh;
    z-index: 1;
}
.stacked-card[data-index="2"] {
    top: 15vh;
    z-index: 2;
}
.stacked-card[data-index="3"] {
    top: 20vh;
    z-index: 3;
}
.stacked-card[data-index="4"] {
    top: 25vh;
    z-index: 4;
}

.stacked-card .card-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.stacked-card h4 {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.stacked-card p {
    color: #b0c4de;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stacked-cards-container {
        padding: 1rem;
        height: auto; /* Laisser le flux normal sur mobile */
    }
    
    .stacked-card {
        position: relative; /* Annuler sticky sur mobile */
        top: auto !important;
        margin-bottom: 2rem;
        z-index: auto !important;
    }
    
    .stacked-card .card-icon {
        font-size: 2.5rem;
    }
    
    .stacked-card h4 {
        font-size: 1.5rem;
    }
}

/* Section Backgrounds & Theming */
.bg-light {
    background-color: #f4f7f9;
    padding: 8rem 0;
}
.bg-light .section-header {
    margin-bottom: 4rem;
}
.section-tag-light {
    display: inline-block;
    background-color: rgba(19, 111, 99, 0.1);
    color: #136F63;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.section-title-light {
    color: #141a21; /* Darker text for light bg */
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-title-light .highlight-dark {
    color: var(--primary-green);
}
.section-subtitle-light {
    color: #5a6a7b;
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Expertise Tags Container - NOUVELLE VERSION AVEC GRILLE */
.expertise-tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* Espace entre les tags */
    max-width: 1100px;
    margin: 4rem auto 0;
    padding: 1rem;
    min-height: 400px; /* Hauteur minimale pour le conteneur */
}

.expertise-tag {
    /* Suppression de position: absolute et des transforms ici */
    background-color: var(--tag-bg, #E0F2F1);
    color: var(--tag-color, #00796B);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 1.1rem; /* Taille de base uniforme */
    font-weight: 600;
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.2);
    border: 2px solid var(--primary-green);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    cursor: pointer;
    /* La visibilité est maintenant entièrement gérée par GSAP */
}

.expertise-tag:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 35px -15px rgba(0,0,0,0.3);
    border-color: var(--accent-green);
}

/* Suppression des anciennes règles .tag-1, .tag-2, etc. */

/* Responsive Design pour les Cartes Empilées */

/* Tablettes (769px à 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .stacked-cards-container {
        max-width: 800px;
        margin: 3rem auto;
        height: 180vh;
    }
    
    .stacked-card {
        padding: 2rem;
    }
    
    .stacked-card .card-icon {
        font-size: 2.8rem;
    }
    
    .stacked-card h4 {
        font-size: 1.6rem;
    }
}

/* Mobile avec empilement (768px et moins) */
@media (max-width: 768px) {
    .stacked-cards-section {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .stacked-cards-container {
        padding: 1rem !important;
        height: 180vh !important; /* Hauteur augmentée pour voir toutes les cartes */
        margin: 1rem auto !important;
        max-width: 100% !important;
    }
    
    .stacked-card {
        position: sticky !important; /* Garder sticky sur mobile aussi */
        padding: 1.8rem !important;
        border-radius: 16px !important;
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 1rem !important;
    }
    
    /* Positions adaptées au mobile pour empilement - plus espacées */
    .stacked-card[data-index="1"] {
        top: 5vh !important;
        z-index: 1 !important;
    }
    .stacked-card[data-index="2"] {
        top: 10vh !important;
        z-index: 2 !important;
    }
    .stacked-card[data-index="3"] {
        top: 15vh !important;
        z-index: 3 !important;
    }
    .stacked-card[data-index="4"] {
        top: 20vh !important;
        z-index: 4 !important;
    }
    
    .stacked-card .card-icon {
        font-size: 2.5rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .stacked-card h4 {
        font-size: 1.4rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .stacked-card p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .stacked-cards-section {
        padding: 1rem 0 !important;
    }
    
    .stacked-cards-container {
        padding: 0.5rem !important;
        margin: 0.5rem auto !important;
        height: 150vh !important; /* Hauteur augmentée aussi */
    }
    
    .stacked-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }
    
    /* Positions plus espacées pour voir toutes les cartes */
    .stacked-card[data-index="1"] {
        top: 5vh !important;
    }
    .stacked-card[data-index="2"] {
        top: 10vh !important;
    }
    .stacked-card[data-index="3"] {
        top: 15vh !important;
    }
    .stacked-card[data-index="4"] {
        top: 20vh !important;
    }
    
    .stacked-card .card-icon {
        font-size: 2.2rem !important;
    }
    
    .stacked-card h4 {
        font-size: 1.3rem !important;
    }
    
    .stacked-card p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .bg-light {
        padding: 4rem 1rem;
    }
    .expertise-tags-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        height: auto;
        position: static;
    }
    .expertise-tag {
        position: static;
        transform: rotate(0) !important;
    }
}

/* Override du bouton Explorer nos expertises pour conserver un fond vert */
.hero-buttons .btn-primary {
    background: var(--primary-green) !important;
}

/* Préserver l'effet hover en version verte claire */
.hero-buttons .btn-primary:hover {
    background: var(--primary-green) !important;
    filter: brightness(1.2) !important;
}

/* =================================
   PROCESS SECTION STYLES
================================= */
.process-section {
    padding: 6rem 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden; /* pour couper l'effet aux limites de la section */
}

.process-section::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background:
        radial-gradient(circle at 50% 50%, rgba(159, 216, 50, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
        linear-gradient(140deg, rgba(19, 111, 99, 0.15), transparent 70%);
    animation: processBgMove 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes processBgMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -40px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Assure que le contenu reste au-dessus du fond */
.process-section > * {
    position: relative;
    z-index: 1;
}

.process-timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    gap: 1.5rem;
    position: relative;
    min-height: 200px;
}

/* Alternance gauche-droite */
.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -2.5rem;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-green);
    opacity: 1;
    z-index: 2;
    background: #101313;
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px -2px rgba(0,0,0,0.18);
    border: 2px solid var(--primary-green);
    font-family: 'JetBrains Mono', monospace;
    transition: left 0.3s;
}

.process-step:nth-child(even) .step-number {
    left: auto;
    right: -2.5rem;
}

.step-image {
    flex: none !important;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 140px !important;
    max-width: 160px !important;
    min-width: 160px !important;
    width: 160px !important;
    margin: 0 1rem;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.25);
    background: #181c1f;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
    object-position: center center;
}

.step-content {
    flex: 1;
    padding: 1.5rem 1.5rem;
    background: rgba(10,12,16,0.85);
    border-radius: 16px;
    box-shadow: 0 4px 24px -8px rgba(0,0,0,0.18);
    min-width: 700px;
    max-width: 1000px;
    font-size: 0.95rem;
    min-height: 180px;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.step-content p {
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
}

.step-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    border-radius: 20px !important;
    display: block !important;
    margin: 0 auto !important;
    object-position: center center !important;
}

.process-cta {
    text-align: center;
    margin-top: 4rem;
}
/* Animation responsive */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column !important;
        gap: 1.5rem;
        margin-bottom: 4rem;
        min-height: auto;
    }
    
    .step-image {
        flex: none !important;
        height: 120px !important;
        max-width: 140px !important;
        min-width: 140px !important;
        width: 140px !important;
        margin: 0 auto;
    }
    
    .step-number {
        position: relative;
        top: 0;
        left: 0 !important;
        right: auto !important;
        font-size: 1.2rem;
        width: 1.8rem;
        height: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .step-content {
        padding: 1.5rem;
        min-width: auto;
        max-width: 100%;
        min-height: auto;
    }
}

/* =================================
   PORTFOLIO CAROUSEL AUTOMATIQUE
================================= */
/* Section Portfolio avec fond blanc */
.portfolio-section {
    background: #ffffff !important;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.portfolio-section .section-header {
    color: #1f2937 !important;
    margin-bottom: 4rem;
}

.portfolio-section .section-tag {
    background: linear-gradient(135deg, #136F63, #0F5C52);
    color: white;
}

.portfolio-section .section-title {
    color: #1f2937 !important;
}

.portfolio-section .section-title .highlight {
    color: #136F63 !important;
}

.portfolio-section .section-subtitle {
    color: #6b7280 !important;
}

/* Container du carrousel */
.portfolio-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.portfolio-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 4rem; /* Plus d'espace sur les côtés */
}

.portfolio-track {
    display: flex;
    animation: infiniteScroll 35s linear infinite;
    width: max-content;
    gap: 4rem; /* Plus d'espace entre les cartes */
}

@keyframes infiniteScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% / 2));
    }
}

.portfolio-slide {
    flex: 0 0 calc(50% - 2rem); /* Affiche 2 cartes à la fois */
    min-width: 400px; /* Cartes plus larges */
    max-width: 500px;
}

/* Style des cartes */
.portfolio-card {
    background: var(--dark-surface);
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Pause au survol */
.portfolio-track:hover {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 1200px) {
    .portfolio-carousel {
        padding: 0 2rem;
    }
    .portfolio-track {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-slide {
        flex: 0 0 calc(100% - 1rem); /* 1 carte sur mobile */
        min-width: 280px;
    }
    .portfolio-carousel {
        padding: 0 1rem;
    }
    .portfolio-track {
        gap: 1.5rem;
    }
}

/* Cartes portfolio */
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Contenu de la carte */
.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    display: inline-block;
    background: linear-gradient(135deg, #136F63, #0F5C52);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-content h4 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.portfolio-content p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Technologies */
.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tech span {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

/* Indicateurs de progression */
.portfolio-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.indicator.active {
    background: #136F63;
    transform: scale(1.2);
}

.indicator:hover {
    background: #0F5C52;
    transform: scale(1.1);
}

/* Animation cyclique des indicateurs */
.indicator:nth-child(1) { animation: indicatorPulse 40s infinite; animation-delay: 0s; }
.indicator:nth-child(2) { animation: indicatorPulse 40s infinite; animation-delay: 7s; }
.indicator:nth-child(3) { animation: indicatorPulse 40s infinite; animation-delay: 14s; }
.indicator:nth-child(4) { animation: indicatorPulse 40s infinite; animation-delay: 21s; }

/* État manuel - désactive l'animation automatique des indicateurs */
.portfolio-track.manual-control ~ .portfolio-indicators .indicator {
    animation: none !important;
}

@keyframes indicatorPulse {
    0%, 82.5% { 
        background: #d1d5db; 
        transform: scale(1); 
    }
    12.5%, 17.5% { 
        background: #136F63; 
        transform: scale(1.2); 
    }
}

/* CTA Section */
.portfolio-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 20px;
    border: 1px solid rgba(107, 114, 128, 0.1);
}

.portfolio-cta p {
    color: #374151 !important;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.portfolio-cta .btn-primary {
    background: linear-gradient(135deg, #136F63, #0F5C52);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.portfolio-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 111, 99, 0.3);
    background: linear-gradient(135deg, #0F5C52, #136F63);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-card {
        width: 260px;
    }
    
    .portfolio-slide {
        padding: 0 0.75rem;
    }
}

@media (max-width: 768px) {
    .portfolio-track {
        animation-duration: 32s; /* Plus rapide sur mobile */
    }
    
    .indicator:nth-child(1) { animation: indicatorPulse 32s infinite; animation-delay: 0s; }
    .indicator:nth-child(2) { animation: indicatorPulse 32s infinite; animation-delay: 5.6s; }
    .indicator:nth-child(3) { animation: indicatorPulse 32s infinite; animation-delay: 11.2s; }
    .indicator:nth-child(4) { animation: indicatorPulse 32s infinite; animation-delay: 16.8s; }
    
    .portfolio-card {
        width: 240px;
    }
    
    .portfolio-card .portfolio-image {
        height: 160px;
    }
    
    .portfolio-content {
        padding: 1.25rem;
    }
    
    .portfolio-content h4 {
        font-size: 1rem;
    }
    
    .portfolio-content p {
        font-size: 0.85rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .portfolio-carousel-container {
        padding: 0 1rem;
    }
    
    .portfolio-card {
        width: 220px;
    }
    
    .portfolio-slide {
        padding: 0 0.5rem;
    }
    
    .portfolio-tech span {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* =================================
   MODAL ZOOM PORTFOLIO
================================= */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    border: 3px solid rgba(19, 111, 99, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.portfolio-modal.active .modal-content {
    transform: scale(1);
}

.modal-image {
    width: 100%;
    height: 60vh;
    max-height: 500px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.modal-info {
    padding: 2rem;
    border-top: 1px solid rgba(19, 111, 99, 0.1);
}

.modal-category {
    display: inline-block;
    background: linear-gradient(135deg, #136F63, #0F5C52);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-title {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-description {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-tech span {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(19, 111, 99, 0.1);
    border: none;
    border-radius: 50%;
    color: #136F63;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(19, 111, 99, 0.2);
    transform: scale(1.1);
}

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

.modal-btn {
    background: linear-gradient(135deg, #136F63, #0F5C52);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 111, 99, 0.3);
}

.modal-btn.secondary {
    background: transparent;
    border: 2px solid #136F63;
    color: #136F63;
}

.modal-btn.secondary:hover {
    background: #136F63;
    color: white;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-image {
        height: 50vh;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        justify-content: center;
    }
}

/* =================================
   TESTIMONIALS SECTION (CSS Automatique)
================================= */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--dark-surface);
}

.testimonial-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    animation: autoSlideTestimonials 25s infinite;
}

@keyframes autoSlideTestimonials {
    0% { transform: translateX(0%); }
    15% { transform: translateX(0%); }
    20% { transform: translateX(-100%); }
    35% { transform: translateX(-100%); }
    40% { transform: translateX(-200%); }
    55% { transform: translateX(-200%); }
    60% { transform: translateX(-300%); }
    75% { transform: translateX(-300%); }
    80% { transform: translateX(-400%); }
    95% { transform: translateX(-400%); }
    100% { transform: translateX(0%); }
}
.testimonial-carousel:hover {
    animation-play-state: paused;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    margin-right: 1.5rem;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.testimonial-quote-icon {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 3rem;
    color: rgba(159, 216, 50, 0.2);
}

.testimonial-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.nav-arrow {
    background: transparent;
    border: 2px solid var(--dark-border);
    color: var(--text-secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin: 0 0.5rem;
    opacity: 0.5; /* Moins visible car non-fonctionnels */
}

.nav-arrow:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--dark-bg);
    transform: scale(1.1);
}

/* =================================
   EXPERTISE PAGE STYLES
================================= */
.expertise-header {
    padding: 120px 0 60px;
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--dark-border);
}

.expertise-details {
    padding: 80px 0;
    background: var(--dark-bg);
}

.expertise-item {
    display: flex;
    gap: 2rem;
    padding: 3rem;
    margin-bottom: 2rem;
    background: var(--gradient-surface);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    transition: all var(--transition-normal);
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
    border-color: var(--primary-green);
}

.expertise-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-bg);
}

.expertise-content {
    flex: 1;
}

.expertise-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.expertise-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.expertise-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.expertise-features li {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expertise-features li::before {
    content: "•";
    color: var(--primary-green);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .expertise-item {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .expertise-icon {
        margin: 0 auto;
    }

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

    .expertise-features li {
        justify-content: center;
    }
}

/* ===============================
   ORBITAL ANIMATION SYSTEM
=============================== */
.orbital-system {
    position: relative;
    width: 700px;
    height: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 4px solid #4ADE80;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.3);
    z-index: 1;
}

.orbital-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    animation: rotate 25s linear infinite;
}

.orbital-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 4px solid #9FD832;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
}

.orbital-icon i {
    border: 3px solid #9FD832;
}

.orbital-icon span {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #9FD832;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.orbital-icon:hover {
    background: #9FD832;
    color: #1e293b;
    transform: scale(1.1);
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .orbital-system {
        width: 600px;
        height: 600px;
    }
    
    .orbital-center {
        width: 400px;
        height: 400px;
    }
    
    .orbital-item {
        width: 400px;
        height: 400px;
    }
    
    .orbital-icon {
        width: 80px;
        height: 80px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .orbital-system {
        width: 450px;
        height: 450px;
    }
    
    .orbital-center {
        width: 300px;
        height: 300px;
    }
    
    .orbital-item {
        width: 300px;
        height: 300px;
    }
    
    .orbital-icon {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .orbital-icon span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .orbital-system {
        width: 350px;
        height: 350px;
    }
    
    .orbital-center {
        width: 220px;
        height: 220px;
    }
    
    .orbital-item {
        width: 220px;
        height: 220px;
    }
    
    .orbital-icon {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

.values-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding: 0.5rem 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.value-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.value-item span {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .values-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Bouton Retour en haut */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #7fba00;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
    background-color: #6a9d00;
    transform: translateY(-3px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

.innovation-img {
    transition: filter 0.3s ease;
    max-width: 100%;
    height: auto;
    filter: brightness(0.3);
}

.innovation-img:hover {
    filter: hue-rotate(95deg) brightness(1.3) saturate(1.4);
    cursor: pointer;
}

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #2c3440;
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 320px;
    width: 90%;
}

.success-message.show {
    display: flex;
    opacity: 1;
}

.success-content {
    text-align: center;
    color: #fff;
    width: 100%;
}

.success-content p {
    margin: 0.8rem 0 0;
    font-size: 1rem;
    line-height: 1.4;
    padding: 0 0.5rem;
}

/* Animation de la coche */
.checkmark {
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #9FD832;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #9FD832;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Responsive pour h2 */
@media (max-width: 768px) {
    h2, .section-title {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    h2, .section-title {
        font-size: 28px !important;
    }
}

/* Uniformisation GLOBALE des h2 - Règle avec forte spécificité */
h2,
.section-title,
section h2,
.container h2,
div h2,
[class*="section"] h2,
[class*="container"] h2,
[class*="content"] h2,
[class*="header"] h2 {
    font-size: 42px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

/* Responsive pour TOUS les h2 */
@media (max-width: 768px) {
    h2,
    .section-title,
    section h2,
    .container h2,
    div h2,
    [class*="section"] h2,
    [class*="container"] h2,
    [class*="content"] h2,
    [class*="header"] h2 {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    h2,
    .section-title,
    section h2,
    .container h2,
    div h2,
    [class*="section"] h2,
    [class*="container"] h2,
    [class*="content"] h2,
    [class*="header"] h2 {
        font-size: 28px !important;
    }
}

/* Uniformisation GLOBALE des paragraphes - Règle avec forte spécificité */
p,
.section-subtitle,
section p,
.container p,
div p,
[class*="section"] p,
[class*="container"] p,
[class*="content"] p,
[class*="description"] p,
[class*="text"] p,
.text-content p,
.card p,
.hero p,
.about p,
.service p,
.footer p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    text-align-last: left !important;
    word-spacing: -0.5px !important;
    letter-spacing: 0.1px !important;
    
}

/* Exception uniquement pour les très petits écrans */
@media (max-width: 480px) {
    p,
    .section-subtitle,
    section p,
    .container p,
    div p,
    [class*="section"] p,
    [class*="container"] p,
    [class*="content"] p,
    [class*="description"] p,
    [class*="text"] p,
    .text-content p,
    .card p,
    .hero p,
    .about p,
    .service p,
    .footer p {
        font-size: 15px !important;
        text-align: justify !important;
        text-align-last: left !important;
        word-spacing: -0.5px !important;
        letter-spacing: 0.1px !important;
    }
}

.values-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
    padding: 2rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.value-card {
    flex: 1 1 23% !important;
    width: 23% !important;
    max-width: 23% !important;
    min-width: 250px !important;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(159, 216, 50, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
}

.value-card .value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 3.5rem !important; /* Agrandit les icônes FontAwesome */
    width: 90px;
    height: 90px;
}

.value-card .value-icon i {
    font-size: 3.5rem !important; /* Agrandit les icônes FontAwesome */
    color: #9FD832;
}

@media (max-width: 1200px) {
    .values-grid {
        gap: 1rem !important;
        padding: 1rem !important;
    }
    .value-card .value-icon {
        font-size: 2.5rem !important;
        width: 70px;
        height: 70px;
    }
    .value-card .value-icon i {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .values-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 120px) !important;
        grid-template-rows: repeat(2, 120px) !important;
        gap: 0.9rem !important;
        padding: 0.7rem !important;
        max-width: 270px !important;
        margin: 0 auto !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .value-card {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        min-height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        padding: 0.3rem !important;
        font-size: 0.95rem !important;
        border-radius: 14px !important;
        margin: 0 !important;
        box-shadow: 0 2px 8px -4px rgba(0,0,0,0.10);
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        overflow: hidden !important;
    }
    .value-card .value-icon {
        font-size: 1.3rem !important;
        width: 28px !important;
        height: 28px !important;
        margin-bottom: 0.2rem !important;
    }
    .value-card .value-icon i {
        font-size: 1.3rem !important;
    }
    .value-card h4 {
        font-size: 1.05rem !important;
        margin-bottom: 0 !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100%;
    }
}



.about-main-text {
    text-align: justify !important;
    text-align-last: left !important;
    word-spacing: -0.5px !important;
    letter-spacing: 0.1px !important;
}

.footer-desc {
  text-align: justify !important;
  text-align-last: center !important;
  word-spacing: -0.5px !important;
  letter-spacing: 0.1px !important;
  margin: 0 auto 1.2rem auto;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #d1d5db;
  max-width: 520px;
}

.portfolio-item {
  min-width: 30vw;
  max-width: 30vw;
}
@media (max-width: 1200px) {
  .portfolio-item {
    min-width: 45vw;
    max-width: 45vw;
  }
}
@media (max-width: 900px) {
  .portfolio-item {
    min-width: 90vw;
    max-width: 90vw;
  }
}


/* =============================
   FORMULAIRES SIMPLES (reset complet)
============================= */
.contact-form {
    padding: 2rem;
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.5); 
    border: 1px solid var(--dark-border);
    backdrop-filter: blur(10px);
}

.contact-form .form-group, /* Cible les divs contenant les champs */
.contact-form .form-row { /* Cible les divs contenant les rangées */
    margin-bottom: 1rem;
}

.contact-form label {
   display: block;
   margin-bottom: 0.5rem;
   color: var(--text-secondary);
   font-weight: 500;
   font-size: 0.9rem;
   transition: all 0.3s ease;
}

.contact-form input, 
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--dark-border);
    background: var(--dark-surface);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
}

.contact-form select {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem; /* Make space for the arrow */
}

.contact-form input:focus, 
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(159, 216, 50, 0.2);
}

.contact-form textarea {
     min-height: 120px;
     resize: vertical;
}

.contact-form button {
     width: 100%;
     padding: 0.8rem 1.5rem;
     border: none;
     border-radius: 8px;
     background: var(--primary-green);
     color: var(--dark-bg);
     font-size: 1rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     text-transform: uppercase;
     letter-spacing: 1px;
}

.contact-form button:hover {
     background: var(--primary-green-light);
     transform: translateY(-2px);
     box-shadow: var(--shadow-green);
}

/* Suppression des styles de formulaire avancé conflictuels */

/* Styles pour les astérisques en rouge */
.required-asterisk {
    color: #e74c3c !important;
    font-weight: bold !important;
}

/* =================================
   FORMULAIRE AVANCÉ avec labels flottants
================================= */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0 8px 0;
    border: none;
    border-bottom: 2px solid #333;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #b6ff7a;
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: #888;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -8px;
    font-size: 0.8rem;
    color: #b6ff7a;
}

.form-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #b6ff7a;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.form-group input:focus ~ .form-bar,
.form-group textarea:focus ~ .form-bar {
    transform: scaleX(1);
}

/* Styles pour les astérisques en rouge */
.required-asterisk {
    color: #e74c3c !important;
    font-weight: bold !important;
}

/* Styles pour le formulaire plus large */
.contact-content.centered .contact-form {
    max-width: 800px !important;
    width: 100% !important;
    margin: 0 auto;
}

/* Bouton vert personnalisé pour le formulaire avancé */
.contact-form .btn-primary {
    background: #9FD832 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: bold !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
}

.contact-form .btn-primary:hover {
    background: #8BC429 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(159, 216, 50, 0.3) !important;
}

/* Responsive pour les formulaires avancés */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-content.centered .contact-form {
        max-width: 100% !important;
        padding: 1.5rem !important;
    }
    
    /* Point 2: Ordre texte/image dans qui-sommes-nous.html */
    /* SUPPRIMÉ :
    .hero-content {
        flex-direction: column !important;
    }
    .hero-text {
        order: 1 !important;
        margin-bottom: 2rem !important;
    }
    .hero-visual {
        order: 2 !important;
    }
    */
}

@media (min-width: 1201px) {
    .values-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 320px) !important;
        grid-template-rows: repeat(2, 320px) !important;
        gap: 2rem !important;
        padding: 2rem !important;
        max-width: 700px !important;
        margin: 0 auto !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .value-card {
        width: 320px !important;
        height: 320px !important;
        min-width: 320px !important;
        min-height: 320px !important;
        max-width: 320px !important;
        max-height: 320px !important;
        padding: 2rem !important;
        font-size: 2.2rem !important;
        border-radius: 38px !important;
        margin: 0 !important;
        box-shadow: 0 10px 32px -8px rgba(0,0,0,0.10);
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        overflow: hidden !important;
    }
    .value-card .value-icon {
        font-size: 3.5rem !important;
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 1rem !important;
    }
    .value-card .value-icon i {
        font-size: 3.5rem !important;
    }
    .value-card h4 {
        font-size: 2.2rem !important;
        margin-bottom: 0 !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100%;
    }
}

@media (max-width: 900px) {
  .expertise-grid-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-top: 20px !important;
  }
  .orbital-system {
    width: 90vw !important;
    height: 90vw !important;
    max-width: 400px !important;
    max-height: 400px !important;
    min-width: 260px !important;
    min-height: 260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .expertise-description[data-aos] {
    padding-left: 0 !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto 0 auto !important;
    text-align: center !important;
  }
  .expertise-description[data-aos] h3,
  .expertise-description[data-aos] h4,
  .expertise-description[data-aos] p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (max-width: 500px) {
  .orbital-system {
    width: 98vw !important;
    height: 98vw !important;
    max-width: 320px !important;
    max-height: 320px !important;
    min-width: 180px !important;
    min-height: 180px !important;
  }
}

/* Correction : footer non centré sur desktop pour nos expertises */
.footer, .footer-content, .footer-section, .footer-bottom {
  text-align: initial !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .footer-section {
    align-items: center !important;
    text-align: center !important;
  }
}

/* Correction footer nos expertises : occupe toute la largeur */
.footer, .footer .container, .footer-content {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  text-align: left !important;
}

@media (max-width: 900px) {
  .contact-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
  }
  .footer-social {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 1rem !important;
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  .footer-section:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .contact-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    justify-content: center !important;
    width: auto !important;
    text-align: center !important;
  }
  .footer-social {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 1rem !important;
    width: auto !important;
  }
}

@media (max-width: 900px) {
  .footer-section:last-child,
  .footer-section:last-child * {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  .footer-section:last-child .contact-item {
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
    gap: 0.5rem !important;
    display: flex !important;
    flex-direction: row !important;
  }
  .footer-section:last-child .footer-social {
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 1rem !important;
    gap: 1rem !important;
    display: flex !important;
    flex-direction: row !important;
  }
}

@media (max-width: 900px) {
  .footer, .footer .container, .footer-content {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
  }
  .footer-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 2rem !important;
  }
  .footer-section, .footer-desc {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-logo {
    justify-content: center !important;
    margin: 0 auto 1rem auto !important;
  }
  .footer-social {
    justify-content: center !important;
    margin: 0 auto 1rem auto !important;
  }
  .contact-item {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto 0.6rem auto !important;
  }
}

@media (max-width: 900px) {
  .footer-section:last-child .contact-item {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.2rem !important;
  }
  .footer-section:last-child .contact-item i,
  .footer-section:last-child .contact-item span {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
    float: none !important;
  }
}

@media (max-width: 900px) {
  .footer-section:last-child .contact-item {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
  .footer-section:last-child .contact-item i,
  .footer-section:last-child .contact-item span {
    display: inline-block !important;
    margin: 0 !important;
    text-align: center !important;
    float: none !important;
  }
}

@media (max-width: 900px) {
  .stacked-cards-container {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
  }
  .section-header {
    margin-top: 0.5rem !important;
    padding-top: 0 !important;
  }
}

/* Centrage spécifique pour qui-sommes-nous.html */
.about-main-text {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  width: 100%;
  max-width: 800px !important;
}

/* Centrage des sous-titres dans les sections Vision & Mission et Valeurs */
.vision-mission .section-subtitle,
.values-section .section-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  width: 100%;
  max-width: 500px !important;
}

/* Centrage forcé pour les sous-titres spécifiques */
.vision-mission .section-header .section-subtitle,
.values-section .section-header .section-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  width: 100%;
  max-width: 400px !important;
}

/* Centrage du sous-titre dans nos-realisations.html */
.portfolio-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  width: 100%;
  max-width: 480px !important;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-button {
    background: transparent;
    border: 2px solid #9FD832;
    color: #9FD832;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-button:hover, .filter-button.active {
    background: #9FD832;
    color: #1e293b;
}

@media (min-width: 1024px) {
  .section-header .section-subtitle,
  .section-header p.section-subtitle,
  .section-subtitle {
    max-width: 900px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 900px) {
  .expertise-description[data-aos] {
    transform: translateY(-150px) !important;
    margin-bottom: -150px !important;
  }
}

@media (min-width: 901px) {
  .expertise-description[data-aos] {
    transform: translateY(-60px) !important; /* Ajuste la valeur selon le rendu souhaité */
  }
}

@media (max-width: 900px) {
  /* --- Bloc expertise-description mobile : personnalisez ici --- */
  .expertise-description[data-aos] {
    text-align: justify !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    width: 100% !important;
    max-width: 300px !important; /* ← Ajustez la largeur maximale ici */
    /* Vous pouvez aussi ajouter un padding-top ou bottom si besoin */
    /* padding-top: 10px !important; */
    /* padding-bottom: 10px !important; */
  }
  .expertise-description[data-aos] h3,
  .expertise-description[data-aos] h4 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .expertise-description[data-aos] p,
  .expertise-description[data-aos] div {
    text-align: justify !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.testimonial-title {
    text-align: center !important;
}

/* =============================
   FORMULAIRES (version unifiée)
============================= */
.contact-form {
    padding: 2rem;
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.5); 
    border: 1px solid var(--dark-border);
    backdrop-filter: blur(10px);
}

.contact-form .form-group,
.contact-form .form-row {
    margin-bottom: 1rem;
}

.contact-form label {
   display: block;
   margin-bottom: 0.5rem;
   color: var(--text-secondary);
   font-weight: 500;
   font-size: 0.9rem;
   transition: all 0.3s ease;
   position: static; /* Assure que le label reste dans le flux normal */
}

.contact-form input, 
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--dark-border);
    background: var(--dark-surface);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
}

.contact-form select {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem; /* Espace pour la flèche */
}

.contact-form input:focus, 
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(159, 216, 50, 0.2);
}

.contact-form textarea {
     min-height: 120px;
     resize: vertical;
}

.contact-form button {
     width: 100%;
     padding: 0.8rem 1.5rem;
     border: none;
     border-radius: 8px;
     background: var(--primary-green);
     color: var(--dark-bg);
     font-size: 1rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     text-transform: uppercase;
     letter-spacing: 1px;
}

.contact-form button:hover {
     background: var(--primary-green-light);
     transform: translateY(-2px);
     box-shadow: var(--shadow-green);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Styles pour les astérisques en rouge */
.required-asterisk {
    color: #e74c3c !important;
    font-weight: bold !important;
}

/* Styles pour la notification de succès */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #2c3440;
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 320px;
    width: 90%;
}

.success-message.show {
    display: flex;
    opacity: 1;
}

.success-content {
    text-align: center;
    color: #fff;
    width: 100%;
}

.success-content p {
    margin: 0.8rem 0 0;
    font-size: 1rem;
    line-height: 1.4;
    padding: 0 0.5rem;
}

/* Animation de la coche */
.checkmark {
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #9FD832;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #9FD832;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Règle avec spécificité élevée pour forcer les styles du message de succès */
.success-message,
#success-message,
.success-message.show,
#success-message.show {
    background-color: #1a472a !important;
    color: #ffffff !important;
    border: 1px solid #2d5a3d !important;
}

.success-message p,
#success-message p,
.success-content p {
    color: #ffffff !important;
}



