/* Reset et Base */
:root {
    --primary-color: #00f0ff;
    --secondary-color: #7856ff;
    --dark-color: #0a192f;
    --darker-color: #020c1b;
    --light-color: #ccd6f6;
    --lighter-color: #e6f1ff;
    --font-title: 'Orbitron', sans-serif;
    --font-text: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-text);
    color: var(--light-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary-color);
    margin-right: 15px;
}

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

.dark-section {
    background-color: var(--darker-color);
}

.fullscreen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.btn-hover {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-family: var(--font-title);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    margin-top: 20px;
}

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

.btn-hover:hover {
    color: var(--darker-color);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

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

.btn-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    z-index: -2;
}

.btn-hover:hover::after {
    width: 100%;
}

.highlight {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 100vh;
    background-color: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    z-index: 1000;
    transition: width 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar:hover {
    width: 250px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--primary-color);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 3px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.navbar:hover .logo-text {
    writing-mode: horizontal-tb;
    transform: rotate(0);
}

.logo-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    transition: all 0.3s ease;
}

.navbar:hover .logo-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.nav-links {
    list-style: none;
    width: 100%;
    padding: 0 20px;
}

.nav-links li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.navbar:hover .nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.nav-links li:nth-child(1) { transition-delay: 0.1s; }
.nav-links li:nth-child(2) { transition-delay: 0.2s; }
.nav-links li:nth-child(3) { transition-delay: 0.3s; }
.nav-links li:nth-child(4) { transition-delay: 0.4s; }
.nav-links li:nth-child(5) { transition-delay: 0.5s; }
.nav-links li:nth-child(6) { transition-delay: 0.6s; }
.nav-links li:nth-child(7) { transition-delay: 0.7s; }

.nav-links a {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--light-color);
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a span {
    color: var(--primary-color);
    margin-right: 10px;
    font-family: var(--font-title);
    font-size: 0.8rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--primary-color);
}

.nav-links a:hover::before {
    height: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::before {
    height: 100%;
}

.social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease 0.8s;
}

.navbar:hover .social-icons {
    opacity: 1;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Section Accueil */
.accueil-content {
    max-width: 600px;
}

.accueil-content .subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.accueil-content .title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.typing-text {
    font-size: 2rem;
    color: var(--light-color);
    margin-bottom: 30px;
    height: 40px;
}

.txt-rotate {
    color: var(--primary-color);
    border-right: 2px solid var(--primary-color);
    animation: blink 0.7s infinite;
}

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

.accueil-content .description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(204, 214, 246, 0.8);
}

.accueil-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.glowing-circle {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    animation: rotate 10s linear infinite;
    filter: blur(15px);
    opacity: 0.3;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image-container {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    border: 10px solid rgba(255, 255, 255, 0.1);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-color);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    margin-top: 10px;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% { height: 50px; opacity: 1; }
    100% { height: 0; opacity: 0; transform: translateY(50px); }
}

/* Section À Propos */
.apropos-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.apropos-text {
    flex: 1;
}

.apropos-text p {
    margin-bottom: 20px;
    color: rgba(204, 214, 246, 0.8);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.info-item {
    display: flex;
}

.info-label {
    font-weight: 700;
    margin-right: 10px;
    color: var(--primary-color);
    min-width: 100px;
}

.skills-chart {
    flex: 1;
    max-width: 400px;
}

.radar-chart {
    width: 100%;
    height: 400px;
}

/* Section Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(10, 25, 47, 0.5);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--darker-color);
    font-size: 1.5rem;
}

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

.service-card p {
    color: rgba(204, 214, 246, 0.7);
    margin-bottom: 20px;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tech span {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Section Compétences */
.competences-description {
    max-width: 600px;
    margin-bottom: 50px;
}

.competences-description p {
    margin-bottom: 15px;
    color: rgba(204, 214, 246, 0.8);
}

.skills-container {
    margin-bottom: 50px;
}

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

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-info span:first-child {
    color: var(--light-color);
}

.skill-info span:last-child {
    color: var(--primary-color);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressAnimation 2s infinite;
}

@keyframes progressAnimation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.3s ease;
}

.tech-item:hover img {
    filter: none;
}

.tech-item span {
    font-size: 0.9rem;
    color: var(--light-color);
}

/* Section Réalisations */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

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

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-overlay h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-overlay p {
    color: var(--light-color);
    margin-bottom: 20px;
    font-size: 13px;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.portfolio-link {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

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

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay a {
    transform: translateY(0);
}

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

/* Section Certifications */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 30px;
}

.timeline-date {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1;
}

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

.timeline-content {
    width: calc(50% - 40px);
    background: rgba(10, 25, 47, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    transform: rotate(45deg);
    z-index: -1;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -10px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--darker-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--dark-color);
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-badge {
    right: auto;
    left: -20px;
}

.timeline-badge img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Section Contact */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 30px;
    color: rgba(204, 214, 246, 0.8);
}

.info-items {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--darker-color);
    margin-right: 20px;
    font-size: 1.2rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--darker-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.contact-form {
    flex: 1;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--light-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: rgba(204, 214, 246, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:valid,
.form-group textarea:valid {
    border-color: var(--primary-color);
    outline: none;
    background-color: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--dark-color);
    padding: 0 5px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--darker-color);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copy p {
    color: rgba(204, 214, 246, 0.5);
    font-size: 0.9rem;
}

/* Cursor personnalisé */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transition: transform 0.1s ease;
}

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

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar {
        width: 70px;
    }
    
    .navbar:hover {
        width: 200px;
    }
    
    .accueil-content .title {
        font-size: 3rem;
    }
    
    .accueil-image {
        display: none;
    }
    
    .apropos-content {
        flex-direction: column;
    }
    
    .skills-chart {
        max-width: 100%;
        margin-top: 50px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 70px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-date {
        left: 0;
        right: auto;
    }
    
    .timeline-content::before {
        right: auto;
        left: -10px;
    }
    
    .timeline-badge {
        right: auto;
        left: -20px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 15px;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar:hover {
        width: 100%;
    }
    
    .logo {
        margin-bottom: 0;
        flex-direction: row;
    }
    
    .logo-text {
        writing-mode: horizontal-tb;
        transform: rotate(0);
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .logo-line {
        width: 50px;
        height: 1px;
        background: linear-gradient(to right, var(--primary-color), transparent);
    }
    
    .nav-links {
        display: none;
    }
    
    .social-icons {
        flex-direction: row;
        opacity: 1;
    }
    
    .cursor {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .accueil-content .title {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}