* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Berlin Sans FB', Arial, Helvetica, sans-serif;
}

body {
    background-color: #3A345B;
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #ffffff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* PARTIE HEADER NAVIGATEUR */
header {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 0.3rem 3rem;
    background-color: #71557ae5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 90px;
}

nav ul {
    display: flex;
    padding: 1rem;
    gap: 1.5rem;
    font-size: 1.1rem;
}

nav ul li a {
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4B1535;
}

/* PARTIE ACCUEIL */
#accueil {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 10rem;
  background-color: #71557ae5;
  flex-wrap: wrap;
  gap: 2rem;
}

.accueil-texte {
  flex: 1;
  min-width: 250px;
  color: #ffffff;
}

#accueil h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

#accueil h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

#accueil p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.btn-cv {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: #3A345B;
  border-radius: 40px;
  font-size: 1.2rem;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.btn-cv:hover {
  background-color: #4B1535;
}

.accueil-image {
  flex: 0 0 300px;
  max-width: 300px;
  margin-top: -100px;
}

.accueil-image img {
  width: 100%;
  height: auto;
}

/* PARTIE COMPETENCES */
.competences {
    padding: 3rem 2rem;
    text-align: center;
}

.competences h2 {
    margin-bottom: 5rem;
}

.competence-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}

.carte {
    background-color: #71557A;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
    width: 100%;
    max-width: 500px;
}

.carte:hover {
    transform: translateY(-10px);
}

.carte img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.carte h3 {
    margin-bottom: 1.5rem;
}

.progress-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-bar {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  height: 15px;
  margin-top: 1rem;
}

.progress {
  height: 100%;
  background-color: #ffffff;
  transition: width 0.5s ease;
}

.item img.progress {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* PARTIE PORTFOLIO */
#portfolio {
    padding: 3rem 2rem;
}

.portfolio-title {
    margin-bottom: 2rem;
    text-align: center;
}

.portfolio {
    position: relative;
}

.project-carousel {
    overflow: hidden;
    border-radius: 15px;
    background-color: rgba(122, 94, 158, 0.3);
    padding: 2rem;
    margin: 0 auto;
    max-width: 900px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.project {
    min-width: 300px;
    max-width: 500px;
    scroll-snap-align: start;
    background-color: #71557A;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project h3, .project p {
    padding: 1rem;
}

/* PARTIE CONTACT */
#contact {
    text-align: center;
    padding: 3rem 2rem;
}

#contact h2 {
    margin-bottom: 2rem;
}

#contact a {
    display: inline-block;
    margin: 0 1rem;
    transition: transform 0.3s;
}

#contact a:hover {
    transform: scale(1.2);
}

#contact img {
    width: 50px;
    height: 50px;
}

/* PARTIE FOOTER */
footer {
    background-color: #71557A;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

div ul li a {
    transition: color 0.3s;
}

div ul li a:hover {
    color: #4B1535;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social h3 {
    margin-bottom: 1rem;
}

.footer-container {
    display: flex;
    text-align:center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-navigation, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-navigation h3, .footer-social h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-navigation ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.social-links a {
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.social-links img {
    width: 30px;
    height: 30px;
}

.footer-copy {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.colorful-icon {
    filter: invert(100%) sepia(21%) saturate(0%) hue-rotate(72deg) brightness(104%) contrast(104%);
}

/* Carousel */

.embla {
  overflow: hidden;
  width:100%
}
.embla__container {
  display: flex;
}
.embla__slide {
  width: fit-content;
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embla__prev,
.embla__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffffcc;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

.embla__prev:hover,
.embla__next:hover {
  background: #ffffff;
}

.embla__prev {
  left: 350px;
}

.embla__next {
  right: 350px;
}


/* Media Queries */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 0.1rem
    }

    nav {
        display: none;
    }
    
    #accueil {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .accueil-image {
        max-width: 150px;
        flex: 0 0 150px;
        margin-top: -50px;
        display: none;
    }

    .accueil-image img {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    .accueil-texte {
        text-align: center;
    }
    
    .competence-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .embla__prev {
        left: 10px;
    }

    .embla__next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .project {
        min-width: 250px;
    }
    
    #contact a {
        margin: 0 0.5rem;
    }
    
    #contact img {
        width: 40px;
        height: 40px;
    }

    .competence-container {
        grid-template-columns: 1fr;
    }
}