* {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
  background-image: url("../images/background.png");
  background-repeat: no-repeat;
  background-size: cover;         /* makes it cover full screen */
  background-attachment: fixed;   /* optional: makes it scroll with you */
  background-position: center;    /* center the image */
  min-height: 100vh;
  height: 100%;
    padding-top: 80px;

}
.main-container{
  width: 50%;
  margin: 0 auto;
}


header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  background-color: #fff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 50px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

#nav-title {
  margin-right: auto;
  font-size: 1.5em;
}

nav {
  margin-right: 80px;
}

nav ul {
  display: flex;
  gap: 20px;
}

header li {
  list-style: none;
}

header a {
  text-decoration: none;
  color: #555;
  transition: all 0.3s ease;
}

header a:hover {
  color: #b2dfdb;
}
img.logo {
  width: 50px;
  height: auto;
}

/* end header */

.hero {
  background: linear-gradient(to right, #e7d6f6, #e7d6f6);
  padding: 100px 20px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 20px;
  color: #060000;
}

.hero p,
.about-text p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 30px;
  color: #050000;
}
.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
img.logo {
  width: 50px;
  height: auto;
}

/* end heror section */
.about-section {
  background-color: #fff;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  
}

.about-container {
  width: 70%;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 250px;
}

.about-text h2 {
  font-size: 2.5vw;
  margin-bottom: 15px;
}

.about-text p {
  font-size: calc(1.2em);
  line-height: 1.6;
}

.about-buttons {
  margin-top: 20px;
}

.about-buttons .btn {
  display: inline-block;
  margin-right: 15px;
  padding: 10px 20px;
  background-color: #3a52b6;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s ease;
}

.about-buttons .btn:hover {
  background-color: #ad77cc;
}

.about-image {
  flex: 1;
  text-align: center;
  
 
}
.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;         
  border-radius: 50%;    
  border: 3px solid #fff; 
  box-shadow: 0 0 10px rgba(125, 7, 158, 0.3);
 
}


/* end about section*/
/* --- COMPÉTENCES --- */
.competences-section {
  background-color: #e7d6f6;
  padding: 60px 20px;
  text-align: center;
}
.competences-container {
  width: 75%;
  margin: auto;
}
.skills-container {
  margin-top: 30px;
}
.skill {
  margin-bottom: 20px;
  text-align: left;
}
.skill h3 {
  margin-bottom: 10px;
}
.bar {
  width: 100%;
  height: 10px;
  background-color: #ddd;
  border-radius: 5px;
  overflow: hidden;
}
.fill {
  height: 100%;
  background-color: #f38a5d;
}
/*end of the competance*/

/* --- PROJETS --- */
#projects {
  padding: 50px 20px;
  background: #f0f0f0;
  text-align: center;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;        /* permet de passer à la ligne sur petits écrans */
  justify-content: center;
  gap: 30px;              /* espace entre les cartes */
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: white;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* end project css */
.mail{
background-color: #f38a5d;
  padding: 60px 20px;
  text-align: center;
}

.citations {
  background-color: #dda04c;
  border-left: 5px solid #4caf50;
  padding: 20px;
  margin: 40px auto;
  width: 100;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.citations h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

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

.citations li {
  text-align: center;
  margin-bottom: 10px;
  color: #26045e;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.citations code {
  background: #e0e0e0;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
}


/* --- FOOTER --- */
footer {
  background-color: #ad77cc;

  color: #080000;
  padding: 40px 20px;
}
.footer-section {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

}
.footer-col {
  flex: 1 1 30%;
  margin: 10px;
 
}
.footer-col h4 {
  margin-bottom: 15px;
}
.footer-col a{
  text-decoration: none;
  color: #060000;
  
}
.footer-col p{
  line-height: 20px;
  margin-top: 15px;

}
.social-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons li a {
  color: white;
  font-size: 24px;
  display: inline-block;
  transition: transform 0.3s, color 0.3s;
}

.social-icons li a:hover {
  transform: scale(1.2);
  color: #000;
}


.social-icons li a {
 color: white;
  font-size: 24px;
  display: inline-block;
  transition: transform 0.3s, color 0.3s;
}


.social-icons li a:hover {
   transform: scale(1.2);
  color: #000;
}
/* end footer */


@media (max-width: 760px) {
  .main-container {
    width: 90%;
  }
  header {
    flex-direction: column;
    text-align: center;
     padding: 10px;
    height: auto;
  }

  header li {
    padding: 10px 0;
  }

  .hero-section {
    height: 40vh;
  }

    .hero {
    flex-direction: column;
    padding: 40px 10px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    margin-top: 30px;
  }

  .hero-image img {
    max-width: 80%;
    height: auto;
  }
  /* Hides the menu and shows toggle icon on small screens */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 30px;
    top: 15px;
    z-index: 1001;
  }

  nav {
     display: block !important;
    width: 100%;
    background-color: white;
  }

  nav.active {
    display: block;
  }
#nav-title {
    margin-right: 0; /* no push */
    margin-bottom: 10px; /* space under title */
  }
  nav ul {
    flex-direction: column; /* stack links */
    align-items: center;
    gap: 8px;
    padding: 10px 0;
  }
  nav ul li a {
    font-size: clamp(0.9rem, 4vw, 1rem); /* scales for small screens */
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

}
 
@media (max-width: 420px) {
    .about{
       
        flex-direction: column;
        margin-left: 20px;
        margin-right: 20px;
    }
    .col{
        align-items: center;
        text-align: center;
    }

}
