/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Epilogue', sans-serif;
    font-weight: 300;
    background: #f5f5f7;
    color: #333;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 10px 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
#progress-bar-container {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(21, 144, 193, 0.1);
    z-index: 999;
    transition: top 0.3s ease;
}

#navbar.scrolled + #progress-bar-container {
    top: 65px;
}

#progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1590c1 0%, #f4b828 50%, #29235c 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(21, 144, 193, 0.5);
}

#navbar .page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

#logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

#logo:hover {
    transform: translateY(-3px);
}

#logo img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 10px rgba(21, 144, 193, 0.3));
    transition: all 0.3s ease;
}

#navbar.scrolled #logo img {
    width: 45px;
    height: 45px;
}

#logo:hover img {
    filter: drop-shadow(0 6px 15px rgba(21, 144, 193, 0.5));
    transform: rotate(5deg);
}


#nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

#nav a.item {
    text-decoration: none;
    color: #29235c;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

#nav a.item::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1590c1, #f4b828);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

#nav a.item:hover {
    background: rgba(21, 144, 193, 0.1);
    color: #1590c1;
}

#nav a.item:hover::after {
    width: 70%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #29235c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== NEW HERO SECTION WITH THREE.JS (Based on ville.png) ===== */
#hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    display: flex;
    align-items: center;
}

#threejs-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 14, 39, 0.4) 100%);
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 80px;
    pointer-events: none;
}

.hero-content * {
    pointer-events: auto;
}

.hero-content .page {
    max-width: 700px;
    margin: 0;
    padding: 0;
    text-align: left;
}

.hero-title-container {
    animation: fadeInUp 1.2s ease;
    background: rgba(10, 14, 39, 0.75);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

#hero-title {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#hero-title .hero-highlight {
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

#hero-title .hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: #f4b828;
    z-index: -1;
    transform: skewY(-2deg);
}

#hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-cta {
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #1590c1, #0d7ba8);
    color: white;
    box-shadow: 0 10px 40px rgba(21, 144, 193, 0.4);
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(21, 144, 193, 0.6);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #1590c1;
    transform: translateY(-5px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
}

.hero-scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 10px;
    margin-left: -3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== COMMON LAYOUT ===== */
.page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.block {
    padding: 100px 0;
}

.bg-light-1 {
    background: #ffffff;
}

.bg-light-2 {
    background: #f5f5f7;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    display: flex;
    gap: 60px;
    align-items: center;
}

.self-photo {
    flex: 0 0 300px;
}

