/* Importation de la police */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Styles généraux */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

header {
    background: linear-gradient(135deg, #005a9e, #87CEFA); /* Dégradé bleu profond vers bleu ciel */
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ffd700;
}

main {
    padding: 2rem;
}

/* Présentation */
.presentation {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-image: url('../images/fond.jpg'); /* Image de fond */
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 100vh; /* Prend toute la hauteur de l'écran */
    justify-content: center;
    padding: 20px;
}

.idheader{
    background: linear-gradient(135deg, #005a9e, #87CEFA); /* Dégradé bleu profond vers bleu ciel */
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.idbody{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background: linear-gradient(to bottom, #87CEFA, #f5f5f5); /* Bleu ciel vers blanc doux */
}

/* Profil et texte */
.profile-container {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6); /* Rectangle semi-transparent */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
}

/* Photo de profil */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Rendre la photo circulaire */
    border: 4px solid #0078D7;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sous-titre */
.subtitle {
    font-size: 18px;
    margin: 10px 0;
    color: #ddd;
}

/* Texte de présentation */
.presentation-text {
    background-color: rgba(255, 255, 255, 0.9); /* Fond blanc semi-transparent */
    border: 2px solid #0078D7; /* Bordure colorée */
    border-radius: 10px; /* Coins arrondis */
    padding: 1rem 1.5rem; /* Espacement autour du texte */
    margin-top: 1rem; /* Marge au-dessus */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre légère */
    max-width: 80%; /* Limite la largeur */
    text-align: justify; /* Justifie le texte */
    font-size: 1.1rem;   /* Taille de police pour une bonne lisibilité */
    line-height: 1.6;    /* Espacement entre les lignes */
    color: #333;         /* Couleur du texte */
}

.presentation-text p {
    margin: 0; /* Supprime les marges par défaut */
}

/* Projets */
.projects-section {
    text-align: center;
}

.project-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.project {
    text-align: justify; /* Justifie le texte */
    font-size: 1.1rem;    /* Taille de police pour une meilleure lisibilité */
    line-height: 1.6;     /* Espacement entre les lignes */
    color: #333;          /* Couleur du texte */
    margin: 0;            /* Supprime les marges par défaut */
    display: none;        /* Cache tous les projets au départ */
}

/* Affiche uniquement le projet actif */
.project.active {
    display: block;
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 120, 215, 0.8);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* Décaler la flèche gauche */
.arrow.left {
    left: -50px;  /* Décalage supplémentaire vers la gauche */
}

/* Décaler la flèche droite */
.arrow.right {
    right: -50px; /* Décalage supplémentaire vers la droite */
}

/* Changer la couleur au survol */
.arrow:hover {
    background-color: #005a9e;
}

/* Compétences */
.skills-section {
    text-align: center;
    padding: 2rem 0;
}

.skills-buttons {
    margin-bottom: 1.5rem;
}

.skills-buttons button {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border: none;
    background-color: #0078D7;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.skills-buttons button:hover,
.skills-buttons button.active {
    background-color: #005a9e;
}

.skills-content {
    display: flex;
    justify-content: center; /* Centre le contenu horizontalement */
    align-items: center; /* Centre le contenu verticalement */
    padding: 20px;
}

.skills-list {
    display: none;
    margin-top: 20px;
    width: 80%; /* Limite la largeur du tableau */
    max-width: 600px; /* Largeur maximale */
    border-collapse: collapse; /* Pour que les bordures du tableau soient bien collées */
}

.skills-list.active {
    display: block;
}

.skills-list table {
    width: 100%; /* Le tableau prend toute la largeur de son conteneur */
    border: 1px solid #0078D7; /* Bordure bleu */
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
    background-color: #fff;
}

.skills-list th,
.skills-list td {
    padding: 10px 15px; /* Espacement interne */
    text-align: left; /* Alignement du texte à gauche */
    border: 1px solid #0078D7; /* Bordures des cellules */
}

.skills-list th {
    background-color: #0078D7;
    color: #fff;
    font-weight: 600;
}

.skills-list td {
    background-color: #f5f5f5;
}

.skills-list tr:nth-child(even) td {
    background-color: #e1f0ff; /* Fond légèrement différent pour les lignes paires */
}

.skills-list tr:hover td {
    background-color: #d3e7f9; /* Fond au survol */
}



/* Contact */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-section form {
    display: flex;
    flex-direction: column;
}

.contact-section label {
    margin: 0.5rem 0 0.2rem;
    text-align: left;
}

.contact-section input,
.contact-section textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-section button {
    margin-top: 1rem;
    padding: 0.8rem;
    border: none;
    background-color: #0078D7;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-section button:hover {
    background-color: #005a9e;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        background: #0078D7;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    nav {
        position: relative;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }
}

.skills-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.skills-table th, .skills-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.skills-table th {
    background-color: #0078D7;
    color: white;
}

.skills-table td {
    background-color: #f5f5f5;
}

/* Ajoute un effet au survol */
.skills-table td:hover {
    background-color: #d3e7f9;
}
