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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(251, 249, 249, 0.968);
    background: linear-gradient(to left, #0567c9, #212529);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: clamp(4px, 1vw, 8px);
    background-color: #393939;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.progress-bar {
    height: 50%;
    background-color: #ece802;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.logo {
    font-size: 2.8rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    text-decoration: none;
    color: #e2dada;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(255, 197, 7, 0.8),
        rgba(240, 94, 3, 0.8)
    );
    transition: width 0.4s ease;
}

.nav-links a:hover {
    color: #ffc507;
}

.nav-links a:hover::after {
    width: 100%;
}

.info-banner {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    color: #e2dada;
    font-weight: 500;
    padding: 1rem 0;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1rem;
}

.info-banner li {
    list-style: none;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(45deg, #4a90c2, #3a5068);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    border: 1.5px solid #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.9s forwards;
    box-shadow: 0 5px 20px rgba(0, 122, 204, 0.3);
}

.btn:hover {
    box-shadow: 0 15px 40px rgba(0, 122, 204, 0.5);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    border: solid 1.5px #000;
    background: linear-gradient(45deg, #005f99, #003f66);
    color: #e0e0e0;
}

.btn:hover .fa-file {
    animation: 1s ease 0.9s forwards;
}

/* Sections */
.section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 4px;
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* About */
.about-content {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    text-align: justify;
    margin: 50px;
    margin-bottom: 30px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: gold solid 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #fff;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: justify;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 2rem;
    gap: 2rem;
    padding: 0 1rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.8rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 212, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.skill-category h3 {
    color: #00d4ff;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.skill-category ul {
    list-style: none;
    position: relative;
    z-index: 1;
}

.skill-category li {
    padding: 0.4rem 0;
    font-weight: 500;
    color: #c0c0c0;
    transition: color 0.3s ease;
}

.skill-category:hover li {
    color: #fff;
}

/* .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
} */

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-left: 2rem;
    margin-right: 2rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: rgba(255, 230, 0, 0.986);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.2);
    transform: translateX(15px);
}

/* .timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    background: #00d4ff;
    border-radius: 50%;
    border: 3px solid #1a1a2e;
    box-shadow: 0 0 0 3px #00d4ff, 0 0 20px rgba(0, 212, 255, 0.5);
} */

.timeline-date {
    color: #00d4ff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
}

.timeline-company {
    color: #ff00ff;
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-desc {
    color: #c0c0c0;
}

.timeline-desc p {
    margin-bottom: 0.5rem;
}

/* Projects */
.projects-grid {
    display: grid;
    margin: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    padding: 0 1rem;
}

.project-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 2rem 1.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;

    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.project-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(46, 103, 184, 0.4);
    transition: transform 0.5s ease-in, box-shadow 0.5s ease-in;
}

.project-card h3 {
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.project-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.project-link {
    color: #f0f0f0;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.project-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(255, 197, 7, 0.8),
        rgba(240, 94, 3, 0.8)
    );
    transition: width 0.4s ease;
    z-index: -1;
}

.project-link:hover {
    color: rgba(255, 197, 7, 0.8);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.project-link:hover::after {
    width: 100%;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    width: 80%;
    border-radius: 20px;
}

.contact-info h3 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #c0c0c0;
    text-align: left;
}

.contact-info .info-contact a:hover,
p:hover {
    color: gold;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95px;
    height: 55px;
    margin: 15px;
    border-radius: 15px;
    font-size: 1.5em;
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    color: white;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.social-links a:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.5);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #fff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    align-items: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
}

/* Style pour le lien ACTIF */
.nav-links a.active {
    color: #ffc507;
}

.nav-links a.active::after {
    width: 100%;
}

/* Triage de projets */

.project-card {
    transition: opacity 0.3s ease;
}

.project-card[style*="none"] {
    opacity: 0;
}

/* Section contenant les boutons de tri */
#projects .filter-buttons {
    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: center; /* centre verticalement si hauteur définie */
    gap: 1rem;
    padding: 1rem;
    width: 50%; /* ou 50% si tu veux une largeur réduite */
    margin: 0 auto; /* centre le bloc si largeur < 100% */
    border-radius: 0px;
    text-align: center;
}

/* Style principal des boutons */
#projects .button {
    position: relative;
    overflow: hidden;
    background: none;
    color: #fff;
    font-size: 1rem;
    border: none;
    padding: 0.8rem 2rem;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(22, 9, 240, 0.09);
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s cubic-bezier(0.6, 0.01, 0.42, 1), transform 0.2s;
}

/* Overlay animé */
#projects .button::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.6, 0.01, 0.42, 1);
    border-radius: 8px;
}

/* État hover et focus : l’overlay se déploie */
#projects .button:hover::after,
#projects .button:focus::after {
    transform: scaleX(1);
}

/* Le texte reste lisible au hover */
#projects .button:hover,
#projects .button:focus {
    color: #fff;
    outline: none;
    /* petite animation au survol */
    transform: scale(1.07);
}

/* État actif du bouton */
#projects .button.active {
    background: rgba(0, 0, 0, 0.16);
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(2, 126, 251, 0.13);
    border: 1.5px solid #027efb;
}

/* Accessibilité : focus visible */
#projects .button:focus-visible {
    outline: 3px solid #027efb;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Cache le menu par défaut */
    header {
        display: none;
    }

    /* Autres styles existants */
    .progress-container {
        position: fixed;
        top: 0px;
        left: 0;
        width: 100%;
        height: clamp(4px, 1vw, 8px);
        background-color: #393939;
        z-index: 1000;
        display: flex;
        align-items: center;
    }

    .hero-content p {
        margin: 50px;
    }

    .progress-bar {
        height: 50%;
        background-color: #ece802;
        width: 0;
        transition: width 0.3s ease;
        border-radius: 2px;
    }

    .about-text {
        text-align: justify;
    }

    #about .section {
        margin: auto;
    }

    .info-banner {
        margin: 1.5rem;
    }

    .info-banner {
        display: none;
    }

    .container img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .skill-category {
        margin: 0px;
    }

    #projects .project-card {
        margin: 20px;
        margin-left: -20px;
    }

    #projects .btn {
        display: flex;
        justify-content: center; /* centre horizontalement */
        align-items: center; /* centre verticalement si hauteur définie */
        gap: 0.5remrem;
        padding: auto;
        width: auto; /* ou 50% si tu veux une largeur réduite */
        margin: 0 auto; /* centre le bloc si largeur < 100% */
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
