/* Variables CSS */
:root {
    --primary-color: #4986e8;
    --primary-dark: #1d3d72;
    --secondary-color: #e6e0df;
    --accent-color: #38ae67;
    --dark-color: #0A0A0F;
    --dark-light: #151521;
    --darker-light: #1E1E2E;
    --light-color: #F8FAFC;
    --gray-color: #94A3B8;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-light: 0 5px 15px rgba(58, 134, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.05);
    --nav-height: 80px;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(58, 134, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 85% 30%, rgba(131, 56, 236, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(255, 0, 110, 0.03) 0%, transparent 20%);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

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

p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.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: 0.8s;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

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

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    color: var(--gray-color);
}

/* Header et Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    height: var(--nav-height);
}

header.scrolled {
    height: 70px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    transition: var(--transition);
}

header.scrolled .navbar {
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.logo i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    background: rgba(21, 21, 33, 0.8);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-links li {
    margin: 0 5px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

.nav-links a:hover::before, .nav-links a.active::before {
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1001;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(58, 134, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(131, 56, 236, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 0, 110, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-animation {
    position: absolute;
    right: 10%;
    bottom: 10%;
    width: 40%;
    max-width: 500px;
    height: 400px;
    z-index: 1;
}

.floating-card {
    position: absolute;
    width: 200px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.floating-card:nth-child(1) {
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 30%;
    animation: float 8s ease-in-out infinite 1s;
}

.floating-card:nth-child(3) {
    top: 30%;
    right: 50%;
    animation: float 7s ease-in-out infinite 2s;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.floating-card span {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(58, 134, 255, 0.2);
}

/* Portfolio Section */
.portfolio {
    background-color: var(--dark-light);
    position: relative;
    transition: height 0.4s ease;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(58, 134, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(131, 56, 236, 0.05) 0%, transparent 50%);
}

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

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--darker-light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--gray-color);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.6s;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.2);
}

.filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.3);
    animation: pulse-active 2s infinite;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    grid-auto-rows: 250px;
    transition: grid-template-rows 0.4s ease, gap 0.4s ease;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--dark-color);
    position: relative;
    opacity: 1;
    transform: scale(1) translateY(0);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    grid-row: span 1;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    grid-row: span 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.portfolio-item.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.portfolio-item.wide {
    grid-column: span 2;
}

.portfolio-item.tall {
    grid-row: span 2;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.portfolio-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--dark-color));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-tech {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.portfolio-links {
    display: flex;
    gap: 10px;
}

.portfolio-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.portfolio-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-content {
    background: var(--dark-light);
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: var(--transition);
    position: relative;
}

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

.portfolio-item {
    transition: all 0.4s ease; /* smooth hide/show */
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.95); /* léger zoom out */
    pointer-events: none;
    height: 0; /* optionnel si tu veux que ça réduise l’espace */
    margin: 0;
    padding: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
    color: #0A0A0F;
}

.modal-img {
    height: 300px;
    overflow: hidden;
}

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

.modal-info {
    padding: 30px;
}

.modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-info p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.modal-tech span {
    background: var(--darker-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.modal-links {
    display: flex;
    gap: 15px;
}

/* About Section */
.about {
    background-color: var(--dark-color);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.about-text h2::after {
    left: 0;
    transform: none;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 25px 15px;
    background: var(--dark-light);
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid var(--darker-light);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
    animation: blink 2s infinite;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-img {
    text-align: center;
    position: relative;
    width: 220px;   /* Légèrement plus grand pour mieux voir les détails */
    height: 220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Effet de halo animé autour du cercle */
.about-img::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0.1;
    z-index: 0;
    animation: rotate 8s linear infinite;
}

/* Point d'accent animé */
.about-img::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 25px var(--accent-color);
    animation: pulse 2s infinite, float 4s ease-in-out infinite;
    z-index: 3;
}

/* Cercle principal avec dégradé */
.initials {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 3.5rem;
    font-weight: 300;
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--darker-light) 100%);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 
        var(--shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Effet de brillance au survol */
.initials::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.initials img {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    object-fit: cover;
}

/* Bordure animée avec dégradé */
.initials::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 10px solid;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark), var(--accent-color), var(--primary-color));
    background-size: 400% 400%;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Effets au survol */
.about-img:hover .initials {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.about-img:hover .initials::before {
    opacity: 1;
    animation: shine 1.5s ease;
}

.about-img:hover .initials::after {
    opacity: 1;
}

.about-img:hover::after {
    animation: pulse 0.8s infinite, float 2s ease-in-out infinite;
    transform: scale(1.2);
}

/* Animation de rotation du halo */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation de dégradé pour la bordure */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animation de brillance */
@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Animation de flottement améliorée */
@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-8px) scale(1.1);
    }
}

