
:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --accent: #e74c3c;
    --text: #333;
    --text-light: #777;
    --white: #fff;
    --shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--secondary);
    line-height: 1.2;
}

/* Dans votre fichier style.css */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mobile-menu {
    margin-left: auto; /* Pousse le bouton à droite */
    order: 2; /* Pour les dispositions flex */
}


p {
    margin-bottom: 1rem;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

/* Header */
header {
    background: linear-gradient(-45deg, #2b5876, #4e4376, #1a2980, #26d0ce);
    background-size: 400% 400%;
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gradientBG 15s ease infinite;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Effet de particules/code qui tombe */
.header-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.header-particles span {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    animation: fall linear infinite;
    opacity: 0;
}
@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* Navigation */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary); 
   /*
    background: none;
    border: none;
    padding: 0.5rem;*/
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Skills */
.skills {
    margin-top: 2rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h4 {
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
    z-index: 1;
}

.timeline-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-style: italic;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.timeline-description ul {
    margin-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-description li {
    margin-bottom: 0.4rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-description {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.education-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.education-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.education-institution {
    font-style: italic;
    color: var(--text-light);
}

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

.contact-info-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        gap: 2rem;
    }
    
    .contact-container {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #navbar {
        position: fixed; /* Rend la navbar fixe */
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    body {
        padding-top: 60px; /* Ajustez cette valeur en fonction de la hauteur de votre navbar */
    }
    header {
        margin-top: 60px; /* Compense la navbar fixed */
    }
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    .title {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        order: 1;
    }
    
    .skills {
        order: 2;
    }
    
    .timeline::before {
        left: 18px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 45px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-dot {
        left: 9px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
      
        margin-top: 1rem;

        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px; /* Ajustez en fonction de la hauteur de votre navbar */
        left: 0;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        
    }
    
    .nav-links.active {
        display: flex;
       position: fixed;
        top: 60px; /* Ajustez selon la hauteur de votre navbar */
        left: 0;
        width: 100%;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        background-color: rgba(255, 255, 255, 0.98);
    }
    .nav-links {
    display: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
}

.nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
}


@media (max-width: 576px) {
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 0.8rem;
    }
    .header-content h1 {
        font-size: 1.6rem;
    }
    .header-content h1 {
        font-size: 1.6rem;
    }
    
    .contact-item span {
        font-size: 0.8rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    .timeline-content {
        padding: 1rem;
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}
/* Empêcher le zoom sur les champs de formulaire sur mobile */
input, textarea, select {
    font-size: 16px !important;
}

/* Améliorer l'espacement sur mobile */
body {
    padding: 0;
    margin: 0;
}

/* Correction pour les viewports mobiles */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Empêcher le débordement horizontal */
html, body {
    overflow-x: hidden;
    width: 100%;
}


/* Animation du titre */
.title-aurona {
    color: var(--light);
    line-height: 1.2;
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    z-index: 1;

}

.aurona {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.aurona-item {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(5px);
    animation: auronaBubble 4s ease-in-out infinite;
}

.aurona-item:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}
.aurona-item:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 0.5s;
}
.aurona-item:nth-child(3) {
    top: 30%;
    left: 50%;
    animation-delay: 1s;
}
.aurona-item:nth-child(4) {
    top: 70%;
    left: 30%;
    animation-delay: 1.5s;
}
.aurona-item:nth-child(5) {
    top: 40%;
    left: 70%;
    animation-delay: 2s;
}

@keyframes auronaBubble {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Effet de surbrillance sur le titre */
.title-aurona::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.title-aurona:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .title-aurona {
        font-size: 2rem;
    }
    
    .aurona-item {
        width: 12px;
        height: 12px;
    }
}
@media (max-width: 576px) {
    .title-aurona {
        font-size: 1.6rem;
    }
    
    .aurona-item {
        width: 10px;
        height: 10px;
        filter: blur(3px);
    }
}



