  * {
    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;
}

  .section-intro {
    margin-top: 50px;
    background-color: #ad77cc;
    color: #fff;
    line-height: 1.6rem;
    padding: 20px;
    margin-bottom: 20px;
  }
#intro2{
  background-color: #dda04c;
}
  /*article section*/
  h1 {
    color: #fff;
    text-align: center;
    line-height: 1.6rem;
    margin-bottom: 15px;
  }

  .intro {
    text-align: center;
    margin-bottom: 30px;
  }

  .articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: center;

  }

  .article {
    background: rgb(225, 190, 227);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
 
  }

  .article h2 {
    color: #00796b;
    text-align: center;
  }

  .article p {
    color: #0a000e;
    text-align: justify;
  }
  .article img{
    width: 100%;
    height: auto;
   
  }

  .read-more {
    display: inline-block;
    margin-top: 10px;
    color: #00796b;
    text-decoration: none;
    font-weight: bold;

  }

  /* --- FOOTER --- */
  footer {
    background-color: #ad77cc;
    color: #080000;
    padding: 40px 20px;
    width: 100%;
  }


  .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;
    /* affiche en ligne */
    gap: 10px;
    /* espace entre icônes */
    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;
  }

  /* 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;
  }

  /* 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 */
  }

  

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

}
