/* Variables globales */
:root {
    --primary-color: #10b981;      /* Vert émeraude */
    --secondary-color: #059669;    /* Vert émeraude foncé */
    --dark-color: #111827;         /* Gris très foncé */
    --light-color: #1f2937;        /* Gris foncé */
    --text-color: #f9fafb;         /* Blanc cassé */
    --card-bg: #1f2937;            /* Fond des cartes */
    --hover-color: #34d399;        /* Vert hover */
    --border-color: #374151;       /* Bordure gris */
    --accent-color: #6ee7b7;       /* Vert clair pour les accents */
    --muted-color: #9ca3af;        /* Texte secondaire */
    --spacing-unit: 1rem;
}

/* Reset et styles de base */
* {
    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-color);
    background-color: var(--dark-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-unit);
}

/* Header et Navigation */
header {
    background-color: var(--light-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

/* Sections communes */
section {
    padding: 4rem 0;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Grilles */
.formation-grid,
.experiences-grid,
.competences-grid,
.contact-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

/* Cartes */
.formation-card,
.experience-card,
.competence-card,
.contact-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.formation-card:hover,
.experience-card:hover,
.competence-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.1);
    text-decoration: none;
    color: var(--text-color);
}

/* Section Accueil */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(16, 185, 129, 0.7), rgba(5, 150, 105, 0.7)), url('images/Wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.8rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Formation */
.formation-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Section Expériences */
.experiences-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Section Compétences */
.competences-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.competence-details {
    list-style: none;
    margin-top: 1rem;
}

.sub-list {
    list-style: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Section Contact */
.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.formation-card i,
.experience-card i,
.competence-card i,
.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.formation-card h3,
.experience-card h3,
.competence-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.formation-card p,
.experience-card p,
.competence-card p {
    color: var(--text-color);
}

.formation-card .formation-details,
.experience-card .period {
    color: var(--muted-color);
}

.competence-details > li {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.competence-details .sub-list li {
    color: var(--muted-color);
    margin-bottom: 0.3rem;
}

.competence-card h3 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.contact-item i {
    color: var(--accent-color);
}

.contact-item h3 {
    color: var(--text-color);
}

.contact-item p {
    color: var(--text-color);
}

/* Media Queries pour la responsivité */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    /* Animation du hamburger */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Ajustements des sections */
    section {
        padding: 2rem 0;
    }

    .hero {
        background-attachment: scroll; /* Pour de meilleures performances sur mobile */
        min-height: 100vh;
        padding: 6rem 1rem 2rem 1rem; /* Ajoute de l'espace pour le menu fixe */
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 1.4rem;
        padding: 0 1rem;
    }

    /* Ajustements des grilles */
    .formation-grid,
    .experiences-grid,
    .competences-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Ajustements des cartes */
    .formation-card,
    .experience-card,
    .competence-card,
    .contact-item {
        padding: 1rem;
    }

    /* Ajustements des listes */
    .competence-details {
        font-size: 0.9rem;
    }

    .sub-list {
        margin-left: 1rem;
    }
}

/* Media Queries pour les très petits écrans */
@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0.5rem;
    }

    .hero {
        padding: 5rem 0.5rem 1rem 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .competence-card h3 {
        font-size: 1.2rem;
    }
}

/* Ajustements pour les grands écrans */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .competences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajout d'un footer */
footer {
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 2rem 0;
    text-align: center;
}

/* Animation de fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.formation-card,
.experience-card,
.competence-card,
.contact-item {
    animation: fadeIn 0.5s ease-out forwards;
} 