body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #f9f9f9, #eef2f3);
    color: #f0f0f0;
}

.main {
    text-align: center;
}

.haut {
    padding: 0;
    margin: 0;
    gap: 0;
}

h2 {
    font-size: 3.5rem; /* Plus flexible pour le responsive */
    font-family: "Caveat", cursive;
    font-style: normal;
    font-optical-sizing: auto;
    color: #f0f0f0;
    background-color: rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin: 0 auto; /* Centre horizontalement */
    margin-top: 10px;
    text-align: center;
    padding: 20px; /* Ajoute un peu d'espace autour du texte */
    border-radius: 10px; /* Coins arrondis pour un look plus doux */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Légère ombre pour détacher le fond */
}

h3 {
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-style: normal;;
    font-size: 45px;
    text-align: center;
    color: #f0f0f0;
}

/* Animation mots */
.animated-words {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.2em;
    color: #d6249f;
    font-weight: bold;
    position: relative;
}

.animated-words span {
    display: block;
    animation: scrollWords 4s infinite ease-in-out;
}

@keyframes scrollWords {
    0%, 20%   { transform: translateY(0); }
    40%, 60%  { transform: translateY(-100%); }
    80%, 100% { transform: translateY(0); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(13, 13, 13, 0.75);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-top: 50px;
    margin-bottom: 50px;
}

.presentation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.bienvenue, .infos {
    flex: 1 1 100%;
}

.bienvenue {
    flex: 1 1 60%;
    text-align: left;
}

.bienvenue p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #f0f0f0;
}

.infos {
    flex: 1 1 35%;
    text-align: left;
    align-items: center;
    justify-content: center;
}

.infos h4 {
    margin-bottom: 15px;
    color: #f0f0f0;
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 35px;
    padding: 0;
    margin: 0;
}

.infos ul {
    list-style: none;
    padding: 0;
}

.infos li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.infos li a {
    color: #d6249f;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: #f0f0f0;
}

#me{
    border-radius: 100px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#cv {
    height: 500px;
    width: 370px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 500px) {
    .presentation-container {
        flex-direction: column;
        align-items: center;
    }

    .bienvenue,
    .infos {
        flex: 1 1 100%;
    }
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 60%;
    text-align: center;
    position: relative;
}

.close {
    color: red;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}