@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

/* Reset général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background-color: #4db6ac;
    color: #fff;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar li {
    margin: 0 20px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #000;
}

.navbar .logo img {
    height: 90px;
    width: auto;
}

/* Responsive navbar */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #4db6ac;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 220px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li:hover {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .burger-menu div {
        width: 25px;
        height: 3px;
        background-color: #fff;
    }
}

/* Slider */
.slider {
    width: 100%;
    height: 100vh;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dynamic-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ne pas interférer avec les éléments cliquables */
    z-index: 1;
    opacity: 0.4; /* Opacité faible pour ne pas trop masquer l'image */
}

/* Style de la ligne animée */
.animated-line {
    stroke: #4db6ac; /* Couleur de la ligne */
    stroke-width: 2;
    stroke-linecap: round;
    animation: lineAnimation 3s ease-in-out infinite;
}

/* Animation de la ligne */
@keyframes lineAnimation {
    0% {
        stroke-dasharray: 0%, 100%;
    }
    50% {
        stroke-dasharray: 40%, 0%; /* La ligne traverse entièrement l'image */
    }
    100% {
        stroke-dasharray: 0%, 10%;
    }
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: brightness(50%);
}

.slider-content {
    position: absolute;
    text-align: center;
    color: #fff;
    animation: fadeIn 1.5s ease;
    top: 60%;
    left: 2%;
    transform: translateY(-50%);
}

.slider-content h1 {
    font-size: 4rem;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.slider-content p {
    font-size: 1.8rem;
    font-weight: 300;
    margin-top: 10px;
}

/* Section générale */
.section {
    padding: 160px 20px;
    text-align: center;
    position: relative;
}

.section.dark {
    background-color: #4db6ac;
    color: #000;
    animation: fadeInUp 1.5s ease-in-out;
}

.section h2 {
    font-size: 3rem;
    position: absolute;
    top: -40px;
    left: 40%;
    background-color: #4db6ac;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: reveal;
    animation-timeline: view();
    animation-range-start: cover 0%;
    animation-range-end: cover 30%;
}

/* Titres */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    color: #4db6ac;
}

h2.section-title {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: slideIn 1s ease-in-out;
}

/* À propos */
.about-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 70px auto;
    text-align: center;
    position: relative;
}

.about-box p {
    color: #555;
    line-height: 1.8;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Compétences */
.skills-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 30px 0;
}

.skill {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: scale(1.1);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}

.skill img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: transparent;
    margin-bottom: 15px;
}

.skill h3 {
    color: #fff;
    font-size: 18px;
}

/* Réalisations */
.realization-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    padding: 60px 20px;
}

.realization-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 300px;
    text-align: center;
    margin: 0 auto;
}

.realization-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.realization-card h3 {
    padding: 15px;
    font-size: 1.4rem;
    color: #333;
}

.realization-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Contact */
.contact-section {
    background-color: #f1f1f1;
    padding: 80px 20px;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #4db6ac;
    font-family: 'Poppins', sans-serif;
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.contact-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    max-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
}

.contact-card a {
    font-size: 1.1rem;
    color: #4db6ac;
    text-decoration: none;
    font-weight: bold;
}

.contact-card a:hover {
    color: #000;
}

/* Footer */
.footer {
    background-color: #4db6ac;
    color: white;
    text-align: center;
    padding: 20px 10px;
    font-size: 1rem;
}

.footer p {
    margin: 5px 0;
}

@keyframes reveal {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
    }
}
.cv-button {
    background-color: #4db6ac;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.cv-button:hover {
    background-color: #399e91;
}

.cv-container {
    margin-top: 20px;
    max-width: 800px;
    height: 500px;
    animation: fadeIn 0.5s ease;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.cv-container.hidden {
    display: none;
}

.cv-frame {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cv-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Styles pour la modale */
.cv-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    z-index: 10000;
}

.cv-modal.hidden {
    display: none; /* Cache la modale par défaut */
}

.cv-modal-content {
    position: relative;
    width: 90%; /* Largeur de la modale */
    height: 90%; /* Hauteur de la modale */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cv-modal-image {
    max-width: 100%; /* L'image s'adapte à la largeur */
    max-height: 100%; /* L'image s'adapte à la hauteur */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    object-fit: contain; /* Garde le ratio de l'image */
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 5px 12px;
    transition: background 0.3s;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

.cv-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: auto;
}

.cv-modal:not(.hidden) {
    opacity: 1;
}

.svg-shape {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Derrière le contenu */
    width: 150px;
    height: 150px;
    opacity: 0.2;
}

.svg-shape:nth-child(2) {
    top: 50%;
    left: 30%;
    animation: move 5s infinite alternate ease-in-out;
}

@keyframes move {
    from {
        transform: translateY(-10px);
    }
    to {
        transform: translateY(10px);
    }
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






