body {
    display: flex;
    flex-direction: column; /* Empile le header au-dessus du reste */
    width: 100vw;
    height: 100vh;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #27394d;
    overflow: hidden;
}

.container {
    display: flex;
    width: 100%;
    height: calc(100vh - 10%); /* Prend toute la hauteur, moins la taille du header */
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.image-container, .text-container {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(35deg, #27394d, #d2d4d7); /* Dégradé de couleurs */
    z-index: 1; /* Derrière l'image */
}

.image-container img {
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2; /* L'image reste au-dessus du fond flou */
}

.card{
    display: flex;
    flex-direction: column;
    background-color: white;
    height: 70%; width: 40%;
    border-radius: 20px;
    padding-top: 30px;
    text-align: center;
    align-items: center;
}

.ligne{
     width: 30%;
     height: 3px;
     background-color: #27394d;
}

.text-container {
    background-color: #ff6f61;
    height: 100%; /* Assure que la section prenne toute la hauteur */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* S'assure que le padding ne cause pas de débordement */
}


.text-container-precision{
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
}

h1 {
    width: 100%;
    font-size: 36px;
    color: #27394d;
    margin-bottom: 20px;
}

.text-container p {
    font-size: 18px;
    color: #27394d;
    margin-bottom: 40px;
}

.buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.button {
    text-decoration: none;
    background-color: white;
    color: #27394d;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #27394d;
    color: white;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff6f61;
    width: 100%; height: 10%;
    margin-top: auto; /* Place les icônes tout en bas de la carte */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.social-icons a {
    margin-right: 10px;
    color: white;
    font-size: 1.5rem;
}


.social-icons img {
    width: 24px;
    height: 24px;
}

.profile-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.profile-image {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-info{
    display: flex;
    align-items: center;
    flex-flow: column;
    padding: 10%;
    gap: 15px;
}

.profile-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
    color: #27394d;
}

.job-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Header - placé au-dessus avec toute la largeur */
header {
    width: 100%; 
    height: 10%; /* Ajuste la hauteur du header */
    display: flex;
    background-color: transparent;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 0 20px;
    position: fixed; /* Fixe le header en haut de la page */
    top: 0;
    left: 0;
    z-index: 1000; /* Toujours au-dessus du reste */
}

nav.menu ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav.menu ul li {
    display: inline;
}

nav.menu ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav.menu ul li a:hover {
    color: #ff6f61;
}


/* Animation pour afficher la section */
@keyframes showSection {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#experiencesSection, #presentationSection, #competencesSection {
    opacity: 1;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    height: calc(100vh - 10%);
    position: absolute;
    top: 10%;
    z-index: 999;
    display: none; /* Assurez-vous que l'élément est initialement masqué */
}


/* Quand la section est visible */
.show {
    display: block; /* Visible */
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Masquer le container avec animation */
.container.hidden {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.experiences-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: white;
}

.work-history{
    margin-top: 2%;
    display: flex;
    flex-flow: column;
    justify-content: center;
}

.history-cards {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(3, 1fr); /* Trois colonnes */
    gap: 30px; /* Espace entre les cartes */
    justify-content: space-around;
    padding: 20px;
}

/* Style des cartes */
.card_history {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card_history:hover {
    transform: translateY(-5px); /* Légère translation vers le haut */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée */
}

/* Image des cartes */
.card-image {
    position: relative;
    width: 100%;
    height: 180px; /* Fixe la hauteur des images */
    margin-bottom: 15px;
    padding: 5px;
    overflow: hidden; /* Masque toute partie débordant de l'image */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Redimensionne l'image pour qu'elle rentre dans le conteneur sans être coupée */
    border-radius: 8px;
}

/* Corps de la carte (texte et info) */
.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-body h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.card-body p {
    margin: 2%;
    width: 100%;
    font-size: 14px;
    color: #666;
}

/* Différentes couleurs pour les hover des cartes */
#AVLO:hover {
    border: 2px solid #224bb3;
}

#FITECO:hover {
    border: 2px solid #c20632;
}

#ABALONE:hover {
    border: 2px solid #e30715;
}

/* Section de présentation */
.presentation{
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

.presentation .content {
    display: flex;
    flex-flow: column wrap;
}

.presentation .text {
    flex: 1.5;
    height: 100%;
    padding-right: 20px;
}

.presentation .content {
    display: flex;
    justify-content: space-between; /* Espace entre le texte et l'image */
    align-items: flex-start; /* Aligne le contenu en haut */
    width: 100%;
}

.text-resume {
    display: flex;
    flex-flow: column;
    width: 100%;
}

.text-resume-titre{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    width: 100%;
}

.text-resume-titre .ligne{
    width: 10%;
    margin: 1% 0% 2% 0%;
    background-color: white;
}

.text-resume-titre h2{
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

.text-resume-contenu{
    display: flex;
    width: 100%;
}

.text-resume-p {
    width: 70%;
}

.text-resume-p p{
    font-size: 18px;
    line-height: 1.6;
    color: white;
    text-align: justify;
}

.text-resume .image {
    width: 30%; height: 100%;
    display: flex;
    justify-content: center;
}

.text-resume .image img {
    border-radius: 8px; /* Bords arrondis */
}

#Titre_Projet{
    display: flex;
    text-align: center;
    background-color: transparent;
}

#Titre_Projet H1{
    color: white;
}

.projet {
    display: flex;
    width: 100%;
    height: 200px; /* Taille fixe pour les cartes */
    align-items: center; /* Aligne le texte et l'image au centre verticalement */
    background-color: #f9f9f9; /* Couleur de fond pour chaque section */
    margin-bottom: 20px; /* Espacement entre les sections */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ajoute une ombre légère */
}

.projet .information {
    width: 50%; height: 100%;
    padding-right: 20px;
}

.projet .image{
    display: flex;
    width: 50%; height: 100%;
    justify-content: center;
    align-items: center;
}

.projet .text {
    width: 50%; /* Prend 50% de la largeur pour le texte */
    padding-right: 20px; /* Un petit espacement à droite pour le texte */
}

.projet .text h2 {
    font-size: 24px;
    color: #0070C0; /* Couleur bleue similaire à celle de l'image */
    margin-bottom: 10px;
}

.projet .text p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.projet .image img {
    max-width: 80%; /* Limite la largeur maximale de l'image à 100% du conteneur */
    max-height: 80%; /* Limite la hauteur maximale de l'image à 100% du conteneur */
    object-fit: contain; /* Assure que l'image conserve ses proportions */
    border-radius: 8px; /* Bords légèrement arrondis pour l'image */
}

/* Style de la section de filtrage */
.filter-section {
    margin: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Style des labels pour les filtres */
.filter-section label {
    font-size: 16px;
    font-weight: bold;
}

/* Style des select dropdown pour le filtrage et le tri */
.filter-section select {
    background-color: #fff; /* Fond blanc comme les cartes */
    border-radius: 10px; /* Coins arrondis comme les cartes */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre similaire aux cartes */
    padding: 10px 15px; /* Padding pour donner de l'espace à l'intérieur */
    font-size: 16px; /* Taille de la police */
    cursor: pointer; /* Curseur pointer pour l'interaction */
    border: none; /* Retirez la bordure par défaut */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition pour l'effet de hover */
    width: 20%; /* Largeur similaire aux cartes */
    outline: none; /* Retirer l'effet de focus par défaut */
    margin-top: 20px; /* Espace en haut du select */
    cursor: pointer;
}

/* Style des cartes de produits/compétences */
.product-cards {
    display: flex;
    justify-content: space-around; /* Espace égal autour des cartes */
    flex-wrap: wrap; /* Permet de passer à la ligne suivante si nécessaire */
    gap: 40px; /* Espace entre les lignes de cartes (vertical) */
    padding: 20px;
    height: auto; /* Laisser l'élément s'ajuster à la hauteur du contenu */
    max-height: 80vh; /* Limite la hauteur de l'affichage à 80% de la hauteur de la fenêtre */
    overflow-y: auto; /* Permettre le défilement si le contenu dépasse la hauteur définie */
}

/* Style général pour chaque carte de compétence */
.card-competences  {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 20%; height: 20%;
}

/* Effet hover sur les cartes */
.card-competences:hover {
    transform: translateY(-5px); /* Légère translation vers le haut */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée */
}

/* Style de l'image dans chaque carte */
.card-competences-image {
    position: relative;
    width: 100%;
    height: 180px; /* Fixez une hauteur pour les images */
    margin-bottom: 15px;
    padding: 5px;
    overflow: hidden; /* Masque toute partie débordant de l'image */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

/* Style de l'image dans la carte */
.card-competences-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* L'image sera redimensionnée pour couvrir toute la zone */
    border-radius: 8px;
}

/* Label pour les différentes cartes */
.label_card-competences  {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

/* Différents labels en fonction des catégories */
.top-ventes {
    color: #721c24;
    background-color: #f8d7da;
}

.Un_classique {
    color: #1c7222;
    background-color: #d9f8d7;
}

.L_Original {
    color: #221c72;
    background-color: #d7e1f8;
}

.Un_Incroyable {
    color: #72681c;
    background-color: #f8f4d7;
}

/* Description de la carte */
.card-competences-description h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.card-competences-description p {
    font-size: 14px;
    color: #777;
}

/* Style de l'évaluation (étoiles) */
.rating {
    font-size: 14px;
    color: #f39c12;
    margin: 5px 0;
}

/* Effet hover spécifique sur certaines cartes (avec des couleurs différentes) */
#Canva:hover {
    border: 2px solid #7a23eb;
}

#ChatGPT:hover {
    border: 2px solid #74ab9c;
}

#CSS:hover {
    border: 2px solid #2466f2;
}

#Excel:hover {
    border: 2px solid #187041;
}

