/* Arrière-plan animé */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* En arrière-plan */
}

/* Couleurs principales du thème */
:root {
    --bg-color: #000000;
    --secondary-color: #DAA500;
    --title-color: #D6974C;
    --text-color: #E4E4E4;
    --label-color: #FFFFFF;
    --name-color: #222222;
}

/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps du site */
body {
    font-family: 'Playfair Display', serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 16px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--title-color);
    transform: scale(1.05);
}

/* ========================= */
/* 🔝 EN-TÊTE ET NAVIGATION */
/* ========================= */

/* Conteneur du header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 32px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1000;
    height: 60px;
}

/* Icônes du header (droite) */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 20.8px;
    transition: transform 0.3s;
}

.header-right a:hover {
    transform: translateY(-2px);
}

/* Liens de navigation */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-links a {
    font-size: 16px;
    color: var(--secondary-color);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

/* Soulignement animé */
.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

/* Sélecteur de langue */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

/* Bouton de thème */
.theme-switcher button {
    font-size: 19.2px;
    color: var(--secondary-color);
}

/* Icône thème animé */
#theme-toggle i {
    transition: transform 1s ease;
}

#theme-toggle:hover i {
    transform: rotate(240deg);
}

/* ========================= */
/* 🇫🇷 ICÔNES DRAPEAUX ET ANIMATIONS */
/* ========================= */

.flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    vertical-align: middle;
    margin: 0;
}

@keyframes flip {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(90deg); }
}

button:hover .flag-icon {
    animation: flip 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}

/* ========================= */
/* 🧔 SECTION HERO */
/* ========================= */

.hero {
    background: linear-gradient(135deg, var(--bg-color), var(--secondary-color));
    padding: 96px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    animation: float 3s infinite linear;
}

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

.hero-text {
    font-size: 40px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.name-highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.profile-img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #455768;
    margin: 32px auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.btn-projects {
    padding: 12.8px 32px;
    border: 1px solid black;
    background: transparent;
    color: black;
    border-radius: 4.8px;
    transition: all 0.2s ease;
}

.btn-projects:hover {
    transform: translateY(-1px);
    background: #daa4000f;
    color: black;
    border: 1px solid #000000;
}

.d-flex.gap-3 {
    justify-content: flex-end;
    width: 80%;
}

.btn-envoi {
    padding: 5px 25px;
    border: 1px solid var(--secondary-color);
    background: transparent;
    color: var(--accent-color);
    border-radius: 4.8px;
    transition: all 0.2s ease;
    justify-content: center;
    width: 100%;
}

.btn-envoi:hover {
    transform: translateY(-1px);
    background: rgb(19, 19, 19);
    color: rgb(255, 255, 255);
    border: 1px solid #D6974C;
}

/* ========================= */
/* 📦 SECTIONS GÉNÉRIQUES */
/* ========================= */

.section {
    padding: 64px 0;
}

.title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

/* ========================= */
/* 💼 PROJETS ET COMPÉTENCES */
/* ========================= */

.card {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Barre de compétences */
.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--secondary-color);
    width: 70%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ========================= */
/* 📬 SECTION CONTACT */
/* ========================= */

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 33px;
}

.contact-icon {
    color: var(--secondary-color);
    font-size: 24px;
    
}

.contact-label {
    color: var(--label-color);
    font-weight: bold;
    margin-right: 8px;
}

.contact-value {
    color: var(--text-color);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.contact-info {
    padding: 32px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--bg-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 32px;
}

.social-link {
    color: var(--secondary-color);
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    color: var(--title-color);
    transform: scale(1.2);
}

.form-control {
    background: rgb(22, 21, 21);
    border: 0.1px solid var(--secondary-color);
    color: var(--text-color);
    padding: 12px;
    border-radius: 8px;
}

.contact-form .form-control:focus {
    background-color: #80878d;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.886);
    opacity: 5;
}

/* Encadré personnalisé */
.custom-border {
    border: 0.1px transparent;
    border-radius: 10px;
    padding: 20px;
    background-color: black !important;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    min-height: 300px;
}

/* ========================= */
/* 📅 TIMELINE */
/* ========================= */

.timeline {
    position: relative;
    padding-left: 24px;
    font-family: var(--font-family);
    color: white;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background-color: var(--secondary-color);
}

.timeline-item {
    position: relative;
    padding: 16px 0 16px 16px;
    border-left: 2px solid transparent;
}

.timeline-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--accent-color);
}

/* ========================= */
/* ⚓ PIED DE PAGE */
/* ========================= */

.footer-text {
    color: var(--secondary-color);
    font-weight: bold;
    text-align: center;
    margin-top: 32px;
    font-size: 16px;
}




/* Masquer le menu burger en grand écran */
.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size:20px;
    color: var(--secondary-color);
}

/* Cacher les liens de navigation par défaut */
.navbar-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#burger-button {
    position: absolute; /* Positionne de manière absolue */
    top: 20px;           /* Espace du haut de la page */
    left: 20px;          /* Espace du côté gauche de la page */
    z-index: 1000;       /* Assure-toi que le bouton soit au-dessus des autres éléments */
    background: none;    /* Pas de fond */
    border: none;        /* Pas de bordure */
    cursor: pointer;     /* Change le curseur au survol */
}
/* Styles du menu déroulant pour petits écrans */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
        margin-left: auto;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        background-color:#483600f6; /* Couleur de fond du menu */
        padding: 16px;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000; /* S'assure que le menu soit au-dessus des autres éléments */
    }

    .navbar-links.show {
        display: flex;
    }

    .navbar-links li {
        padding: 10px 0;
    }
}

/* Position par défaut du bouton de changement de thème */
.theme-switcher {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}