/* Variables CSS */
:root {
    --primary-color: #6e45e2;
    --secondary-color: #2c3e50;
    --accent-color: #ff7e5f;
    --light-color: #f8f9fa;
    --dark-color: #1a1a2e;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Saira', 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-color);
    position: relative;
}

/* Effet toile d'araignée animée en arrière-plan */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 0 L100 100 L0 100 Z" fill="none" stroke="rgba(110, 69, 226, 0.1)" stroke-width="0.5"/></svg>');
    background-size: cover, 50px 50px;
    opacity: 0.05;
    z-index: -1;
    animation: spiderWeb 60s linear infinite;
}

@keyframes spiderWeb {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 100% 100%, 100px 100px; }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Classes utilitaires */
.section-padding {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.bg-light {
    background-color: var(--light-color);
}

.text-highlight {
    color: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
    z-index: -1;
}

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

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(110, 69, 226, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(110, 69, 226, 0.6);
}

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
}

/* Barre de navigation */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: var(--white);
    display: flex;
    align-items: center;
}

.navbar-brand span {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 10px 15px;
    margin: 0 5px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    bottom: 0;
    left: 0;
    transition: var(--transition);
    border-radius: 1px;
}

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

/* Section Hero */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridAnimation 30s linear infinite;
}

@keyframes gridAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero-title {
    font-size: 52px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
    max-width: 600px;
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.hero-image {
    border: 5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    border-radius: 20px;
    overflow: hidden;
}

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

.hero-image:hover {
    transform: scale(1.05) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* Section À propos */
.about-section {
    position: relative;
}

.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 50 Q25 20 50 50 T100 50" fill="none" stroke="rgba(110, 69, 226, 0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
    z-index: -1;
    animation: waveAnimation 40s linear infinite;
}

@keyframes waveAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

.about-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text {
    margin-bottom: 15px;
    font-size: 16px;
}

.info-list li {
    margin-bottom: 12px;
    display: flex;
}

.info-list strong {
    color: var(--primary-color);
    margin-right: 10px;
    min-width: 120px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.social-links a::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: 0.5s;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(110, 69, 226, 0.5);
}

.skills-chart {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-item h5 {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    position: relative;
    overflow: visible;
    transition: width 2s ease;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary-color);
}

/* Section Compétences */
.skills-section {
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(248, 249, 250, 0.95) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="5" fill="rgba(110, 69, 226, 0.05)"/></svg>');
    background-size: cover, 60px 60px;
    z-index: -1;
    animation: dotsAnimation 40s linear infinite;
}

@keyframes dotsAnimation {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 100% 100%, 300px 300px; }
}

.skill-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
    z-index: -1;
}

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

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

.skill-card:hover .skill-icon {
    background: var(--white);
    transform: scale(1.1) rotate(10deg);
}