#HTML:hover {
    border: 2px solid #f06424;
}

#Javascript:hover {
    border: 2px solid #d9b800;
}

#MySQL:hover {
    border: 2px solid #e39000;
}

#PHP:hover {
    border: 2px solid #6875b3;
}

#PowerBI:hover {
    border: 2px solid #f0cb54;
}

#Figma:hover {
    border: 2px solid #a159ff;
}

#PHPMyAdmin:hover {
    border: 2px solid #f79c0a;
}

#Talend:hover {
    border: 2px solid #ff6e70;
}

#OpenProject:hover {
    border: 2px solid #197ec2;
}

#Trello:hover {
    border: 2px solid #007ec7;
}

#Wikipédia:hover {
    border: 2px solid #acadb0;
}

/* Styles de base pour la pop-up */
.popup {
    display: none; /* Masqué par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond sombre transparent */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    z-index: 1000;
    overflow-y: auto; /* Permet de défiler si le contenu dépasse */
}

/* Lorsque la pop-up est visible */
#popup-form.show {
    display: flex;
}

/* Contenu de la pop-up */
.popup-content {
    display: flex;
    text-align: center;
    flex-flow: column wrap;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 30vw;
    max-width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Pour les pop-ups avec contenu digital */
.popup-content-digital {
    display: flex;
    text-align: left;
    flex-flow: column;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 30vw;
    max-width: 90%;
    max-height: 80vh; /* Limite la hauteur à 80% de la hauteur de l'écran */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto; /* Permet de faire défiler si le contenu dépasse */
}

/* Disposition du contenu de la pop-up */
.popup-layout {
    display: flex;
    flex-flow: column wrap;
    gap: 20px; /* Espace entre l'image et les détails */
    align-items: center;
}

.popup-image {
    flex: 1;
}

/* Styles pour l'image dans la pop-up */
.popup-image img {
    width: 100%;
    max-width: 300px; /* Limite la largeur de l'image */
    height: auto;
    max-height: 200px; /* Limite la hauteur de l'image */
    object-fit: contain; /* Conserve les proportions de l'image */
    border-radius: 10px;
}

/* Styles pour les détails de la pop-up */
.popup-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.popup-details h2,
.popup-details p,
.popup-details .rating,
.popup-details .card-price {
    margin: 5px 0; /* Réduit l'écart entre les éléments */
    line-height: 1.4; /* Ajuste l'espacement des lignes */
    text-align: center;
}

/* Disposition de l'en-tête (titre et label) dans la pop-up */
.top_cardDetails {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre le titre et le label */
}

/* Bouton pour fermer la pop-up */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    cursor: pointer;
}

