/* ======================================================
   SERGHINI DEVELOPMENT - PORTFOLIO
   Fichier CSS principal
   ====================================================== */

/* =================== VARIABLES =================== */
:root {
    /* Couleurs principales */
    --primary: #0f3559;
    --primary-dark: #0a2540;
    --primary-light: #2a5683;
    --accent: #1eb2a6;
    --accent-dark: #16857c;
    --accent-light: #3ecdc2;
    
    /* Couleurs neutres */
    --dark: #0a1f33;
    --gray-dark: #425d7b;
    --gray: #617693;
    --gray-light: #a0b1c5;
    --light: #f5f9ff;
    
    /* Couleurs additionnelles */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Typography */
    --body-font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --heading-font: 'Montserrat', 'Segoe UI', sans-serif;
    
    /* Dimensions */
    --header-height: 80px;
    --section-padding: 120px 0;
    --section-padding-mobile: 80px 0;
    
    /* Autres */
    --border-radius: 10px;
    --border-radius-sm: 5px;
    --box-shadow: 0 10px 30px rgba(10, 37, 64, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-slow: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* =================== RESET & BASE =================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* =================== UTILITAIRES =================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-accent {
    color: var(--accent);
}

.section {
    position: relative;
    padding: var(--section-padding);
    overflow: hidden;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.03);
    z-index: -1;
}

.grid-bg {
    background-image: 
        linear-gradient(to right, rgba(160, 177, 197, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(160, 177, 197, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    width: 100%;
    height: 100%;
}

.skewed-bg {
    transform: skewY(-3deg);
    transform-origin: top right;
    background: linear-gradient(135deg, rgba(245, 249, 255, 0.5), rgba(240, 245, 250, 0.8));
}

.skewed-bg.reverse {
    transform: skewY(3deg);
    transform-origin: top left;
}

.full-height {
    min-height: 100vh;
}

.mt-50 {
    margin-top: 50px;
}

/* =================== PRELOADER =================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-svg {
    width: 80px;
    height: 80px;
}

.logo-path {
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: draw-logo 3s forwards;
}

.logo-accent {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-logo 2s 0.5s forwards;
}

@keyframes draw-logo {
    to {
        stroke-dashoffset: 0;
    }
}

.loading-text {
    margin-top: 20px;
    color: white;
    font-size: 1rem;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.loading-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    border-left: 2px solid var(--accent);
    animation: typing 3s steps(23) 1s forwards;
}

@keyframes typing {
    to {
        left: 100%;
    }
}

/* =================== CUSTOM CURSOR =================== */
.cursor, .cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(30, 178, 166, 0.5);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    display: none;
}

.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
}

.cursor-follower {
    background-color: transparent;
    border: 2px solid var(--accent);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

@media (pointer: fine) {
    .cursor, .cursor-follower {
        display: block;
    }
}

/* =================== HEADER =================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    background-color: rgba(10, 37, 64, 0.98);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 2;
}

.logo img {
    height: 40px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 35px;
}

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

.nav-link {
    color: white;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

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

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

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

.header-right {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 2;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(30, 178, 166, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    box-shadow: 0 8px 25px rgba(30, 178, 166, 0.4);
    transform: translateY(-3px);
    color: white;
}

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

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

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

.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
}

.btn-arrow::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-arrow:hover {
    color: var(--accent-dark);
}

.btn-arrow:hover::after {
    transform: translateX(5px);
}

.btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* =================== HERO SECTION =================== */
#hero {
    position: relative;
    background-color: var(--primary-dark);
    color: white;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background-color: var(--accent);
    top: -200px;
    right: -100px;
    animation: blob-float 15s ease-in-out infinite alternate;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background-color: var(--primary-light);
    bottom: -100px;
    left: 0;
    animation: blob-float 10s ease-in-out infinite alternate-reverse;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 30px) scale(1.1);
    }
    100% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: 50px;
}

.hero-text {
    width: 50%;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-animation-1 5s linear infinite alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-light);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-animation-2 5s linear infinite alternate-reverse;
}

@keyframes glitch-animation-1 {
    0% {
        clip: rect(44px, 450px, 56px, 0);
    }
    5% {
        clip: rect(74px, 450px, 86px, 0);
    }
    10% {
        clip: rect(64px, 450px, 76px, 0);
    }
    15% {
        clip: rect(124px, 450px, 136px, 0);
    }
    /* ... and so on */
    100% {
        clip: rect(144px, 450px, 156px, 0);
    }
}

@keyframes glitch-animation-2 {
    0% {
        clip: rect(44px, 450px, 56px, 0);
    }
    5% {
        clip: rect(14px, 450px, 26px, 0);
    }
    10% {
        clip: rect(164px, 450px, 176px, 0);
    }
    15% {
        clip: rect(24px, 450px, 36px, 0);
    }
    /* ... and so on */
    100% {
        clip: rect(4px, 450px, 16px, 0);
    }
}

