body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Fond sombre */
    color: #fff;
}

header {
    position: relative;
    height: 100vh;
    background: linear-gradient(to bottom, #000000, #2b2b2b); /* Dégradé de fond */
    display: flex;
    align-items: center;
}

.hero {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.profile img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #fff; /* Bordure blanche */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Légère ombre */
}

.profile h1 {
    margin-top: 10px;
    color: #fff; /* Couleur du texte */
}

section {
    padding: 40px;
    background-color: #333; /* Couleur de fond des réalisations */
    border-top: 2px solid #555; /* Bordure supérieure */
}

.portfolio-card {
    background-color: #444; /* Couleur de fond des cartes */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); /* Légère ombre */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out; /* Animation de survol */
    position: relative; /* Ajout pour positionner la boîte modale correctement */
}

.portfolio-card:hover {
    transform: scale(1.05); /* Animation de survol */
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-card h3, .portfolio-card p {
    color: #fff; /* Couleur du texte des cartes */
    margin: 10px; /* Ajout de marge pour éviter le débordement */
    font-size: 16px; /* Ajustement de la taille du texte */
}

.portfolio-card .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour l'overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Initialement invisible */
    transition: opacity 0.3s ease-in-out;
}

.portfolio-card:hover .overlay {
    opacity: 1; /* Rendre l'overlay visible au survol */
}

.portfolio-card .overlay img {
    max-width: 80%; /* Ajustez la largeur de l'image selon vos préférences */
    max-height: 80vh; /* Ajustez la hauteur de l'image selon vos préférences */
    object-fit: contain; /* Conservez les proportions de l'image */
    border: 2px solid #fff; /* Ajoutez une bordure à l'image */
}

.portfolio-card .overlay p {
    max-height: 100px; /* Limitez la hauteur du paragraphe pendant le zoom */
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoutez des points de suspension en cas de débordement du texte */
}

.portfolio-card.zoomed p {
    max-height: none; /* Retirez la limite de hauteur pendant le zoom */
    overflow: visible;
    white-space: normal; /* Permettez le débordement du texte pendant le zoom */
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    overflow: auto;
}

/* Style du bouton de fermeture de la boîte modale */
.close {
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

/* Style de l'image agrandie dans la boîte modale */
#modalImage {
    width: 100%;
    height: 100%;
    max-width: 100%; /* Ajustez la largeur maximale de l'image selon vos préférences */
    max-height: 100%; /* Ajustez la hauteur maximale de l'image selon vos préférences */
    object-fit: contain; /* Conservez les proportions de l'image tout en la centrant */
    border: 2px solid #fff; /* Ajoutez une bordure à l'image */
}
section#realisations {
    margin-bottom: 60px; /* Ajustez la valeur selon la hauteur de votre footer */
}
footer {
    background-color: #2b2b2b; /* Couleur de fond du footer */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 2px solid #555; /* Bordure supérieure */
}