/* Section inférieure de la pop-up */
.bottom_card {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    text-align: center;
}

.bottom_card h3 {
    width: 100%;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
}

/* Couleurs spécifiques pour chaque carte dans la pop-up */
#popup-form.Canva .bottom_card h3 {
    background-color: #7a23eb; /* Couleur spécifique pour Canva */
}

#popup-form.CSS .bottom_card h3 {
    background-color: #2466f2; /* Couleur spécifique pour CSS */
}

#popup-form.ChatGPT .bottom_card h3 {
    background-color: #74ab9c; /* Couleur spécifique pour ChatGPT */
}

#popup-form.Excel .bottom_card h3 {
    background-color: #187041; /* Couleur spécifique pour Excel */
}

#popup-form.Figma .bottom_card h3 {
    background-color: #a159ff; /* Couleur spécifique pour Figma */
}

#popup-form.HTML .bottom_card h3 {
    background-color: #f06424; /* Couleur spécifique pour HTML */
}

#popup-form.Javascript .bottom_card h3 {
    background-color: #d9b800; /* Couleur spécifique pour Javascript */
}

#popup-form.MySQL .bottom_card h3 {
    background-color: #e39000; /* Couleur spécifique pour MySQL */
}

#popup-form.PHP .bottom_card h3 {
    background-color: #6875b3; /* Couleur spécifique pour PHP */
}

#popup-form.PowerBI .bottom_card h3 {
    background-color: #f0cb54; /* Couleur spécifique pour PowerBI */
}

#popup-form.Talend .bottom_card h3 {
    background-color: #ff6e70; /* Couleur spécifique pour Talend */
}

#popup-form.PHPMyAdmin .bottom_card h3 {
    background-color: #f79c0a; /* Couleur spécifique pour PHPMyAdmin */
}

#popup-form.Trello .bottom_card h3 {
    background-color: #007ec7; /* Couleur spécifique pour Trello */
}

#popup-form.OpenProject .bottom_card h3 {
    background-color: #197ec2; /* Couleur spécifique pour OpenProject */
}

#popup-form.Wikipédia .bottom_card h3 {
    background-color: #acadb0; /* Couleur spécifique pour Wikipédia */
}
    