.hero-text .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.typing-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    min-height: 30px;
    font-size: 1.2rem;
}

.static-text {
    font-weight: 500;
}

.dynamic-text {
    position: relative;
    font-weight: 600;
    color: var(--accent);
}

.dynamic-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 2px;
    height: 100%;
    background-color: var(--accent);
    animation: blink 0.7s infinite;
}

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

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    width: 45%;
    position: relative;
}

.device-mockup {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 200%;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 1%;
    left: 1%;
    width: 98%;
    height: 98%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 35px;
    overflow: hidden;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
}

.notch {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 25px;
    background-color: var(--primary-dark);
    border-radius: 0 0 15px 15px;
    z-index: 1;
}

.notch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.floating-item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.floating-item i {
    font-size: 2rem;
    color: var(--accent);
}

.item-1 {
    top: 20%;
    left: -30px;
    animation: float-1 5s ease-in-out infinite;
}

.item-2 {
    top: 40%;
    right: -20px;
    animation: float-2 6s ease-in-out infinite;
}

.item-3 {
    bottom: 30%;
    left: -20px;
    animation: float-3 7s ease-in-out infinite;
}

.item-4 {
    bottom: 10%;
    right: -25px;
    animation: float-4 8s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(15px) rotate(-5deg);
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(-3deg);
    }
}

@keyframes float-4 {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(10px) rotate(5deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0.7;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

.scroll-indicator .text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =================== SECTION HEADERS =================== */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle::before, .section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background-color: var(--accent);
}

.section-subtitle::before {
    left: -30px;
}

.section-subtitle::after {
    right: -30px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.title-separator {
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* =================== ABOUT SECTION =================== */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.ceo-message {
    display: flex;
    gap: 50px;
    align-items: center;
}

.ceo-image {
    width: 40%;
    position: relative;
}

.ceo-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.experience-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 120px;
    height: 120px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(30, 178, 166, 0.3);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-align: center;
    max-width: 80%;
}

.ceo-content {
    width: 55%;
}

.ceo-content h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.ceo-content h4 {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    padding: 20px 30px;
    background-color: rgba(30, 178, 166, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
}

.signature {
    margin-top: 2s0px;
}

.signature img {
    height: 160px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.value-card:hover::before {
    height: 100%;
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(30, 178, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
    font-size: 1.8rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background-color: var(--accent);
    color: white;
    transform: rotateY(360deg);
}

.value-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.value-card:hover h4 {
    color: var(--accent);
}

.counter-section {
    display: flex;
    justify-content: space-between;
    background-color: var(--primary);
    border-radius: var(--border-radius);
    padding: 50px;
    color: white;
    box-shadow: var(--box-shadow);
}

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

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent);
    margin-bottom: 10px;
}

.counter-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* =================== SERVICES SECTION =================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 70px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(30, 178, 166, 0.1), rgba(30, 178, 166, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    position: relative;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 25px;
}

.service-features {
    margin-bottom: 30px;
}

.service-features li {
    margin-bottom: 10px;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 0.8rem;
}

.service-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    color: rgba(30, 178, 166, 0.03);
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover .service-bg-icon {
    color: rgba(30, 178, 166, 0.05);
    transform: rotate(10deg);
}

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

.tech-stack h3 {
    margin-bottom: 30px;
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
}

.tech-slider {
    overflow: hidden;
    padding: 20px 0;
}

.swiper-container {
    width: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 1.1rem;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.swiper-slide:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 178, 166, 0.2);
}

.swiper-slide i {
    margin-right: 10px;
}

/* =================== PROJECTS SECTION =================== */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: none;
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-img {
    position: relative;
    width: 100%;
    height: 250px; /* Hauteur augmentée pour donner plus d'espace */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5; /* Arrière-plan clair pour les logos */
}

.project-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto; /* Largeur automatique plutôt que forcée à 100% */
    height: auto; /* Hauteur automatique plutôt que forcée à 100% */
    object-fit: contain; /* "contain" au lieu de "cover" pour montrer l'image entière */
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.05); /* Zoom plus léger pour éviter le cropping */
}

/* Pour les logos spécifiquement, vous pouvez ajouter cette classe */
.project-img.logo-container img {
    padding: 20px; /* Ajoute un peu d'espace autour du logo */
    max-width: 80%; /* Limite la largeur pour que le logo ne prenne pas toute la place */
}
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.9), transparent);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition);
    color: white;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.project-overlay h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
}

.project-overlay p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-actions {
    display: flex;
    gap: 15px;
}

