/* Global */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #f1f1f1;
    overflow-x: hidden;
    animation: fadeInAnimation ease 2s;
}

a {
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

a:hover {
    color: #00ffcc !important;
}

/* Animation d'apparition */
@keyframes fadeInAnimation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* En-tête */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

header h1 {
    font-size: 1.5em;
    color: #00ffcc;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #00ffcc;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff0077;
}

nav .menu-toggle {
    display: none; /* Caché par défaut */
    font-size: 24px;
    cursor: pointer;
   
}



/* Conteneur 3D */
#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* Sections principales */
main {
    position: relative;
    z-index: 1;
    padding: 100px 20px 20px;
}

/* Section À propos */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 42px;
    /*background: rgba(24, 24, 27, 0.8);*/
    border: 1px solid #27272A;
    border-radius: 14px;
    /*backdrop-filter: blur(10px);*/
    margin-bottom: 20px;
}

.about .left h3 {
    color: #616161;
    font-size: 24px;
    font-weight: 400;
}

.about .left .info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about .left .info h2 {
    font-size: 36px;
    color: #fff;
    font-weight: 500;
}

.about .left .info p {
    font-size: 20px;
    color: #616161;
}

.about .left .info .buttons {
    display: flex;
    gap: 14px;
}

.about .left .info .buttons button {
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about .left .info .buttons button.email {
    color: #616161;
    border: 1px solid #bdbdbd;
    background: #e0e0e0;
}

.about .left .info .buttons button.email:hover {
    background: #cfcfcf;
}

.about .right img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid #bdbdbd;
    object-fit: cover;
}

/* Section Compétences */
.skills {
    padding: 60px 42px;
  /*  background: rgba(24, 24, 27, 0.8);*/
    border: 1px solid #27272A;
    border-radius: 14px;
   /* backdrop-filter: blur(10px);*/
    margin-bottom: 20px;
}

.skills h3 {
    color: #BDBDBD;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #27272A;
    border-radius: 14px;
    padding: 20px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
}

.skill-item i {
    font-size: 40px;
    color: #00ffcc;
    margin-bottom: 10px;
}

.skill-item h4 {
    color: #fff;
    font-size: 20px;
    margin-top: 10px;
}

.skill-item p {
    color: #BDBDBD;
    font-size: 16px;
    margin-top: 5px;
    text-align: justify;
}

/* experience profetionnelle*/

.experience {
    padding: 60px 42px;
    /*background: rgba(24, 24, 27, 0.8);*/
    border: 1px solid #27272A;
    border-radius: 14px;
    /*backdrop-filter: blur(10px);*/
    margin-bottom: 20px;
}

.experience h3 {
    color: #BDBDBD;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #27272A;
    border-radius: 14px;
    padding: 20px;
}

.experience-item h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.experience-item .company {
    color: #00ffcc;
    font-size: 16px;
    margin-bottom: 5px;
}

.experience-item .date {
    color: #BDBDBD;
    font-size: 14px;
    margin-bottom: 10px;
}

.experience-item ul {
    list-style: disc inside;
    color: #BDBDBD;
    font-size: 16px;
    padding-left: 20px;
}


/* Section Portfolio */
.portfolio {
    padding: 60px 42px;
  /*  background: rgba(24, 24, 27, 0.8);*/
    border: 1px solid #27272A;
    border-radius: 14px;
  /* backdrop-filter: blur(10px);*/
    margin-bottom: 20px;
}

.portfolio h3 {
    color: #BDBDBD;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #27272A;
    border-radius: 14px;
    padding: 20px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.portfolio-item img {
    width: 100%;
    border-radius: 14px;
}

.portfolio-item h4 {
    color: #fff;
    font-size: 20px;
    margin-top: 10px;
}

.portfolio-item p {
    color: #BDBDBD;
    font-size: 16px;
    margin-top: 5px;
    text-align: justify;
}

/* Section Contact */
.contact {
    padding: 60px 42px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid #27272A;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.contact h3 {
    color: #BDBDBD;
    font-size: 24px;
    margin-bottom: 20px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact form label {
    font-size: 16px;
    color: #BDBDBD;
}

.contact form input,
.contact form textarea {
    font-size: 16px;
    padding: 10px;
    border-radius: 7px;
    border: 1px solid #bdbdbd;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.contact form textarea {
    height: 150px;
    resize: none;
}

.contact form button {
    font-size: 16px;
    padding: 10px;
    border-radius: 7px;
    border: none;
    background: #00ffcc;
    color: #000;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact form button:hover {
    background: #ff0077;
}


/* section cv*/

.cv {
    padding: 60px 42px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid #27272A;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    text-align: center;
}

.cv h3 {
    color: #BDBDBD;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.cv-button {
    background: #00ffcc;
    color: #000;
    padding: 10px 20px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease;
}

.cv-button:hover {
    background: #ff0077;
}

/* Pied de page */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid #27272A;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

footer .socials {
    display: flex;
    gap: 20px;
}

footer .socials a {
    font-size: 20px;
}

/* Mode sombre */
body.dark-mode {
    background-color: #1e1e1e;
    color: #f1f1f1;
}

body.dark-mode nav,
body.dark-mode .about,
body.dark-mode .portfolio-item,
body.dark-mode .contact,
body.dark-mode footer {
    background-color: #2e2e2e;
    border-color: #444;
}

body.dark-mode nav .links a,
body.dark-mode footer .socials a {
    color: #f1f1f1;
}

body.dark-mode .portfolio-item h4,
body.dark-mode .portfolio-item p,
body.dark-mode .contact h3,
body.dark-mode .contact form label {
    color: #f1f1f1;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: rgba(24, 24, 27, 0.8);
        border: 1px solid #27272A;
        border-radius: 14px;
        padding: 10px;
        position: absolute;
        top: 70px;
        right: 20px;
        z-index: 10;
    }

    nav ul.active {
        display: flex;
    }
    
    nav .menu-toggle {
        display: block;
    }
    .about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about .left, .about .right {
        margin-top: 20px;
    }

    .portfolio-grid {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-item {
        max-width: 100%;
    }

    .contact {
        padding: 30px 20px;
    }
}
