@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4e7e7;
    animation: fadeIn 2s ease-in-out;
    margin-top: 150px; 
    overflow-x: hidden; /* Empêche le défilement horizontal */
}


header {
    background-color: #d48c9e;
    color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Fixe le header en haut */
    top: 0; /* Positionne le header en haut de la page */
    width: 100%; /* Assure que le header prend toute la largeur de la page */
    z-index: 1000; /* Assure que le header reste au-dessus des autres éléments */
}

h1 {
    margin: 0;
    padding-left: 20px;
}

h2 {
    margin: 1;
    flex-grow: 1;
    text-align: center;
}

#animated-title {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid #d48c9e; /* Effet de curseur */
    animation: typing 4s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #d48c9e; }
}


nav ul {
    background-color: #d48c9e;
    color: #fff;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

nav ul li a:hover {
    background-color: #f1c6c9;
}


.content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-top: 20px; 
}

.text {
    flex: 1;
    font-size: 2em; 
    text-align: left;
    margin-left: 40px; 
}

.text h2 {
    font-family: 'Georgia', serif;
}

.buttons {
    display: flex;
    gap: 20px; /* Espace entre les boutons */
    margin-top: 20px;
}

.cv-button {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 10px;
    background-color: #d48c9e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8em; /* Réduit la taille du texte */
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease;
    margin-left: 40px;
}

.cv-button:hover {
    background-color: #f1c6c9;
}

.contact-button {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 10px;
    background-color: #d48c9e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8em;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease;
    margin-left: 50px; /* Augmente l'espace entre les boutons */
}

.contact-button:hover {
    background-color: #f1c6c9;
}

.avatar {
    flex: 1;
    text-align: right;
}

.avatar img {
    width: 300px; /* Taille de l'image */
    height: auto;
    border-radius: 50%; /* L'image est ronde */
    margin-right: 40px; 
}


.container {
    background-color: white; /* Ajout du fond blanc */
}

.skills {
    margin-top: 300px; 
    padding: 20px;
    background-color: white; /* Ajout du fond blanc */
    border-radius: 10px;
}

.skills-item {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-left: 20px; 
}

.skills-image {
    width: 220px;
    height: auto;
    margin-right: 57px; 
}


.skills-image.VMware {
    width: 100px; /* Réduit la largeur de l'image */
    height: auto; /* Maintient le ratio de l'image */
    margin-left: 25px;
}

.skills-image.VirtualBox {
    width: 100px; /* Réduit la largeur de l'image */
    height: auto; /* Maintient le ratio de l'image */
    margin-left: 25px;
}

.skills-image.Proxmox {
    width: 100px; /* Réduit la largeur de l'image */
    height: auto; /* Maintient le ratio de l'image */
    margin-left: 25px;
}

.skills-image.Server {
    width: 100px; /* Réduit la largeur de l'image */
    height: auto; /* Maintient le ratio de l'image */
    margin-left: 25px;
}

.skills-image.debian {
    width: 100px; /* Réduit la largeur de l'image */
    height: auto; /* Maintient le ratio de l'image */
    margin-left: 25px;
}

.skills-image.PacketTracer {
    width: 100px; /* Réduit la largeur de l'image */
    height: auto; /* Maintient le ratio de l'image */
    margin-left: 25px;
}

.skills-image.HTML {
    width: 100px; /* Réduit la largeur de l'image */
    height: auto; /* Maintient le ratio de l'image */
    margin-left: 25px;
}

.skills-image.CSS {
    width: 100px; /* Réduit la largeur de l'image */
    height: auto; /* Maintient le ratio de l'image */
    margin-left: 25px;
}

.skills-image:hover {
    transform: scale(1.1); /* Effet de zoom au survol */
    transition: transform 0.3s ease; 
}


.certifications {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px; 
    background-color: white; /* Ajout du fond blanc */
    padding-bottom: 10px; /* Ajout de padding en bas */
    min-height: 270px; /* Ajout d'une hauteur minimale */
}

.certifications-images {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.certification-item {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid black; /* Contour noir */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée pour plus de profondeur */
}

.certification-item p {
    margin: 0;
    padding: 10px 0;
    font-weight: bold;
}

.certifications-images img {
    width: 150px; /* Taille commune pour toutes les images */
    height: auto;
    transition: transform 0.3s ease;
    margin-bottom: 10px; 
}

.certifications-images img:hover {
    transform: scale(1.1); /* Effet de zoom au survol */
}

.certifications-images img[alt="Certification ANSSI"] {
    width: 100px; /* Réduit la largeur de l'image ANSSI */
    height: auto;
}


#parcours {
    padding: 40px 20px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    position: relative;
    width: 60%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background-color 0.3s;
}

.timeline-item:nth-child(odd) {
    align-self: flex-start;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
}

.timeline-content {
    text-align: left;
    padding-left: 20px;
}

.timeline-content h3 {
    margin-top: 0;
    color: #ba7083;
}

.timeline-content p {
    margin: 5px 0 0;
    color: #555;
}

.timeline-item:hover {
    transform: scale(1.05);
    background-color: #ffffff;
}

.timeline:before {
    content: '';
    position: absolute;
    width: 30px;
    background-color: #d48c9e;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}


footer {
    background-color: #d48c9e;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}