/* =================== TESTIMONIALS SECTION =================== */
.testimonial-slider {
    position: relative;
    padding: 0 50px;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-content {
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 3rem;
    color: rgba(30, 178, 166, 0.1);
    z-index: -1;
}

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

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--accent);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.swiper-pagination {
    bottom: -5px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 20px;
    border-radius: 5px;
}

.swiper-button-next, .swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1rem;
    font-weight: bold;
}

/* =================== CONTACT SECTION =================== */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    width: 40%;
    padding-right: 30px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(30, 178, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-text p {
    margin-bottom: 0;
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(30, 178, 166, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-5px);
}

.contact-map {
    margin-top: 30px;
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(30, 178, 166, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 178, 166, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(30, 178, 166, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 178, 166, 0);
    }
}

.contact-form {
    width: 60%;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--gray);
}

.textarea-icon {
    top: 20px;
    transform: none;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e0e5ef;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

textarea.form-control {
    min-height: 150px;
    padding-top: 15px;
    resize: vertical;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 178, 166, 0.1);
}

.form-control::placeholder {
    color: var(--gray-light);
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    transition: var(--transition);
}

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

/* =================== FOOTER =================== */
footer {
    background-color: var(--primary-dark);
    color: white;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo {
    width: 30%;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-logo p {
    opacity: 0.7;
    line-height: 1.7;
}

.footer-links, .footer-services {
    width: 20%;
}

.footer-links h3, .footer-services h3, .footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-services h3::after, .footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.footer-links ul, .footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a, .footer-services a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a i, .footer-services a i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.footer-links a:hover, .footer-services a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-newsletter {
    width: 30%;
}

.footer-newsletter p {
    opacity: 0.7;
    margin-bottom: 20px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 0 15px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--accent-dark);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* =================== BACK TO TOP BUTTON =================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(30, 178, 166, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-dark);
    transform: translateY(-5px);
}

/* =================== MODAL =================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.8);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

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

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.project-image-slider {
    width: 100%;
    flex: 1 1 45%;
    position: relative;
}

.project-images {
    width: 100%;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.project-info {
    flex: 1 1 45%;
}

.project-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    background-color: rgba(30, 178, 166, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
}

.project-meta span i {
    color: var(--accent);
}

.project-description {
    margin-bottom: 30px;
}

.project-technologies h4, .project-result h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tech-tags li {
    padding: 5px 15px;
    background-color: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.result-list {
    margin-bottom: 30px;
    padding-left: 20px;
}

.result-list li {
    position: relative;
    padding-left: 10px;
    margin-bottom: 10px;
    list-style-type: none;
}

.result-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -15px;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
        --section-padding-mobile: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text, .hero-image {
        width: 100%;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 50px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .typing-container {
        justify-content: center;
    }
    
    .device-mockup {
        margin: 0 auto;
        max-width: 300px;
    }
    
    .ceo-message {
        flex-direction: column;
    }
    
    .ceo-image, .ceo-content {
        width: 100%;
    }
    
    .ceo-image {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .ceo-image img {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    .contact-info {
        margin-bottom: 50px;
    }
    
    .footer-logo, .footer-links, .footer-services, .footer-newsletter {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --section-padding-mobile: 40px 0;
    }
    
    html {
        font-size: 15px;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background-color: var(--primary-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 40px 20px;
        transition: var(--transition);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .counter-section {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .counter-item {
        width: 45%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image-slider, .project-info {
        flex: 1 1 100%;
    }
    
    .project-details {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .counter-item {
        width: 100%;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .modal-container {
        width: 95%;
    }
}

/* =================== LOGO STYLING =================== */
.logo-text {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    transition: var(--transition);
    position: relative;
}

.logo-main {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-dot {
    color: var(--accent);
    font-size: 2rem;
    margin: 0 1px;
    animation: pulse-dot 2s infinite;
}

.logo-dev {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

@keyframes pulse-dot {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transition: var(--transition);
}

.logo-text:hover::after {
    width: 100%;
}

header.scrolled .logo-text {
    font-size: 1.6rem;
}

footer .logo-text {
    margin-bottom: 20px;
    display: inline-flex;
}

.footer-logo .logo-text {
    color: white;
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    header.scrolled .logo-text {
        font-size: 1.4rem;
    }
}

/* =================== ANIMATIONS =================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

/* AOS fallback animations */
[data-aos="fadeIn"] {
    opacity: 0;
    transition: opacity 0.8s ease;
}

[data-aos="fadeIn"].aos-animate {
    opacity: 1;
}

[data-aos="slideUp"] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="slideUp"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* =================== UTILITIES =================== */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.no-scroll {
    overflow: hidden !important;
}