.skill-card:hover h4,
.skill-card:hover p {
    color: var(--white);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 36px;
    color: var(--white);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-icon.react-native {
    background: linear-gradient(45deg, #61dafb, #00b4d8);
}

.skill-icon.javascript {
    background: linear-gradient(45deg, #f0db4f, #f5b400);
}

.skill-icon.redux {
    background: linear-gradient(45deg, #764abc, #5d3bad);
}

.skill-icon.firebase {
    background: linear-gradient(45deg, #ffcb2b, #ffa000);
}

.skill-icon.testing {
    background: linear-gradient(45deg, #99425b, #7a2c4b);
}

.skill-icon.ui {
    background: linear-gradient(45deg, #3f51b5, #283593);
}

.skill-icon.animation {
    background: linear-gradient(45deg, #ff4081, #d81b60);
}

.skill-icon.ci {
    background: linear-gradient(45deg, #2088ff, #0069d9);
}

.skill-card h4 {
    margin-bottom: 15px;
    transition: var(--transition);
}

.skill-card p {
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

/* Section Portfolio améliorée */
.portfolio-section {
    background: linear-gradient(135deg, #f9f9ff 0%, #f5f7ff 100%);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.3);
}

.portfolio-grid {
    transition: all 0.5s ease;
}

.portfolio-item {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 1;
    transform: scale(1);
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.9);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.portfolio-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.portfolio-image-container {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    height: 250px; /* Hauteur fixe pour uniformiser */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.portfolio-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Changement crucial : contain au lieu de cover */
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(110, 69, 226, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
    text-decoration: none;
}

.action-btn span {
    margin-left: 8px;
    font-size: 14px;
}

.portfolio-card:hover .action-btn {
    transform: translateY(0);
    opacity: 1;
}

.action-btn:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

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

.portfolio-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-tag {
    background: rgba(110, 69, 226, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.tech-tag-more {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

.empty-portfolio {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
}

.empty-portfolio i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.empty-portfolio h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Animation pour le filtrage */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.portfolio-item.show {
    animation: fadeInScale 0.5s ease forwards;
}

/* Styles pour les modales afin qu'elles affichent aussi les images en entier */
.modal-image-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

.carousel-item {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 767.98px) {
    .portfolio-filters {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .portfolio-image-container {
        height: 200px;
    }
    
    .action-btn {
        padding: 10px 15px;
    }
    
    .action-btn span {
        font-size: 12px;
    }
    
    .portfolio-actions {
        gap: 10px;
    }
}

@media (max-width: 575.98px) {
    .portfolio-image-container {
        height: 180px;
    }
    
    .action-btn {
        flex-direction: column;
        padding: 8px 12px;
    }
    
    .action-btn span {
        margin-left: 0;
        margin-top: 5px;
        font-size: 11px;
    }
}

/* Section Expérience */
.experience-section {
    position: relative;
}

.experience-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><line x1="0" y1="0" x2="100" y2="100" stroke="rgba(110, 69, 226, 0.05)" stroke-width="1"/><line x1="100" y1="0" x2="0" y2="100" stroke="rgba(110, 69, 226, 0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.1;
    z-index: -1;
    animation: diagonalAnimation 60s linear infinite;
}

@keyframes diagonalAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

.experience-subtitle {
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 25px;
    color: var(--primary-color);
}

.experience-subtitle::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    left: 0;
    top: 0;
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    left: 10px;
    top: 15px;
    border-radius: 1.5px;
}

.timeline-item:last-child::before {
    height: 0;
}

.timeline-date {
    position: relative;
    padding: 8px 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 30px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.3);
}

.timeline-date::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.timeline-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    margin-bottom: 5px;
    font-size: 20px;
}

.timeline-content h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Section Contact */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><rect x="10" y="10" width="60" height="60" fill="none" stroke="rgba(110, 69, 226, 0.05)" stroke-width="1" rx="10" ry="10"/></svg>');
    background-size: cover, 80px 80px;
    z-index: -1;
    animation: squaresAnimation 50s linear infinite;
}

@keyframes squaresAnimation {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 100% 100%, 800px 800px; }
}

.contact-info {
    margin-bottom: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(110, 69, 226, 0.2);
}

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

.contact-text p {
    color: var(--text-light);
    font-size: 16px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    height: 55px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    margin-bottom: 20px;
    transition: var(--transition);
    font-size: 16px;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(110, 69, 226, 0.2);
}

.contact-form textarea.form-control {
    height: auto;
    resize: none;
    min-height: 150px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 100 M100 0 L0 100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.2;
    z-index: 0;
    animation: crossAnimation 40s linear infinite;
}

@keyframes crossAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

.copyright {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.footer .social-links {
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(110, 69, 226, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(110, 69, 226, 0.4);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* Délais d'animation */
.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }
.animate-delay-4 { animation-delay: 0.8s; }
.animate-delay-5 { animation-delay: 1s; }

/* Responsive */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 46px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .section-title h2 {
        font-size: 36px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 150px 0 80px;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
        max-width: 350px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .about-info .col-md-6 {
        margin-bottom: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .navbar-brand {
        font-size: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* Section Blog */
.blog-section {
    position: relative;
    background-color: #f9f9ff;
}

.blog-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,30 Q50,10 70,30 T90,50 Q70,70 50,90 T30,70 Q10,50 30,30 Z" fill="none" stroke="rgba(110, 69, 226, 0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
    z-index: 0;
    animation: blogAnimation 50s linear infinite;
}

@keyframes blogAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

.blog-carousel {
    position: relative;
    z-index: 1;
}

.blog-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    margin: 15px;
    height: calc(100% - 30px);
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-img img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 10px 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.blog-date .day {
    font-size: 24px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.blog-date .month {
    font-size: 14px;
    text-transform: uppercase;
    display: block;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.blog-content h3 {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Owl Carousel Custom Styles */
.owl-carousel .owl-stage {
    display: flex;
    padding: 30px 0;
}

.owl-carousel .owl-item {
    display: flex;
    height: auto;
}

.owl-nav {
    position: absolute;
    top: -90px;
    right: 0;
    display: flex;
    gap: 10px;
}

.owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    background: var(--white) !important;
    color: var(--primary-color) !important;
    font-size: 24px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.owl-nav button:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color)) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
}

.owl-dots {
    margin-top: 20px !important;
    text-align: center;
}

.owl-dots button.owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(110, 69, 226, 0.2) !important;
    margin: 0 5px;
    transition: var(--transition);
}

.owl-dots button.owl-dot.active {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color)) !important;
    transform: scale(1.2);
}

/* Styles personnalisés pour la modal compacte */
.modal-lg {
    max-width: 600px;
}

.section-title {
    font-weight: 600;
    color: #4e54c8;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.3rem;
}

.tech-badge {
    padding: 0.3rem 0.6rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.project-image-container {
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.features-list li {
    font-size: 0.9rem;
}

/* Ajoutez ces styles à votre fichier CSS existant */

.skill-icon.api {
    background: linear-gradient(45deg, #6B73FF, #000DFF);
}

.skill-icon.navigation {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.skill-icon.database {
    background: linear-gradient(45deg, #FF5E7D, #FF2E63);
}

.skill-icon.performance {
    background: linear-gradient(45deg, #00cdac, #02aab0);
}

.skill-icon.native {
    background: linear-gradient(45deg, #8E2DE2, #4A00E0);
}

/* Vous pouvez aussi ajouter ces variations pour plus de cohérence */
.skill-icon.ci {
    background: linear-gradient(45deg, #2088ff, #0069d9);
}

.skill-icon.testing {
    background: linear-gradient(45deg, #99425b, #7a2c4b);
}

.skill-icon.ui {
    background: linear-gradient(45deg, #3f51b5, #283593);
}

/* Styles pour les badges de technologie */
.tech-badge {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Styles pour les éléments de portfolio */
.portfolio-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-links i {
    color: white;
    font-size: 2rem;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-description {
    color: #7f8c8d;
    line-height: 1.5;
}

/* Animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }