main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #111;
    color: white;
    padding: 20px;
}

h2, h3 {
    text-align: center;
}

#photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 0.75rem rgb(119, 119, 119));
}

section {
    max-width: 1280px;
    padding: 20px;
}

#about {
    display: flex;
   
    align-items: center;
    gap: 20px; /* Ajoute de l'espace entre les éléments */
}

/* Formulaire */
.contact-section {
    width: 100%;  
    max-width: 1280px;
    background-color: #333;
    color: #f4f4f4;
    margin-bottom: 30px;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box; /* Assure que le padding est pris en compte dans la largeur totale */
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.contact-form {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #111;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 90%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
    font-size: 1em;
}

.contact-form textarea {
    resize: none;
    height: 150px;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #168bff;
    color: black;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Styles pour la section Expérience */
#experience {
    background-color: #111; /* Fond sombre similaire au reste du site */
    color: white;
    padding: 40px 20px;
    max-width: 1280px;
    margin: 20px auto;
    border-radius: 20px; /* Bords arrondis pour un design harmonieux */
    box-shadow: 0 4px 10px rgba(238, 236, 236, 0.5); /* Ombre pour un effet de profondeur */
}

#experience h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.experience-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; /* Espacement entre les cartes */
}

.experience-card {
    background-color: #333; /* Fond sombre pour chaque carte */
    color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 350px; /* Largeur maximale pour les cartes */
    box-shadow: 0 4px 10px rgba(149, 148, 148, 0.3); /* Ombre pour les cartes */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-10px); /* Légère levée des cartes au survol */
    box-shadow: 0 10px 15px rgba(208, 201, 201, 0.4); /* Accentuation de l'ombre au survol */
}

.experience-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffffff;
}

.experience-card .date {
    font-size: 1.1em;
    color: #aaa; /* Couleur plus claire pour les dates */
    margin-bottom: 15px;
}

.experience-card .description {
    font-size: 1em;
    color: #d4d4d4;
    line-height: 1.5;
}

/* Responsive Design pour la section Expérience */
@media (max-width: 768px) {
    .experience-container {
        flex-direction: column;
        align-items: center;
    }

    .experience-card {
        width: 90%;
        max-width: none;
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    #about {
        flex-direction: column; /* Colonne par défaut sur les petits écrans */
        text-align: center; /* Centrer le texte */
    }

    #photo { 
        display: none;
    }

    .contact-section h2 {
        font-size: 2em; /* Réduire la taille du titre sur les petits écrans */
    }

    .contact-form {
        padding: 20px; /* Réduire le padding sur les petits écrans */
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 0.9em; /* Réduire légèrement la taille du texte */
    }

    .contact-form button[type="submit"] {
        padding: 12px; /* Réduire le padding du bouton */
        font-size: 1em; /* Réduire la taille de la police du bouton */
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 15px; /* Réduire encore plus le padding sur les très petits écrans */
    }

    .contact-form {
        padding: 15px; /* Réduire encore plus le padding du formulaire */
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 0.8em; /* Réduire encore plus la taille du texte */
    }

    .contact-form button[type="submit"] {
        padding: 10px; /* Ajuster le padding du bouton pour les petits écrans */
        font-size: 0.9em; /* Réduire encore plus la taille de la police du bouton */
    }
}


/* Section Projets */
#projects {
    background-color: #111; /* Fond similaire aux autres sections */
    color: white;
    padding: 40px 20px;
    max-width: 1280px;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(238, 236, 236, 0.5);
}

#projects h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.linkItems {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    background-color: #168bff;
    border-radius: 10px;
}

.project-card {
    background-color: #333;
    color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 10px rgba(149, 148, 148, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(208, 201, 201, 0.4);
}

.project-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 10px;
    filter: drop-shadow(0 0 0.75rem rgb(119, 119, 119));
}

.project-description {
    font-size: 1em;
    color: #d4d4d4;
    line-height: 1.5;
}

/* Responsive Design pour la section Projets */
@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
        max-width: none;
    }
}