/* Version responsive */
@media (max-width: 768px) {
    .about-img {
        width: 180px;
        height: 180px;
    }
    
    .initials {
        font-size: 2.8rem;
    }
    
    .about-img::before {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
}

/* Version minimaliste et élégante */
.about-img.minimalist {
    width: 200px;
    height: 200px;
}

.about-img.minimalist::before {
    display: none;
}

.about-img.minimalist::after {
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.about-img.minimalist .initials {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 400;
    box-shadow: none;
}

.about-img.minimalist:hover .initials {
    transform: scale(1.05);
    background: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.3);
}


/* Skills Section */
.skills {
    background-color: var(--dark-light);
    position: relative;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--dark-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--darker-light);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--light-color);
}

.skill-category i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.skill-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.skill-bubble:hover {
    transform: translateY(-5px);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: var(--darker-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
    border: 2px solid transparent;
    color: var(--gray-color);
}

.skill-bubble:hover .skill-icon {
    background: white;
    border-color: var(--secondary-color);
    color: white ;
}

.skill-name {
    font-size: 0.8rem;
    color: var(--gray-color);
    text-align: center;
}

/* Contact Section */
/* Contact Section */
.contact {
    background-color: var(--dark-light);
    position: relative;
    padding: 100px 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(58, 134, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(131, 56, 236, 0.05) 0%, transparent 50%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-cta {
    background: var(--dark-color);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--darker-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.03) 0%, rgba(131, 56, 236, 0.03) 100%);
    z-index: -1;
}

.contact-cta:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--light-color);
    position: relative;
}

.cta-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray-color);
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-button::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.8s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(58, 134, 255, 0.4);
}

.CV {
    font-weight: bold;
    display: inline-block;
    font-size: 1.5vw;
    margin-top: 25px;
    margin-left: 1.1vw;
    text-align: center;
    color: inherit;          /* évite les resets imprévus */
    transition: 0.2s ease;   /* plus propre au survol */
}

/* Hover sur tout le lien */
.CV:hover {
    color: #4986e8;  /* change la couleur du texte complet */
}

/* Hover sur le <strong> uniquement */
.CV strong {
    color: #4986e8; /* couleur par défaut */
    transition: 0.2s ease;
}

.CV strong:hover {
    color: white; /* devient blanc quand on survole le mot CV et seulement lui */
}


.cta-social {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.cta-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--darker-light);
    border-radius: 50%;
    color: var(--gray-color);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.cta-social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-5px);
    border-color: transparent;
}

.contact-info {
    background: var(--dark-color);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--darker-light);
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--light-color);
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.footer-contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--darker-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.contact-details h4 {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.contact-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: blink 2s infinite;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-cta, .contact-info {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .contact {
        padding: 80px 0;
    }
    
    .contact-cta, .contact-info {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 1.7rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .cta-social {
        justify-content: center;
    }
}

/* Footer */
footer {
    background: var(--dark-light);
    color: white;
    padding: 70px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.footer-about {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

@media (max-width: 768px) {
    .footer-cta {
        padding: 30px 20px;
        margin: 40px 0 20px;
    }
    
    .footer-cta-content h4 {
        font-size: 1.3rem;
    }
    
    .footer-contact-item {
        font-size: 0.9rem;
    }
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--dark-color);
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid var(--darker-light);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-5px);
    border-color: transparent;
}

.newsletter {
    margin-top: 20px;
}

.newsletter p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

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

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--darker-light);
    border-radius: 5px;
    background: var(--dark-color);
    color: var(--light-color);
}

.newsletter-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--primary-dark);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--darker-light);
    color: var(--gray-color);
    font-size: 0.9rem;
}

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-animation {
        width: 45%;
    }
}



@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }

    .portfolio-item.wide, .portfolio-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
    
    .about-content, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        order: -1;
    }
    
    .hero-animation {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .portfolio-item.wide, .portfolio-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-light);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        transition: var(--transition);
        border-radius: 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        border-radius: 0;
        padding: 15px 30px;
    }
    
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-container {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* Animation de pulse pour les boutons actifs */
@keyframes pulse-active {
    0% {
        box-shadow: 0 8px 25px rgba(58, 134, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(58, 134, 255, 0.5);
    }
    100% {
        box-shadow: 0 8px 25px rgba(58, 134, 255, 0.3);
    }
}

.filter-btn.active {
    animation: pulse-active 2s infinite;
}