/* Réinitialisation des marges et padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style général pour le body */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
}

/* Style du titre h1 avec dégradé bleu clair vers vert */
h1 {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    padding: 10px;
    background: linear-gradient(to right, #87CEFA, #2ecc71); /* Dégradé bleu clair vers vert */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* Assurez-vous que le texte devient transparent pour afficher le dégradé */
    text-align: center;
}

/* Barre de navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: #333;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 30px 0;
}

.navbar a {
    text-decoration: none;
    color: white;
    display: block;
    padding: 10px 20px;
    border-radius: 5px;
}

.navbar a:hover {
    background-color: #575757;
}

.navbar-img {
    display: block; /* Pour éviter les marges automatiques non désirées */
    margin: 0 auto; /* Centre horizontalement */
    height: 130px; /* Ajuste la hauteur selon tes besoins */
    border: 4px solid #fcfcfc; /* Ajoute une bordure bleue claire */
    border-radius: 50%; /* Rend les coins arrondis (cercle parfait si l'image est carrée) */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ajoute une ombre subtile */
}


/* Contenu principal */
.content {
    margin-left: 250px;
    padding: 40px;
}

/* Style des sections de contenu */
section {
    margin-bottom: 70px;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h1 {
    margin-top: 0;
}

/* Effet de défilement fluide pour la navigation */
html {
    scroll-behavior: smooth;
}

/* Conteneur de l'image d'accueil */
.ACCUEIL {
    position: relative;
    width: 100%;
    height: 80vh;
    background-color: #000;
}

/* Image de la section ACCUEIL */
.ACCUEIL img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image couvre toute la section */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Placer l'image en arrière-plan */
}

/* Contenu superposé sur l'image */
.ACCUEIL h1 {
    font-size: 4rem;
    font-weight: bold;
    color: white; /* Titre en blanc */
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    top: 50%; /* Centré verticalement */
    left: 50%;
    transform: translate(-50%, -50%); /* Centrage parfait */
    z-index: 1; /* Assure-toi que le texte soit au-dessus de l'image */
}

.ACCUEIL p {
    font-size: 1.5rem;
    color: white;
    line-height: 1.8;
    max-width: 800px;
    text-align: center;
    position: absolute;
    top: 60%; /* Positionne le texte en dessous du titre */
    left: 50%;
    transform: translateX(-50%); /* Centrer horizontalement */
    z-index: 1; /* Assure-toi que le texte soit au-dessus de l'image */
}

/* --- Liste des compétences --- */
.competences-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}
.competence-h3 {
    font-size: 35px;
    font-family: 'Abril Fatface';
    font-weight: 100;
    position: relative;
    margin-bottom: 50px;
}
.competence-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.competence-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 30px;
}

.competence-info h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.competence-info p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* Section "Mes projets" */
#projets {
    padding: 20px 50px;
}

.section-title {
    font-size: 50px;
    font-family: 'Abril Fatface', cursive;
    font-weight: 100;
    position: relative;
    margin-bottom: 50px;
}

.section-title::before {
    content: '';
    position: absolute;
    background-color: blueviolet;
    width: 50px;
    height: 7px;
    bottom: 0;
}

/* Grille des projets */
.projet-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1200px;
}

.projet-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.projet-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.projet-h2 {
    font-size: 35px;
    font-family: 'Abril Fatface';
    font-weight: 100;
    position: relative;
    margin-bottom: 50px;
}
.projet-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 5px solid #3498db;
}

.projet-item h3 {
    font-size: 1rem;
    color: #333;
    margin: 15px 0 5px;
}

.projet-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    padding: 0 10px 15px;
}

/* Section des centres d’intérêts */
#centre-d-interets {
    text-align: center;
    padding: 40px 20px;
}

#centre-d-interets h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, #87CEFA, #2ecc71); /* Dégradé bleu ciel vers vert */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* Texte transparent pour afficher le dégradé */
}

/* Conteneur principal pour les intérêts */
.interet-container {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espacement entre chaque intérêt */
    align-items: center;
}

/* Chaque bloc d'intérêt */
.interet-item {
    display: flex;
    align-items: center;
    gap: 20px; /* Espace entre l'image et le texte */
    background-color: #ffffff; /* Fond blanc */
    padding: 20px;
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre douce */
    width: 90%; /* Largeur adaptable */
    max-width: 900px; /* Maximum */
    justify-content: space-between;
}

/* Image de l’intérêt */
.interet-image {
    text-align: center;
}

.interet-image img {
    width: 150px;
    height: 150px;
    object-fit: cover; /* Gère les proportions de l’image */
    border-radius: 10px; /* Coins arrondis */
    border: 2px solid #87CEFA; /* Bordure bleu ciel */
    margin-bottom: 10px;
}

.interet-image p {
    font-size: 1rem;
    font-weight: bold;
    color: #333; /* Texte noir */
    margin: 0;
}

/* Texte explicatif */
.interet-texte {
    text-align: left;
    flex: 2;
}

.interet-texte p {
    font-size: 1rem;
    line-height: 1.6; /* Espacement entre les lignes */
    color: #333; /* Texte noir */
    margin: 5px 0;
}

.interet-texte strong {
    background: linear-gradient(to right, #87CEFA, #2ecc71); /* Dégradé bleu ciel vers vert */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* Texte transparent pour afficher le dégradé */
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .interet-item {
        flex-direction: column; /* Passe en colonne */
        text-align: center;
    }

    .interet-texte {
        text-align: center;
    }
}
/* --- Liste des centres d'intérêt --- */
.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    background-color: #ffffff;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
}

.gallery-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.gallery-text {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
    border-bottom: 4px solid black; /* Surlignage avec bordure */
    display: inline; /* Assurez-vous que la bordure suit le texte uniquement */
}

/* Style pour le titre des sections secondaires */
h4.palise {
    font-size: 60px;
    color: #4CAF50;
    background-color: #f0f8ff;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

/* Section "Mes Contacts" */
#contact {
    padding: 40px;
    margin: 50px auto;
    max-width: 1200px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligne les images et le texte en ligne */
    margin-bottom: 20px;
    gap: 20px; /* Ajoute un espace entre l'image et le texte */
}
.contact-h2 {
    font-size: 35px;
    font-family: 'Abril Fatface';
    font-weight: 100;
    position: relative;
    margin-bottom: 50px;
}
.contact-item img {
    width: 50px; /* Taille réduite des images */
    height: 50px; /* Assure une hauteur cohérente */
    object-fit: cover;
    border-radius: 5px; /* Coins légèrement arrondis */
    margin-right: 15px; /* Espace entre l'image et le texte */
}

.contact-details {
    font-weight: 600;
    font-size: 1rem; /* Taille cohérente avec le reste des paragraphes */
    text-align: left; /* Aligne le texte à gauche */
}
