/* Général */
html, body {
    width: 100%; /*largeur de 100%*/
    min-height: 100%; /*hauteur minimale de 100% de la hauteur de la fenêtre*/
    margin: 0;/*pas de marges*/
    font-family: Arial, sans-serif;
    font-size: 12pt;
    text-align: center;
}

body {
    font-family: serif;
    font-size: 90%;
    background-color: #E6E6FA;
}

header {
    height: 40px;
    width: 100%;
    background-color: #5F9EA0;
    color: #FFF;
    position: fixed; /*laisser le header en haut*/
    top: 0; /*header en haut*/
    z-index: 10;/*propriété d'affichage*/
}

header h1 {
    font-size: 30px;
    line-height: 40px; /*hauteur de la ligne*/
    text-transform: uppercase;
    margin: 0;
    margin-left: 10px;
    margin-right: 10px;
    display: inline-block; /*affichage du titre en block*/
    vertical-align: top;/*aligner verticalement*/
}

header nav {
    vertical-align: top;
    display: inline-block; /*le menu est affiché en ligne*/
    height: 100%;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none; /*enlève les puces de la ligne*/
    height: 100%;
}

header nav ul li {
    display: inline-block;
    margin: 0;
    height: 100%;
    width: 150px;
    text-align: center;
}

header nav ul li a {
    display: block; /*affiche les liens sous forme de block*/
    width: 100%;
    height: 100%;
    line-height: 40px;
    color: #FFF;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

header nav ul li a:hover {
    background-color: #333;
    transform: scale(1.1);
}

/* Contact */
#contact-me h2 {
    text-align: center;
    color: #fff;
    border-radius: 8px 8px;
    font-weight: 900;
}

#contact-me ul {
    list-style: none;
    padding: 0;
}

#contact-me li {
    margin-bottom: 10px;
}

aside {
    max-width: 20%;
    float: left;
    padding: 12px;
    color: #FFFFFF;
    background-color: #5F9EA0;
    order: 2;
}

aside a {
    text-decoration: none;
    color: #FFFFFF;
    transition: color 0.3s ease, transform 0.3s ease;
}

aside a:hover {
    color: #191970;
    transform: translateX(5px);
}

/* Image CV */
#profileimage {
    max-width: 50%;
    height: auto;
    border-radius: 50%;
    transition: transform 0.3s ease; /*effet sur l'image*/
}

#profileimage:hover {
    transform: scale(1.1) translate(10px, 10px);/*effet sur la photo quand on survole l'image*/
}

/* Main Content */
main { 
    max-width: 100%;
    float: left;
    padding: 12px;
    align-items: center;
    justify-content: center;
    text-align: center;  
}

main article {
    margin-top: -1000px;
    padding: 20px;
}

#education, #experiences {
    border: 2px solid #FFFFFF;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    background-color: #fff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#education:hover, #experiences:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    bottom: 0;
    background-color: #5F9EA0;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
    width: 100%;
}

footer ul {
    list-style-type: none;
}

footer a {
    color: red;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Skills */
main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.skills {
    width: 90%;
    max-width: 1200px;
    text-align: center;
    padding: 20px;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Effet sur les images de la section skills */
.skills img {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition fluide pour le mouvement et l'ombre */
    cursor: pointer; /* Change le curseur pour indiquer que l'image est interactive */
}

/* Effet au survol de l'image */
.skills img:hover {
    transform: scale(1.1) translate(10px, 10px); /* Agrandit l'image et la déplace légèrement */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Ajoute une ombre douce autour de l'image */
}

/* VIDEO */
#video {
    width: 800px;
    height: 450px;
}

/* Formulaire */


form {
    background-color: #F5FFFA;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: inline-block;
    vertical-align: top;
    margin-right: 15px;
    margin-top: 30px;
}


.forms {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #132438;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}


input, textarea {
    width: 100%;
    padding: 10px;
    margin: 8px auto;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
}


input[type="submit"] {
    background-color: #18293E;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}


input[type="submit"]:hover {
    background-color: #0e1825;
}

/* Effet sur les images de la page Career */
#career img {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition pour le mouvement et l'ombre */
    cursor: pointer; /* indique que l'image est interactive */
}

/* Effet au survol des images */
#career img:hover {
    transform: scale(1.1) translate(10px, 10px); /* Agrandit l'image et la déplace légèrement */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Ajoute une ombre douce autour de l'image */
}

/*RESPONSIVITÉ */

/* Si la largeur de l'écran est inférieure à 1024px */
@media (max-width: 1024px) {
    aside {
        max-width: 25%;
    }

    main {
        padding: 30px;
    }

    header h1 {
        font-size: 24px;
    }
}


/* Si la largeur de l'écran est inférieure à 780px */
@media (max-width: 780px) {
    aside {
        max-width: 100%;
        float: none;
        padding: 15px;
    }

    main {
        padding: 10px;
		margin-left:200px;
    }

    header nav ul li {
        display: block;
        width: 100%;
    }

    header {
        position: relative;
        height: auto;
    }

    #profileimage {
        max-width: 70%;
    }

    .skills img {
        max-width: 80%;
    }
}