.self-photo img {
    width: 100%;
    height: auto;
    border: 16px solid #f6f4f4;
    border-radius: 31% 69% 23% 77% / 66% 18% 82% 34%;
    background: radial-gradient(circle at 100% 100%, #ffffff 0, #ffffff 3px, transparent 3px) 0% 0%/8px 8px no-repeat,
                radial-gradient(circle at 0 100%, #ffffff 0, #ffffff 3px, transparent 3px) 100% 0%/8px 8px no-repeat,
                radial-gradient(circle at 100% 0, #ffffff 0, #ffffff 3px, transparent 3px) 0% 100%/8px 8px no-repeat,
                radial-gradient(circle at 0 0, #ffffff 0, #ffffff 3px, transparent 3px) 100% 100%/8px 8px no-repeat,
                linear-gradient(#ffffff, #ffffff) 50% 50%/calc(100% - 10px) calc(100% - 16px) no-repeat,
                linear-gradient(#ffffff, #ffffff) 50% 50%/calc(100% - 16px) calc(100% - 10px) no-repeat,
                linear-gradient(179deg, #ffffff 47%, #1590c1 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.self-photo img:hover {
    transform: scale(1.05) rotate(2deg);
}

.about-content {
    flex: 1;
}

.about-content p {
    margin: 20px 0;
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
}

.first-letter {
    font-size: 2em;
    font-weight: 600;
    font-style: italic;
    float: left;
    margin-right: 8px;
    line-height: 1;
}

.c-blue { color: #1590c1; }
.c-purple { color: #29235c; }
.c-yellow { color: #f4b828; }

a.btn {
    display: inline-block;
    padding: 15px 35px;
    margin-top: 20px;
    background: linear-gradient(135deg, #1590c1, #0d7ba8);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(21, 144, 193, 0.3);
    position: relative;
    overflow: hidden;
}

a.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

a.btn:hover::before {
    width: 300px;
    height: 300px;
}

a.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(21, 144, 193, 0.4);
}

/* ===== NEW SLOGAN SECTION ===== */
.slogan-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1590c1 0%, #0d7ba8 50%, #29235c 100%);
    padding: 120px 0;
}

.slogan-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}

.slogan-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.slogan-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.slogan-icon img {
    width: 70px;
    height: 70px;
    filter: brightness(0) invert(1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.slogan-title {
    font-size: 56px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slogan-highlight {
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.slogan-highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: #f4b828;
    z-index: -1;
    transform: skewY(-2deg);
}

.slogan-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-header h1 {
    font-size: 56px;
    font-weight: 700;
    color: #29235c;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.portfolio-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1590c1, #f4b828);
    border-radius: 2px;
}

.filter-container {
    text-align: center;
    margin-bottom: 50px;
}

.filter-tags {
    display: inline-flex;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    justify-content: center;
}

.tag-btn {
    padding: 12px 28px;
    border: 2px solid transparent;
    background: transparent;
    color: #29235c;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tag-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(21, 144, 193, 0.2), transparent);
    transition: left 0.5s;
}

.tag-btn:hover::before {
    left: 100%;
}

.tag-btn:hover {
    border-color: #1590c1;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(21, 144, 193, 0.3);
}

.tag-btn.active {
    background: linear-gradient(135deg, #1590c1, #0d7ba8);
    color: white;
    border-color: #1590c1;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(21, 144, 193, 0.4);
}

.project-count {
    margin-top: 20px;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.project-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(21, 144, 193, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    flex: 0 0 calc(33.333% - 27px);
    max-width: 400px;
    min-width: 280px;
}

.project-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 144, 193, 0.1), rgba(244, 184, 40, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.project-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.project-item:hover::after {
    opacity: 1;
}

.project-item .image {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #f0f0f0;
}

.project-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-item:hover .image img {
    transform: scale(1.1);
}

.project-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.project-item:hover .overlay {
    transform: translateY(0);
    opacity: 1;
}

.overlay .title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.yellow { background: #f4b828; color: white; }
.tag.green { background: #4f9728; color: white; }
.tag.red { background: #bb3b3b; color: white; }
.tag.blue { background: #4e3bbb; color: white; }

.highlight {
    position: relative;
    display: inline-block;
}

.highlight::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 60%;
    bottom: 0;
    left: 0;
    background: #f4b828;
    opacity: 0.4;
    z-index: -1;
}

/* ===== CUSTOMERS CAROUSEL (FIXED - Logos always visible) ===== */
.customers-section h1 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #1590c1;
    margin-bottom: 60px;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 80px;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 33.333%;
    padding: 20px;
    box-sizing: border-box;
}

.carousel-slide .logo-item {
    width: 100%;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    transition: all 0.4s ease;
    cursor: pointer;
}

.carousel-slide .logo-item:hover {
    transform: scale(1.1);
    opacity: 1;
}


/* ===== NEW SKILLS SECTION - All visible ===== */
.skills-header {
    text-align: center;
    margin-bottom: 60px;
}

.skills-header h1 {
    font-size: 56px;
    font-weight: 700;
    color: #1590c1;
    margin-bottom: 30px;
}

.skills-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 20px auto;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.skill-category {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1590c1, #f4b828);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.skill-category-icon {
    font-size: 40px;
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.skill-category-title {
    font-size: 24px;
    font-weight: 700;
    color: #29235c;
}

.skill-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.skill-list li {
    font-size: 15px;
    color: #555;
    padding: 10px 35px 10px 40px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.skill-list li.hidden {
    display: none;
}

.skill-list li::before {
    position: absolute;
    left: 15px;
    color: #1590c1;
    font-weight: 700;
    font-size: 16px;
}

/* Hardware icons */
.skill-category:nth-child(1) .skill-list li:nth-child(1)::before { content: '📐'; } /* Conception */
.skill-category:nth-child(1) .skill-list li:nth-child(2)::before { content: '🛠️'; } /* CAO */
.skill-category:nth-child(1) .skill-list li:nth-child(3)::before { content: '⚡'; } /* Analogique */
.skill-category:nth-child(1) .skill-list li:nth-child(4)::before { content: '🔌'; } /* Alimentation */
.skill-category:nth-child(1) .skill-list li:nth-child(5)::before { content: '📻'; } /* RF */
.skill-category:nth-child(1) .skill-list li:nth-child(6)::before { content: '💰'; } /* BOM */
.skill-category:nth-child(1) .skill-list li:nth-child(7)::before { content: '🔬'; } /* Tests */
.skill-category:nth-child(1) .skill-list li:nth-child(8)::before { content: '💻'; } /* Numérique */
.skill-category:nth-child(1) .skill-list li:nth-child(9)::before { content: '🔋'; } /* Low-power */
.skill-category:nth-child(1) .skill-list li:nth-child(10)::before { content: '🧠'; } /* Intelligence */

/* Connectivity icons */
.skill-category:nth-child(2) .skill-list li:nth-child(1)::before { content: '📶'; } /* BLE/WiFi */
.skill-category:nth-child(2) .skill-list li:nth-child(2)::before { content: '🌐'; } /* LPWAN */
.skill-category:nth-child(2) .skill-list li:nth-child(3)::before { content: '📱'; } /* NB-IoT */
.skill-category:nth-child(2) .skill-list li:nth-child(4)::before { content: '📞'; } /* GSM */
.skill-category:nth-child(2) .skill-list li:nth-child(5)::before { content: '📡'; } /* RF freq */
.skill-category:nth-child(2) .skill-list li:nth-child(6)::before { content: '💳'; } /* RFID */
.skill-category:nth-child(2) .skill-list li:nth-child(7)::before { content: '🔗'; } /* Ethernet */
.skill-category:nth-child(2) .skill-list li:nth-child(8)::before { content: '🛰️'; } /* GPS */
.skill-category:nth-child(2) .skill-list li:nth-child(9)::before { content: '🏭'; } /* Industriel */

/* Firmware icons */
.skill-category:nth-child(3) .skill-list li:nth-child(1)::before { content: '👨‍💻'; } /* Languages */
.skill-category:nth-child(3) .skill-list li:nth-child(2)::before { content: '⚙️'; } /* RTOS */
.skill-category:nth-child(3) .skill-list li:nth-child(3)::before { content: '🔧'; } /* MCU */
.skill-category:nth-child(3) .skill-list li:nth-child(4)::before { content: '🚗'; } /* Drivers */
.skill-category:nth-child(3) .skill-list li:nth-child(5)::before { content: '📡'; } /* FOTA */
.skill-category:nth-child(3) .skill-list li:nth-child(6)::before { content: '🔒'; } /* Sécurité */
.skill-category:nth-child(3) .skill-list li:nth-child(7)::before { content: '🖥️'; } /* UI/UX */
.skill-category:nth-child(3) .skill-list li:nth-child(8)::before { content: '✅'; } /* Tests */
.skill-category:nth-child(3) .skill-list li:nth-child(9)::before { content: '⚡'; } /* Baremetal */
.skill-category:nth-child(3) .skill-list li:nth-child(10)::before { content: '💾'; } /* Stockage */
.skill-category:nth-child(3) .skill-list li:nth-child(11)::before { content: '🔢'; } /* Mathématiques */
.skill-category:nth-child(3) .skill-list li:nth-child(12)::before { content: '🤖'; } /* Automatisme */
.skill-category:nth-child(3) .skill-list li:nth-child(13)::before { content: '🐧'; } /* Linux */

/* Tools icons */
.skill-category:nth-child(4) .skill-list li:nth-child(1)::before { content: '🌿'; } /* Git */
.skill-category:nth-child(4) .skill-list li:nth-child(2)::before { content: '🔄'; } /* CI/CD */
.skill-category:nth-child(4) .skill-list li:nth-child(3)::before { content: '📦'; } /* CAO 3D */
.skill-category:nth-child(4) .skill-list li:nth-child(4)::before { content: '🌐'; } /* Web */
.skill-category:nth-child(4) .skill-list li:nth-child(5)::before { content: '🐳'; } /* Docker */
.skill-category:nth-child(4) .skill-list li:nth-child(6)::before { content: '📱'; } /* Mobile */
.skill-category:nth-child(4) .skill-list li:nth-child(7)::before { content: '🎮'; } /* Unity */
.skill-category:nth-child(4) .skill-list li:nth-child(8)::before { content: '👁️'; } /* OpenCV */

/* Indicateur de plus d'infos - ajout d'une petite flèche à droite */
.skill-list li[data-tooltip]::before {
    /* L'emoji est déjà utilisé, on ajoute la flèche après l'emoji */
    content: '📐 ';
}

.skill-list li[data-tooltip]::after {
    content: ' ›';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(21, 144, 193, 0.5);
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    pointer-events: none;
}

.skill-list li:hover {
    background: #1590c1;
    color: white;
    transform: translateX(5px);
}

.skill-list li:hover::after {
    color: #f4b828 !important;
    transform: translateY(-50%) translateX(3px) !important;
}

/* Tooltip sur les compétences - utilise un attribut data différent */
.skill-list li[data-tooltip] {
    position: relative;
}

/* Créer le tooltip avec un pseudo-élément qui apparaît seulement au hover */
.skill-list li[data-tooltip]:hover {
    overflow: visible;
}

.skill-list li[data-tooltip]:hover::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    bottom: calc(100% + 12px) !important;
    right: auto !important;
    left: 50% !important;
    top: auto !important;
    transform: translateX(-50%) translateY(0) !important;
    background:
        /* Triangle pointant vers le bas au centre */
        linear-gradient(135deg, #ffffff 50%, transparent 50%) calc(50% - 6px) calc(100% - 8px) / 12px 12px no-repeat,
        linear-gradient(225deg, #ffffff 50%, transparent 50%) calc(50% - 6px) calc(100% - 8px) / 12px 12px no-repeat,
        /* Bordure gradient */
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(90deg, #1590c1, #f4b828) border-box !important;
    color: #333 !important;
    padding: 12px 16px 20px 16px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: normal !important;
    z-index: 1000 !important;
    max-width: 280px !important;
    min-width: 200px !important;
    text-align: center !important;
    line-height: 1.5 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid transparent !important;
    opacity: 1 !important;
    pointer-events: none !important;
    transition: none !important;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Bouton voir plus */
.show-more-btn {
    display: block;
    margin: 15px auto 0 auto;
    padding: 10px 25px;
    background: linear-gradient(135deg, #1590c1, #0d7ba8);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(21, 144, 193, 0.3);
}

.show-more-btn.hidden {
    display: none;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 144, 193, 0.4);
}

.show-more-btn.active {
    background: linear-gradient(135deg, #29235c, #1a1840);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, #1590c1 0%, #0d7ba8 50%, #29235c 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-highlight {
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.contact-highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: #f4b828;
    z-index: -1;
    transform: skewY(-2deg);
}

.contact-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    line-height: 1.6;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1590c1, #f4b828);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}


.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #1590c1, #0d7ba8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 25px rgba(21, 144, 193, 0.3);
    transition: all 0.3s ease;
}

.contact-icon img,
.contact-icon svg {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* Rendre l'icône Malt blanche comme les autres SVG */
.malt-icon img {
    filter: brightness(0) invert(1);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(21, 144, 193, 0.5);
}

.contact-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #29235c;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1590c1, #0d7ba8);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(21, 144, 193, 0.3);
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-link:hover::before {
    width: 300px;
    height: 300px;
}

.contact-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(21, 144, 193, 0.6);
}

.contact-info {
    font-size: 16px;
    color: #1590c1;
    font-weight: 600;
    word-break: break-all;
}

/* ===== FOOTER ===== */
#footer {
    background: linear-gradient(135deg, #f5f5f7 0%, #ececec 100%);
    color: #333;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(21, 144, 193, 0.1);
}

#footer .page {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

#footer .mentions {
    flex: 0 0 200px;
    text-align: center;
}

#footer .mentions img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(21, 144, 193, 0.3));
}

#footer .mentions p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

#footer .footer-column {
    flex: 1;
    min-width: 200px;
}

#footer .title {
    font-size: 18px;
    font-weight: 700;
    color: #1590c1;
    margin-bottom: 20px;
}

#footer .link {
    margin: 10px 0;
}

#footer a {
    color: #666;
    text-decoration: none;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

#footer a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1590c1, #f4b828);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

#footer a:hover {
    color: #1590c1;
    background: rgba(21, 144, 193, 0.1);
}

#footer a:hover::after {
    width: 70%;
}

#go-to-up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1590c1, #0d7ba8);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(21, 144, 193, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

#go-to-up.shown {
    display: flex;
    animation: fadeIn 0.5s ease;
}

#go-to-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(21, 144, 193, 0.6);
}

#go-to-up img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CUSTOMERS CSS (using colored versions) ===== */
.customers-smade {
    background-image: url('ressources/customers/smade.png');
}

.customers-kaliste {
    background-image: url('ressources/customers/kaliste.webp');
}

.customers-flovea {
    background-image: url('ressources/customers/flovea.png');
}

.customers-myenergi {
    background-image: url('ressources/customers/myenergi.png');
}

.customers-iswip {
    background-image: url('ressources/customers/iswip.png');
}

.customers-rtone {
    background-image: url('ressources/customers/rtone.png');
}

.customers-artifeel {
    background-image: url('ressources/customers/artifeel.png');
}

.customers-docbox {
    background-image: url('ressources/customers/docbox.png');
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
    .skills-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 50%;
    }

    #threejs-canvas {
        width: 100%;
    }

    .hero-content {
        padding-left: 50px;
    }

    #hero-title {
        font-size: 42px;
    }

    #hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 0 20px;
    }

    #navbar {
        padding: 12px 20px;
    }

    #logo img {
        width: 40px;
        height: 40px;
    }

    #progress-bar-container {
        top: 64px;
    }

    #navbar.scrolled + #progress-bar-container {
        top: 64px;
    }

    #nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        gap: 10px;
        transition: left 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    #nav.active {
        left: 0;
    }

    #nav a.item {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 16px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
        pointer-events: auto;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    #hero {
        flex-direction: column;
        padding-top: 80px;
        min-height: 100vh;
        height: auto;
    }

    #threejs-canvas {
        width: 100%;
        height: 35%;
        min-height: 300px;
        top: 0;
        left: 0;
        bottom: auto;
    }

    .hero-overlay {
        width: 100%;
        height: 35%;
        min-height: 300px;
        top: 0;
        right: auto;
        left: 0;
        bottom: auto;
    }

    .hero-content {
        padding: 40px 20px;
        justify-content: center;
        align-items: center;
        flex: 1;
    }

    .hero-content .page {
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-title-container {
        background: rgba(10, 14, 39, 0.85);
        padding: 30px 20px;
    }

    #hero-title {
        font-size: 32px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    #hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .block {
        padding: 60px 0;
    }

    .about-section {
        flex-direction: column;
        gap: 30px;
    }

    .self-photo {
        flex: 0 0 250px;
        margin: 0 auto;
    }

    .slogan-section {
        padding: 80px 0;
    }

    .slogan-title {
        font-size: 32px;
    }

    .slogan-subtitle {
        font-size: 18px;
    }

    .portfolio-header h1,
    .skills-header h1 {
        font-size: 32px;
    }

    .project-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .carousel-slide {
        flex: 0 0 100%;
    }

    .carousel-container {
        padding: 0 70px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 26px;
    }

    .skills-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .skills-header h1 {
        font-size: 32px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-subtitle {
        font-size: 16px;
    }

    #footer .page {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    #hero {
        padding-top: 70px;
    }

    .hero-content {
        padding: 30px 15px;
    }

    #hero-title {
        font-size: 26px;
        line-height: 1.3;
    }

    #hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    #hero-title .hero-highlight {
        padding: 0 8px;
    }

    #hero-title .hero-highlight::after {
        height: 8px;
        bottom: 5px;
    }

    .hero-btn {
        padding: 14px 30px;
        font-size: 14px;
    }

    .slogan-title {
        font-size: 24px;
    }

    .slogan-subtitle {
        font-size: 16px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-subtitle {
        font-size: 14px;
    }

    .portfolio-header h1 {
        font-size: 28px;
    }

    .project-item .image {
        height: 250px;
    }

    .skills-header h1 {
        font-size: 32px;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 0 15px;
    }
}
