/* ============================================
   VARIABLES & RÉINITIALISATION
   ============================================== */

:root {
    --primary-color: #1a3a2a;
    --secondary-color: #0f2416;
    --accent-color: #8ba66e;
    --light-bg: #f0f1eb;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --border-color: #e5e5d8;
    --shadow: 0 2px 10px rgba(15, 36, 22, 0.1);
    --shadow-lg: 0 10px 30px rgba(15, 36, 22, 0.15);
    --transition: all 0.3s ease;
}
/* Style pour le cercle contenant l'image */
.photo-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden; /* pour que l'image reste dans le cercle */
    border: 4px solid #8ba66e; /* Bordure cyan (modifie cette couleur si nécessaire) */
    box-shadow: 0 0 20px #8ba66e; /* Effet de lumière autour */
    margin: 0 auto;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pour que l'image couvre entièrement le cercle */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   SECTION HÉROS
   ============================================== */

.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-text .description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.icon-container {
    font-size: 150px;
    color: var(--accent-color);
    opacity: 0.3;
    text-align: center;
}

/* ============================================
   COMPÉTENCES
   ============================================== */

.competences {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.competence-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.competence-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.competence-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.competence-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.competence-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.competence-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--accent-color);
}

/* ============================================
   PROJETS
   ============================================== */

.projets {
    padding: 80px 0;
    background: var(--white);
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.projet-card {
    background: linear-gradient(135deg, var(--light-bg), var(--white));
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
}

.projet-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.projet-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.projet-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.projet-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.projet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-small {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   FORMATION
   ============================================== */

.formation {
    padding: 80px 0;
    background: var(--light-bg);
}

.formation-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.formation-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
}

.formation-item {
    margin-bottom: 2rem;
    margin-left: 100px;
    position: relative;
}

.formation-marker {
    position: absolute;
    left: -70px;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    box-shadow: var(--shadow);
}

.formation-marker.certification {
    background: var(--accent-color);
    color: var(--white);
}

.formation-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.formation-content:hover {
    box-shadow: var(--shadow-lg);
}

.formation-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.formation-institution {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.formation-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
}

.formation-description {
    color: var(--text-light);
}

/* ============================================
   CONTACT
   ============================================== */

.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--text-light);
}

.info-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    text-decoration: underline;
}

.socials-title {
    margin-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* ============================================
   FOOTER
   ============================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 80px;
}

.footer p {
    margin: 0.5rem 0;
}

.footer i {
    color: var(--accent-color);
}

/* ============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .icon-container {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .competences-grid {
        grid-template-columns: 1fr;
    }

    .projets-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .formation-timeline::before {
        left: 15px;
    }

    .formation-item {
        margin-left: 50px;
    }

    .formation-marker {
        left: -45px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    @media (max-width: 480px) {
        .hero-text h1 {
            font-size: 2rem;
        }

        .section-title {
            font-size: 1.5rem;
        }

        .nav-menu {
            gap: 1rem;
            padding: 1rem;
        }

        .social-links {
            gap: 0.8rem;
        }

        .social-link {
            width: 45px;
            height: 45px;
            font-size: 1rem;
        }
    }
}
