/* ========== Styles généraux ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    /*
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    */
}

/* ========== Header ========== */
header {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 100%;
    margin: auto;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007BFF;
    transition: color 0.3s ease;
}

.navbar .logo:hover {
    color: #0056b3;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #007BFF;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #00C896;
    border-bottom: 2px solid #00C896;
}

/* ========== Hero Section (Index) ========== */
.hero {
    height: 100vh;
    background: url('background.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    position: relative;
}

.hero .overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: slideIn 1s ease-in-out;
}

.hero p {
    font-size: 1.4rem;
    color: #eaeaea;
    animation: fadeIn 2s ease-in-out;
}

.btn-primary {
    background: #00C896;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    animation: bounce 2s infinite;
}

.btn-primary:hover {
    background: #009B74;
    transform: scale(1.1);
}

/* ========== Sections ========== */
main {
    padding: 40px 20px;
    max-width: 100%;
    margin: auto;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #222;
}

/* ========== Section À propos (about.html) ========== */
.about-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.about-section h2 {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.profile-picture {
    flex: 1;
    max-width: 100%;
}

.profile-picture img {
    width: 100%;
    border-radius: 50%;
    border: 5px solid #f39c12;
    transition: transform 0.3s ease;
}

.profile-picture img:hover {
    transform: scale(1.1);
}

.personal-info {
    flex: 2;
    max-width: 100%;
    text-align: left;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.personal-info ul {
    list-style: none;
    padding: 0;
}

.personal-info li {
    font-size: 1.1rem;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== Section Expérience (experience.html) ========== */
.education,
.experience {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.education-item,
.experience-item {
    margin-bottom: 20px;
    padding: 10px;
}

.education-item h2,
.experience-item h2 {
    color: #1264f3;
    font-size: 1.3em;
}

.date {
    font-style: italic;
    color: #777;
}

/* ========== Section Compétences (competence.html) ========== */
.skills-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.skills-section h2 {
    text-align: center;
    color: #f39c12;
    margin-bottom: 20px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-item {
    background: #222;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

/* ========== Section Projets (projet.html) ========== */
.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-button {
    background: #222;
    color: white;
    padding: 10px 15px;
    margin: 0 5px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.filter-button:hover,
.filter-button.active {
    background: #f39c12;
}

.project-grid {
   
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    
}

.project-card {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project-image {
    width: 100%;
    border-radius: 5px;
}

/* ========== Contact Section ========== */
.contact-section {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
    margin-top: 100px;
}

.contact-section h1 {
    font-size: 2.8rem;
    color: #007BFF;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

.contact-section .intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
    animation: fadeIn 1.5s ease-in-out;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    animation: fadeIn 2s ease-in-out;
}

.contact-form {
    flex: 1;
    min-width: 100%;
    max-width: 100%;
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    background: #007BFF;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form .btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: #f0f9ff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info h2 {
    font-size: 1.8rem;
    color: #007BFF;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    font-size: 1.1rem;
    margin: 15px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #007BFF;
    font-size: 1.4rem;
}

/* ========== Footer ========== */
footer {
    background: #fff;
    color: #333;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    margin-top: 50px;
}

footer p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .skills-section {
        padding: 20px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form,
    .contact-info {
        max-width: 100%;
    }
}

/* ========== Styles généraux ========== */
.competences {
    padding: 60px 20px;
    max-width: 100%;
    margin: auto;
    animation: fadeIn 1.5s ease-in-out;
}

.competences h1 {
    text-align: center;
    font-size: 2.8rem;
    color: #007BFF;
    margin-bottom: 20px;
    animation: slideIn 1s ease-in-out;
}

.competences .intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease-in-out;
}

/* ========== Sections de Compétences ========== */
.competence-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competence-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.competence-section h2 {
    font-size: 1.8rem;
    color: #007BFF;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.competence-section h2 i {
    font-size: 1.5rem;
    color: #00C896;
}

.competence-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.competence-section li {
    font-size: 1.1rem;
    margin: 15px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.competence-section li:hover {
    color: #007BFF;
    transform: translateX(10px);
}

.competence-section li i {
    font-size: 1.2rem;
    color: #00C896;
}

/* ========== Section Conclusion ========== */
.competence-section.conclusion {
    text-align: center;
    background: #f0f9ff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.competence-section.conclusion p {
    font-size: 1.2rem;
    color: #007BFF;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.competence-section.conclusion i {
    font-size: 1.5rem;
    color: #00C896;
    animation: bounce 2s infinite;
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .competences {
        padding: 40px 10px;
    }

    .competence-section {
        padding: 20px;
    }

    .competence-section h2 {
        font-size: 1.5rem;
    }

    .competence-section li {
        font-size: 1rem;
    }
}

/* Sections */
.atouts-section, .langues-section {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    margin: 20px auto;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
}

.intro-text {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #555;
}

/* Grilles */
.atouts-grid, .langues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Cartes */
.atout-card, .langue-card {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.atout-card:hover, .langue-card:hover {
    transform: scale(1.05);
}

.atout-card i {
    font-size: 2em;
    color: #2812f3;
    margin-bottom: 10px;
}

h2 {
    color: #34495e;
}
.langue-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.langue-card .flag {
    width: 30px;
    height: auto;
    border-radius: 5px;
}
/* Styles pour les profils sociaux et le téléchargement du CV */
.social-profiles {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.social-profiles a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    background: #ffffff;
    color: #000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;  /* Prend toute la largeur du conteneur */
    height: 200px; /* Hauteur fixe pour toutes les images */
    object-fit: cover; /* Recadre l'image pour qu'elle remplisse l'espace sans déformation */
    border-radius: 10px; /* Arrondit légèrement les coins pour un effet plus propre */
}


.social-profiles a i {
    font-size: 10px;
}

/* Effet au survol */
.social-profiles a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Couleurs spécifiques */
.social-profiles .linkedin {
    background: #0077b5;
    color: white;
}

.social-profiles .github {
    background: #24292e;
    color: white;
}


/* Réduction de la taille du bouton "Télécharger CV" */
.social-profiles .cv-download {
    background: #28a745;
    color: white;
    padding: 12px 8px; /* Taille réduite */
    font-size: 8px; /* Réduction de la police */
}

.social-profiles .cv-download i {
    font-size: 12px; /* Réduction de l'icône */
}
.filter-button:hover {
    background-color: #007bff;
    color: #fff;
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
}
.project-details {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.project-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.back-button:hover {
    background-color: #0056b3;
}

/* 📱 Responsive Design */
@media screen and (max-width: 100%) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .social-profiles {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        padding: 20px;
    }

    .overlay {
        width: 90%;
    }
}

@media screen and (max-width: 100%) {
    .navbar {
        padding: 10px;
    }

    .hero {
        height: auto;
        padding: 40px 10px;
    }

    .btn-primary {
        display: block;
        width: 80%;
        text-align: center;
        margin: 10px auto;
    }
}
@media (max-width: 100%) {
    .navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px;
        display: block;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
    }
}

@media (min-width: 100%) {
    .menu-toggle {
        display: none;
    }
}

