body{
    background-color: #1f2039;
    font-family: 'Manrope';
    color: white;
}

*{
    margin: 0;
}

em{
    color: #A5B4FC;
}

h1{
    font-size: 3.5em;
    color: #A5B4FC;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

p{
    font-size: 1.1em;
    font-family: 'Manrope';
    color: #f9f8ff;
   text-align: justify;
}

li{
    font-size: 1em;
    font-family: 'Manrope';
    color: #f9f8ff;
}

a{
    text-decoration: none;
    font-size: 1em;
    font-family: 'Manrope';
    color: #242424;
}

header{
    background-color: white;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
}

section{
    padding: 80px;
}

h2{
    color: #f9f8ff;
}

nav{ 
    background-color: white;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

footer{
    display: flex;
    background-color: white;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 50px;
    padding-right: 50px;
}
footer a{
    margin-right: 30px;
}
.navigation{
    /*"nav a" cible tout les éléments <a> dans la balise <nav>*/
    margin-left: 150px;
    font-size: 1.2em;
    font-weight: 500;
}

/*-----------------------------------------------*/

.accueil_content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10em;
    max-width: 65%;
    margin: auto;
}

.text_content h1{
    font-size: 3.5em;
    margin-bottom: 30px;
}

.text_content p{
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 20em;
}

/*----------------------------------------------------------*/

.accueil_images{
    background-color: white;
}

.accueil_images h2{
    text-align: center;
    font-size: 2.2em;
    color: #242424;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 80px;
    font-weight: 600;
}

.accueil_images div{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-direction: row;   
}

.cta{
    display: inline-block;
    font-family: 'Manrope';
    color: white;
    background: linear-gradient(#8e86b5, #acaeed);
    border-radius: 50px;
    padding: 20px 30px;
    width: auto;
    font-weight: 600; 
    margin-top: 80px;
}

.lien_chemdoc{
    text-decoration: none;
    font-size: 1em;
    font-family: 'Manrope';
    color: #A5B4FC;
}



/*------------------------------------------------*/

.index_footer{
    background-color: #1f2039;
}

/*------------------------------------------------*/

.carre_contenu{
    border-right: 1px solid #8e86b5;
    border-bottom: 1px solid #8e86b5;
    padding: 50px;
}

.a_propos_main{
    margin: auto;
    width: 50%;
}

.carre_contenu_h2{
    margin-top: 30px;
}
s
.carre_contenu_ul{
    margin-top: 30px;
}
.image_robbie_lens{
    display: block;
    padding: 20px;
    box-shadow: 2px 2px 0 0 #8788ba;
}

.test {
    display: flex;
    justify-content: center;

}


/*----------------------------------------------------------*/

.lien_conteneur_photo{
    position: relative;
}

.photo_hover{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
}

table{
    border-collapse: collapse;
    margin: auto;
    margin-top:50px;
}

td{
    border: #A5B4FC solid 1px;
    padding-top: 2em;
    padding-bottom: 2em;
    padding-left: 2em;
    padding-right: 2em;
}

th{
    border: #A5B4FC solid 1px;
    padding: 1em;
}

.tableau_compétences{
    padding-left: 180px;
    padding-right: 180px;
    padding-top: 100px;
    padding-bottom: 100px;

}

form {
    display: flex;
    flex-direction: column;
    margin: auto;
    color: white;
    width: 40%;
}

.form_nom_email {
   display: flex;
   gap: 20px;
}

.form_column{
    flex: 1;
    display: flex;  
    flex-direction: column;
    margin-bottom: 20px;
}

label {
    margin-bottom: 10px;
}

input, textarea {
    padding: 15px;
    border: none;
    border-radius: 3px;
}

input[type="submit"] {
   width: 200px;
   margin: auto;
   margin-top: 30px;
}

.accueil_formulaire h2{
    margin-bottom: 50px;
}

.img_icone{
    width: 2.5em;
    height: 2.5em;
}

.img_icone_accueil{
    width: 9.5em;
    height: 3.5em
}

/* STYLE HOVER*/

a:hover{
    text-decoration: underline;
}

.cta:hover{
    text-decoration: underline;
    background: linear-gradient(#696484, #8788ba);
}

.lien_icone:hover{
    opacity: 0.5;
}

.lien_conteneur_photo:hover .photo_hover{
    display: flex;  
}

/*----------------------------------------------------------*/

/* STYLE PROJETS */ 

.project {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.project-image{
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 2px 2px 7px 2px grey;   
    cursor: pointer;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease; 
}

.project:hover img {
    transform: scale(1.1); /* Effet zoom au survol */
}

.popup {
    position: fixed; /* Change de absolute à fixed */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 47, 0.95);
    color: #fff;
    padding: 40px; /* Plus de padding pour une apparence plus grande */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000; /* Superposition élevée */
    width: 80%; /* Largeur importante */
    max-width: 800px; /* Limite de largeur */
    max-height: 90%; /* Limite de hauteur */
    overflow-y: auto; /* Permet un défilement si nécessaire */
}

/* Ajout d'un fond semi-transparent derrière le popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup h3 {
    margin: 0 0 10px;
}

.popup.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.popup-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.popup-title h3 {
    margin-top: 20px;
    font-size: 1.5rem;   
}

.popup-title h4 {
    margin: 10px;
    font-size: 1rem;   
}

.popup-text p {
    font-size: 1rem;
    text-align: justify;
}

.popup-text li{
    margin-bottom: 10px;
    text-align: justify;
}

.popup-text a{
    color: #A5B4FC;
}

.popup-title a{
    color: #A5B4FC;
}

.popup-title p{
    text-align: center;
    font-size: 1rem;
}


.grid_univ{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 300px;
    gap: 15px;
    padding-bottom: 50px;
    text-align: center;
}

.grid_pro{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 300px;
    gap: 15px;
    padding-bottom: 50px;
    text-align: center;
}

.grid_perso{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 300px;
    gap: 15px;
    padding-bottom: 50px;
    text-align: center;
}

.projets_section_photos{
    background-color: white;
}

.projets_section_photos h2{
    color: black;
    padding-bottom: 50px;
    font-weight: 500;
    font-size: 2em;
}

.project-title{
    color: black;
    margin-top: 10px;
}

.index-image img{
    width: 400px;
    height: 300px;
    object-fit: cover; 
}

td p{
    padding-top: 10px;
    margin-bottom: 10px;
}

.lien_source{
    color: #A5B4FC;
}