/* Variables de couleurs basées sur ton CV */
:root {
    --primary-color: #1a9494; /* Le bleu-vert du CV */
    --secondary-color: #2c3e50;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    background: var(--white);
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- Ajustement de la photo de profil --- */
.profile-pic {
    width: 140px;          /* Taille réduite (était à 180px) */
    height: 140px;         /* Doit être identique à la largeur pour rester ronde */
    border-radius: 50%;    /* Rend l'image parfaitement ronde */
    border: 4px solid rgba(255, 255, 255, 0.8); /* Bordure plus fine */
    margin-bottom: 15px;
    
    /* LE PLUS IMPORTANT : */
    object-fit: cover;     /* Empêche l'image d'être écrasée ou étirée */
    object-position: center; /* Centre le visage dans le cercle */
    
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

/* --- Ajustement du Header (pour qu'il soit moins "massif") --- */
header {
    background: linear-gradient(rgba(26, 148, 148, 0.8), rgba(44, 62, 80, 0.9)), 
                url('profil.jpg') no-repeat center center/cover;
    
    min-height: 70vh;      /* Hauteur réduite (était à 100vh) */
    padding: 60px 0;       /* Espace intérieur pour aérer */
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;     /* Taille de texte un peu plus petite */
    margin-bottom: 0.5rem;
}
.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    background: var(--primary-color);
    height: 3px;
    width: 50px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-light {
    background: var(--light-bg);
}

/* Grilles */
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card, .project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.skill-card h3, .project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: square;
    padding-left: 20px;
}

/* Timeline Expérience */
.timeline-item {
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.date {
    font-weight: bold;
    color: var(--primary-color);
}

/* Contact */
.contact-info {
    text-align: center;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Simplification pour mobile */
    }
    header h1 {
        font-size: 2rem;
    }
}




/* --- EFFET SUR LES COMPÉTENCES (Cartes qui se soulèvent) --- */
.skill-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border-bottom: 4px solid transparent; /* Bordure invisible au début */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet ressort */
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.03); /* Monte et grossit légèrement */
    border-bottom: 4px solid var(--primary-color); /* La bordure apparaît */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); /* Ombre plus profonde */
}

.skill-card h3 {
    transition: color 0.3s ease;
}

.skill-card:hover h3 {
    color: var(--primary-color); /* Le titre change de couleur au survol */
}

/* --- EFFET SUR LES EXPÉRIENCES (Glissement vers la droite) --- */
.timeline-item {
    background: var(--white);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-left: 5px solid #eee; /* Bordure grise par défaut */
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.timeline-item:hover {
    transform: translateX(20px); /* Glisse de 20px vers la droite */
    border-left: 5px solid var(--primary-color); /* La bordure devient bleue */
    background-color: #f9ffff; /* Change légèrement le fond */
    box-shadow: -10px 10px 20px rgba(0,0,0,0.05);
}

.timeline-item .date {
    display: inline-block;
    transition: transform 0.3s ease;
}

.timeline-item:hover .date {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* --- EFFET SUR LES PROJETS (Rotation légère) --- */
.project-card {
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: rotate(1deg) scale(1.05); /* Légère rotation pour un look dynamique */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}