/* Style de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;}

@font-face {
	font-family: 'Raleway';
	src: url('font/Raleway-Bold.ttf');
}
@font-face {
	font-family: 'Lato';
	src: url('font/Lato-Regular.ttf');
}
main {
    background-image: url('img/background-01-01-01.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}
img {
      max-width: 100%;
      height: auto;
}
h2{
    font-family: 'Raleway', sans-serif;
}
body {
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #fff;
    padding: 20px;
    text-align: center;
}
h1,a,h2 {
    font-family: 'Raleway',sans-serif;
}
h1 {
    font-size: 4rem;
}
header div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

header img {
    height: 60px;
}

header ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative; /* Nécessaire pour positionner le soulignement */
}

/* Animation de soulignement au survol */
header ul li a::after {
    content: ''; /* Crée un pseudo-élément après chaque lien */
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px; /* Épaisseur du soulignement */
    background-color: #5e5e5e; /* Couleur du soulignement */
    transition: width 0.3s ease; /* Animation pour élargir le soulignement */
}

/* Survol du lien */
header ul li a:hover::after {
    width: 100%; /* Étend le soulignement sur toute la largeur du lien */
}

.presentation {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 50px;
    gap: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}
.presentation p,li {
    font-family: 'Lato',sans-serif;
}
.presentation p {
    max-width: 500px;
    font-size: 1.2em;
}

.presentation img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 1s 0.5s forwards;
}
.cv-download {
    text-align: center;
    margin-top: 20px;
}

.cv-download a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #5e5e5e; /* Adapté au bouton bleu que tu utilises */
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cv-download a:hover {
    background-color: #9b9b9b;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    padding: 80px 20px;
}

.container .text {
    flex: 1;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 1s forwards;
}

.container .image {
    flex: 1;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s forwards;
}

.container .image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.presentation {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.presentation p {
    margin: 5% 10% 5% 10%;
}

.portfolio {
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.5s forwards;
}

.portfolio h2, .contact h2 {
    margin-bottom: 20px;
}

.grid {
    column-count: 2;
    column-gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.grid a {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.7s forwards;
}

.grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.grid img:hover {
    transform: scale(1.05);
}

.contact {
    text-align: center;
    padding: 40px 20px;
}

.contact ul {
    list-style: none;
    margin-bottom: 20px;
}

.contact a img {
    width: 40px;
    margin: 10px;
    transition: transform 0.3s ease-in-out;
}

.contact a img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    main {
        background-image: url('img/background_tel-01-01.svg');
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .presentation {
        flex-direction: column;
        text-align: center;
    }
    .grid {
        column-count: 1;
    }
    header img {
        margin-left: 4%;
    }
    header div {
        flex-direction: column;
        align-items: center;
    }
    header ul {
        margin-top: 10px;
        flex-direction: column;
        gap: 10px;
    }
    h1 {
        font-size: 2rem;
    }
}