:root {
    --primary-color: #3a86ff;
    --secondary-color: #121212;
    --accent-color: #ff006e;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #0a0a0a;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

header {
    min-height: 100vh;
    background: linear-gradient(135deg, #000428, #004e92);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background:
        radial-gradient(circle at 20% 30%, rgba(58, 134, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 110, 0.4) 0%, transparent 30%);
    z-index: 1;
}

.profile-container {
    max-width: 1200px;
    width: 90%;
    z-index: 2;
    text-align: left;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-title {
    text-align: left;
    margin-bottom: 4rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.tagline {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: var(--white);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    margin: 0.5rem 1rem 0.5rem 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 7px 30px rgba(58, 134, 255, 0.4);
}

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

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

section {
    padding: 7rem 0;
}

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

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(58, 134, 255, 0.1) 100%);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.skill-card:hover::after {
    opacity: 0.2;
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

#experience {
    background-color: var(--secondary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

#experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 10%, rgba(58, 134, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 0, 110, 0.15) 0%, transparent 40%);
    z-index: 1;
}

#experience .container {
    position: relative;
    z-index: 2;
}

#experience .section-title {
    color: var(--white);
}

#experience .section-title:after {
    background-color: var(--accent-color);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 1.5rem 3rem;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--accent-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 5px rgba(255, 0, 110, 0.2);
}

.timeline-item:nth-child(odd)::after {
    right: -14px;
}

.timeline-item:nth-child(even)::after {
    left: -14px;
}

.timeline-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.timeline-content .date {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(255, 0, 110, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
}

#contact {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(58, 134, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

#contact .container {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.contact-text h4 {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(58, 134, 255, 0.3);
}

.contact-form {
    padding: 3rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

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

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.1);
}

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

.btn-submit {
    width: 100%;
    cursor: pointer;
    border: none;
}

footer {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(58, 134, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

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

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    .tagline {
        font-size: 1.7rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .tagline {
        font-size: 1.4rem;
    }

    section {
        padding: 5rem 0;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 15px;
    }

    .timeline-item:nth-child(odd)::after {
        right: auto;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Animations */
.animate-fade-up {
    animation: fadeInUp 1s both;
}

.animate-fade-up-delay-1 {
    animation: fadeInUp 1s both;
    animation-delay: 0.2s;
}

.animate-fade-up-delay-2 {
    animation: fadeInUp 1s both;
    animation-delay: 0.4s;
}

.animate-fade-up-delay-3 {
    animation: fadeInUp 1s both;
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.no-underline {
    text-decoration: none;
}
.contact-icon a {
    color: inherit; /* Hérite de la couleur du parent */
    text-decoration: none; /* Supprime le soulignement du lien */
}

.contact-icon a i {
    color: inherit; /* Assure que l'icône garde la couleur du parent */
}
