* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --text: #1f2937;
    --light: #f3f4f6;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

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

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    max-width: 21cm;
    min-height: 29.7cm;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.header {
    background: var(--primary);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    transform: skewY(-5deg);
    transform-origin: top left;
}

.profile {
    text-align: center;
    position: relative;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 1rem;
    background: #ddd;
    position: relative;
    overflow: hidden;
}

.profile-img::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    min-height: 40px;
}

.section {
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.section:hover .section-title::before {
    transform: scaleY(1);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-item {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width 1s ease;
}

.experience-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 2px solid var(--primary);
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

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

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

.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.floating-button:hover {
    transform: scale(1.1);
}

@media print {
    .floating-buttons {
        display: none;
    }
    
    .container {
        box-shadow: none;
    }
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        min-height: auto;
    }

    .header {
        padding: 1rem;
    }

    .section {
        padding: 1rem;
    }
}

/* Nouveaux styles */
        .skill-3d-container {
            perspective: 1000px;
            height: 300px;
            position: relative;
            margin: 2rem 0;
        }

        .skill-3d-cube {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transform: translateZ(-100px);
            transition: transform 1s;
        }

        .cube-face {
            position: absolute;
            width: 200px;
            height: 200px;
            border: 2px solid var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.9);
            backface-visibility: hidden;
        }

        .notification-badge {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 1rem;
            background: var(--primary);
            color: white;
            border-radius: 8px;
            transform: translateX(200%);
            z-index: 1000;
        }

        .project-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }

        .project-card {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            background: var(--light);
            transition: transform 0.3s ease;
        }

        .project-card:hover {
            transform: translateY(-5px);
        }

        .project-image {
            width: 100%;
            height: 200px;
            background-color: #007bff;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            font-size: 36px;
            font-weight: bold;
            text-transform: uppercase;
        }
        
        .webherotech-text {
            font-family: 'Arial', sans-serif; 
        }
        

        .project-info {
            padding: 1rem;
        }

        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .tech-badge {
            padding: 0.25rem 0.5rem;
            background: var(--primary);
            color: white;
            border-radius: 4px;
            font-size: 0.8rem;
        }

        .timeline {
            position: relative;
            margin: 2rem 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 70%;
            width: 2px;
            height: 100%;
            background: var(--primary);
        }

        .timeline-item {
            display: flex;
            justify-content: flex-end;
            padding-right: 30px;
            position: relative;
            margin: 2rem 0;
            width: 70%;
        }

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

        .timeline-content {
            background: var(--light);
            padding: 1rem;
            border-radius: 8px;
            width: 100%;
            max-width: 400px;
        }

        .skill-radar {
            position: relative;
            width: 300px;
            height: 300px;
            margin: 2rem auto;
        }

        .radar-circle {
            position: absolute;
            border: 1px solid var(--primary);
            border-radius: 50%;
            opacity: 0.2;
        }

        .radar-skill {
            position: absolute;
            width: 10px;
            height: 10px;
            background: var(--primary);
            border-radius: 50%;
            transform: translate(-50%, -50%);
        }

        .floating-menu {
            position: fixed;
            right: 2rem;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 1rem;
            z-index: 100;
        }

        .menu-item {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

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

        .language-selector {
            position: fixed;
            top: 1rem;
            right: 1rem;
            z-index: 100;
        }

        .certificate-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }

        .certificate-card {
            background: var(--light);
            padding: 1rem;
            border-radius: 8px;
            text-align: center;
            transition: transform 0.3s ease;
        }

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

        .certificate-logo {
            width: 80px;
            height: 80px;
            margin: 0 auto 1rem;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
        }

        .achievements-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }

        .achievement-item {
            background: var(--light);
            padding: 1rem;
            border-radius: 8px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .achievement-item::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
            transform: rotate(45deg);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%) rotate(45deg); }
            100% { transform: translateX(100%) rotate(45deg); }
        }

        .parallax-section {
            position: relative;
            height: 300px;
            overflow: hidden;
            margin: 2rem 0;
        }

        .parallax-layer {
            position: absolute;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
        }
        .skill-item {
            position: relative;
            overflow: hidden;
        }

        .skill-item::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            transform: translateX(-100%);
        }

        .skill-item:hover::after {
            transform: translateX(100%);
            transition: transform 0.6s ease;
            }
        
        body {
            padding-top: 70px; /* Pour éviter que le contenu soit caché derrière la navbar */
        }
        
        .iframe-container {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%; /* Ratio 16:9 */
            overflow: hidden;
            border-radius: 8px;
            background-color: #000;
            opacity: 0;
            transform: scale(0.9);
            transition: transform 0.5s, opacity 0.5s;
        }
        
        .iframe-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .project-card:hover .iframe-container {
            transform: scale(1);
            opacity: 1;
        }
        
        .contact-item a{
            text-decoration: none;
            color: #000;
        }
        
        #contact-form {
            margin-top: 20px;
        }
        
        .input-group {
            position: relative;
            margin-bottom: 20px;
        }
        
        .input-group input,
        .input-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #007bff;
            border-radius: 5px;
            outline: none;
            background: transparent;
            font-size: 16px;
            transition: 0.3s;
        }
        
        .input-group label {
            position: absolute;
            top: 14px;
            left: 12px;
            color: #007bff;
            transition: 0.3s;
        }
        
        .input-group input:focus + label,
        .input-group textarea:focus + label,
        .input-group input:valid + label,
        .input-group textarea:valid + label {
            top: -10px;
            left: 8px;
            font-size: 12px;
            color: #0056b3;
        }
        
        button {
            background: #007bff;
            color: white;
            padding: 12px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: 0.3s;
        }
        
        button:hover {
            background: #0056b3;
            transform: scale(1.05);
        }
        
        button:disabled {
            background: #a0a0a0;
            cursor: not-allowed;
        }
        
        /* Message de confirmation stylisé */
        #response {
            margin-top: 20px;
            padding: 12px;
            border-radius: 5px;
            font-weight: bold;
            font-size: 16px;
            text-align: center;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        
        /* Succès */
        .response-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        /* Erreur */
        .response-error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        


.menu-toggle {
    position: fixed;
    top: 60px;
    right: 10px;
    background: #2563eb;
    color: white;
    font-size: 24px;
    border: none;
    padding: 10px 15px;
    border-radius: 100%;
    height: 7%;
    cursor: pointer;
    z-index: 1000;
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; 
    }

    .floating-menu, 
    .floating-buttons {
        display: none; 
    }
    .floating-menu.active, 
    .floating-buttons.active {
        display: block;
        display: flex;
    }
}
