
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}


body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F5F5DC; 
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}


.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}


.leaf {
    position: absolute;
    width: 50px;
    height: auto;
    opacity: 0.7;
    animation: float linear infinite;
    z-index: -1;
}

.leaf:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-duration: 15s;
    transform: rotate(10deg);
}

.leaf:nth-child(2) {
    top: 30%;
    left: 35%;
    animation-duration: 20s;
    transform: rotate(-15deg);
}

.leaf:nth-child(3) {
    top: 50%;
    left: 60%;
    animation-duration: 18s;
    transform: rotate(5deg);
}

.leaf:nth-child(4) {
    top: 70%;
    left: 80%;
    animation-duration: 22s;
    transform: rotate(-10deg);
}

.leaf:nth-child(5) {
    top: 20%;
    left: 75%;
    animation-duration: 17s;
    transform: rotate(20deg);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(10deg);
    }
    50% {
        transform: translateY(20px) rotate(-10deg);
    }
    100% {
        transform: translateY(0) rotate(10deg);
    }
}


.wave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,60 Q300,0 600,60 Q900,120 1200,60 L1200,120 L0,120 Z" fill="%235F9EA0" opacity="0.7"/></svg>');
    background-repeat: repeat-x;
    background-size: 1000px 100px;
    z-index: -1;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1000px; }
}


body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(95, 158, 160, 0.3), transparent);
    z-index: -1;
    pointer-events: none;
}


header {
    background-color: #5F9EA0;
    padding: 0.8rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    color: #fcfcfc; 
    margin: 0;
    position: absolute;
    left: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0 auto; 
    padding: 0;
    justify-content: center;
    width: 100%; 
}

nav ul li a {
    color: #ffffff; 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #E6C229; 
}


main {
    padding-top: 80px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.section {
    padding: 4rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: #5F9EA0; 
    font-family: 'Pacifico', cursive;
}


#a-propos .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #5F9EA0; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text {
    text-align: center;
    max-width: 700px;
}


.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    width: 300px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.project-card h3 {
    padding: 1rem;
    text-align: center;
    color: #2E7D32; 
}

.project-card p {
    padding: 0 1rem 1.5rem;
    text-align: justify;
    color: #555;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}


/* Section "Compétences" */
.skills-container {
    display: flex;
    justify-content: center;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    list-style: none;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skills li {
    background-color: #5F9EA0; 
    color: #ffffff; 
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skills li i {
    font-size: 1.1rem;
}

/* Section "Contacts" */
#contacts .contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-width: 300px;
    flex: 1;
}

form input, form textarea {
    padding: 0.9rem;
    border: 2px solid #5F9EA0; 
    border-radius: 5px;
    font-family: 'Quicksand', sans-serif;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form button {
    background-color: #5F9EA0; 
    color: #ffffff;
    border: none;
    padding: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #4A8B8C; 
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: #5F9EA0; 
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #E6C229;
    transform: scale(1.2);
}


footer {
    background-color: #5F9EA0;
    color: #ffffff; 
    text-align: center;
    padding: 1.5rem 0;
}

footer p {
    margin-bottom: 1rem;
    font-weight: 600;
}

