/* ================== */
/* ===== GLOBAL ===== */
/* ================== */

.container {
    max-width: 1200px;   /* largeur de lecture confortable */
    margin: 0 auto;     /* centre horizontalement */
    padding: 0 20px;    /* évite que ça touche les bords en mobile */
}

/* ===== POLICES ===== */

/* Police par défaut pour tout le texte */
body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #111;
    line-height: 1.6;
    scroll-behavior: smooth; /* scroll fluide pour les ancres */
}


/* Police spécifique pour les titres */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* titres bien visibles */
    margin: 0; /* évite les marges par défaut */
}

h3{
    font-size: clamp(1rem, 2vw, 1.5rem);
}

h4 {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}


/* 1. NAVBAR */
.navbar {
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;       /* padding vertical seulement */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding-left: 30px;    /* décalage vers la droite des liens */
}

.navbar a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.5rem);
    transition: 0.25s;
}

.navbar a:hover {
    color: #047dff;
}

#outer-wilds{
    color: black;             /* couleur par défaut */
    font-weight: 700;         /* gras */
    text-decoration: none;    /* pas de soulignement */
    transition: color 0.25s;  /* transition pour le hover */
}

#outer-wilds:hover{
    color: #047dff;
    transition: 0.25s;
}


.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 30px;  /* ✅ décalage simple du logo vers l’intérieur */
}


/* 2. TITRES */
#hero {
    display: flex;
    justify-content: center;
    align-items: center; /* centre aussi verticalement */
    min-height: 10vh;    /* hero plus “grand” et proportionnel */
    font-size: clamp(2.5rem, 8vw, 6rem); /* responsive : min, dynamique, max */
    font-weight: 700;
    margin-top: 100px;   /* garde le décalage sous la navbar */
    text-align: center;
    color: #111;
    padding: 0 20px;     /* petit padding horizontal pour éviter que ça touche les bords sur mobile */
}

h2 {
    text-align: center; /* centrer le texte */
    font-size: clamp(2rem, 5vw, 4rem); /* min 2rem, max 4rem, taille responsive */
    margin-bottom: 30px; /* marge en bas */
    position: relative; /* positionner les pseudo-éléments par rapport à ce titre */
}

h2::after {
    content: '';
    display: block;
        width: clamp(60px, 15vw, 120px); /* largeur responsive de la barre */
    height: 4px; /* hauteur de la barre */
    background-color: #000000; /* couleur noire de la barre */
    margin: 10px auto 0 auto; /* centrer sous le titre */
    border-radius: 2px; /* arrondir les bords de la barre */
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar-logo {
        margin-right: 15px; /* moins de décalage sur mobile */
        height: 35px;       /* logo plus petit */
    }

    .navbar ul {
        gap: 15px; /* moins d’espace entre les liens */
        padding-left: 10px;
    }
}

/* 3. A PROPOS */
.about {
    padding: 100px 20px 80px 20px; /* plus d'espace par rapport au hero */
}

.about-content {
    display: flex; /* conteneur en flexbox pour organiser */
    align-items: center; /* aligne verticalement les éléments au centre */
    justify-content: center; /* centrer horizontalement au centre */
    flex-wrap: wrap; /* passer la ligne sur l'écran est trop petit */
    gap: 40px; /* espace entre image et texte */
    margin-top: 40px; /* pour décaler un peu sous le titre */
    max-width: 1200px; /* limite la largeur totale du contenu */
    margin-left: auto;
    margin-right: auto; /* centre le bloc horizontalement */
}

/* IMAGE */
.profile-img {
    flex: 1 1 250px; /* flex-grow, flex-shrink, flex-basis */
    text-align: center; /* centrer horizontalement la photo */
    margin-bottom: 40px; /* espace sous la photo */
}

.profile-img img {
    width: 100%; /* largeur */
    max-width: 400px;     /* taille max sur desktop */
    height: auto;
    border-radius: 50%; /* rend la photo parfaitement ronde */
    object-fit: cover; /* recadre l’image pour qu’elle remplisse son conteneur sans déformer */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* ombre autour de la photo */
}

/* TEXTE */
.about-text {
    flex: 1; /* Le texte prend 1 fraction de l’espace disponible */
    min-width: 600px; /* largeur minimale pour que le texte reste lisible sur petit écran */
    max-width: 1000px; /* largeur maximale pour que le texte reste lisible sur petit écran */
}

.about-text p {
    text-align: justify; /* justifie le texte */
    font-size: clamp(1rem, 2vw, 1.5rem); /* responsive */
    margin-bottom: 10px; /* espace sous chaque paragraphe */
    line-height: 1.6; /* hauteur de ligne pour améliorer la lisibilité */
    color: black;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-text {
        min-width: 100%; /* texte prend toute la largeur sous l'image */
    }
}

/* 4. PROJETS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* responsive auto-fit */
    gap: 30px;
    margin-bottom: 100px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
}

/* IMAGE */
.project-img img {
    width: 100%;
    height: 220px;          /* même hauteur pour toutes */
    object-fit: cover;       /* couvre le conteneur uniformément */
}

.link-no-style {
    all: unset;          /* supprime tous les styles par défaut et hérités */
    cursor: pointer;     /* garde le curseur “clic” */
    color: inherit;      /* prend la couleur du texte environnant */
    text-decoration: none; /* supprime le soulignement */
    display: inline;     /* assure le comportement inline normal */
}

/* DETAILS */
.project-details {
    padding: 20px;
}

.project-details h3 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 10px;
}

.project-details p {
    margin-bottom: 15px;
    color: #555;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem); /* texte responsive */
}

/* BADGES */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.project-tech span {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-tech a {
    color: inherit;
    text-decoration: none;
}


.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* espace entre les catégories */
    justify-content: center; /* centre les catégories si moins de colonnes */
}

/* SKILLS */
/* chaque catégorie */
.skill-category {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    flex: 1 1 360px; /* minimum 250px, s’adapte à l’espace disponible */
    max-width: 360px; /* empêche d’être trop large sur grand écran */
    box-sizing: border-box;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* espace entre les tags */
}

.skill-item {
    background-color: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .skill-category {
        flex: 1 1 45%; /* 2 colonnes approximatives sur écran moyen */
        max-width: none;
    }
}

@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        gap: 15px;
    }
    .skill-category {
        flex: 1 1 100%; /* une seule colonne sur petit écran */
    }
}

/* CV */

.cv-container {
    display: flex;
    justify-content: center; /* centre horizontalement */
    padding: 60px 20px;
}

.cv-text {
    flex: 1;
    min-width: 500px;
    max-width: 800px;
    text-align: center; /* centrer le texte et le bouton */
}

.cv-text p {
    text-align: justify; /* texte justifié */
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 30px;
    line-height: 1.6;
    color: #333;
}

.btn-cv {
    display: inline-block;
    background-color: #3498db;
    color: white;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px; /* très arrondi */
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

.contact-container p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 40px;
    line-height: 1.6;
    color: #333;
}

.contact-methods {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #3498db;
    color: white;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.contact-btn.linkedin {
    background-color: #0077b5;
}

.contact-btn.linkedin:hover {
    background-color: #005582;
}

.contact-btn.github {
    background-color: #333;
}

.contact-btn.github:hover {
    background-color: #000;
}

.contact-btn i {
    font-size: 1.2rem;
}

