body {
    background-color:  #f8edf6 ;
}
/* header */
#masthead {
    display: flex;
    justify-content: space-between; /* logo à gauche, menu à droite */
    align-items: center;
    padding: 10px 20px;
}

/*css pour le logo header*/
#masthead img{
    height: 80px;
}

#masthead nav ul {
    list-style: none; /* ❌ Enlève les puces */
    display: flex;    /* 🔄 menu en ligne */
    justify-content: space-between;
    gap: 20px;        /* 📏 espace entre les items */
    margin: 0;
    padding: 0;
}

#masthead nav ul li {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 500;
    cursor: pointer;
    color: #111;
}

#masthead a{
     text-decoration: none;
     color: #000;
     font-family: 'Merriweather', serif;
}

/*___________________________*/
.title h2{
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
}

video {
    max-width: 400px;
    height: auto; 
}

.content {
    margin-left: 200px;
    margin-right: 200px;
}

h4 {
    font-family: 'Merriweather', serif;
    font-size: 34px;
    font-weight: 400;
    color: #333;
}

/* projet 1 */
.projet-1 {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Bloc vidéo */
.youtube-vid-1 video {
  max-width: 100%;
  width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Bloc des liens */
.lien-1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start; /* 👈 important pour coller les liens à gauche */
  padding: 10px;
  border-left: 3px solid #ff3399;
  margin-top: 10px;
}

.lien-1 a {
  margin-bottom: 10px;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.lien-1 a:hover {
  color: #ff3399;
}

/*projet 2*/
.projet-2 {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-start; /* comme projet 1 */
  flex-wrap: wrap; /* si besoin */
  flex-direction: row-reverse; /* lien à gauche, vidéo à droite */
}

.youtube-vid-2 video {
  max-width: 100%;
  width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.lien-2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* alignement en haut */
  align-items: flex-start; /* coller liens à gauche */
  padding: 10px; /* comme projet 1 */
  border-left: 3px solid #ff3399; /* bordure à gauche */
  margin-top: 10px;
  margin-left: 0;
}

.lien-2 a {
  margin-bottom: 10px;
  margin-left: 0;
  font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.lien-2 a:hover {
  color: #ff3399;
}

.h4-p2 {
    text-align: end;
}



/* projet-3 */
.projet-3 {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Bloc vidéo */
.youtube-vid-3 video {
  max-width: 100%;
  width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Bloc des liens */
.lien-3 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start; /* 👈 important pour coller les liens à gauche */
  padding: 10px;
  border-left: 3px solid #ff3399;
  margin-top: 10px;
}

.lien-3 a {
  margin-bottom: 10px;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.lien-3 a:hover {
  color: #ff3399;
}

/* projet 4 */
.projet-4 {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-start; /* comme projet 1 */
  flex-wrap: wrap; /* si besoin */
  flex-direction: row-reverse; /* lien à gauche, vidéo à droite */
}

.youtube-vid-4 video {
  max-width: 100%;
  width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.lien-4 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* alignement en haut */
  align-items: flex-start; /* coller liens à gauche */
  padding: 10px; /* comme projet 1 */
  border-left: 3px solid #ff3399; /* bordure à gauche */
  margin-top: 10px;
  margin-left: 0;
}

.lien-4 a {
  margin-bottom: 10px;
  margin-left: 0;
  font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.lien-4 a:hover {
  color: #ff3399;
}

.h4-p4 {
    text-align: end;
}



/* image ia */
.img-ia{
    background-image: url(../image/img-sitesaf.jpg);
    background-size: 100%;
}

[class*="reveal-"] {
    opacity: 0;
    transform: translateY(-30px);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
    transition: 1s;
}

.reveal-2{
    transition-delay: .1s;
}
.reveal-3{
    transition-delay: .2s;
}

/*image fixe*/
.image-pc{
   width: 100vw;              /* prend toute la largeur de l’écran */
  height: 70vh;
  background-image: url('../image/img-sitesaf.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.5;
  margin-left: calc(-50vw + 50%);
    }


/*footer */
.site-footer {
  background-color: #fbf4fa; /* plus clair que le fond général */
  padding: 30px 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: #666;
  font-size: 14px;
  border-top: 1px solid #e0d6e3;
}
.site-footer .social-icons {
  margin-top: 15px;
  margin-bottom: 15px;
}

.site-footer .social-icons a {
  margin: 0 10px;
  font-size: 22px;
  color: #333;
  transition: color 0.3s ease;
}

.site-footer .social-icons a:hover {
  color: #ff3399;
}

.politique{
    text-decoration: none;
    color: #555;
}
.politique:hover{
    color: #ff3399;
}

#icons {
    display: none; /* par défaut on cache sur desktop */
}


@media (max-width: 668px) {


    .projet-1 {
    flex-direction: column;
    align-items: flex-start;
  }

  .youtube-vid-1 video,
  .lien-1 {
    width: 100%;
  }

  .lien-1 {
    border-right: none;
    border-left: 3px solid #ff3399;
  }

  .projet-2 {
    flex-direction: column;
    align-items: flex-start;
  }

  .youtube-vid-2 video,
  .lien-2 {
    width: 100%;
  }

  .lien-2 {
    border-right: none;
    border-left: 3px solid #ff3399;
  }

  .projet-3 {
    flex-direction: column;
    align-items: flex-start;
  }

  .youtube-vid-3 video,
  .lien-3 {
    width: 100%;
  }

  .lien-3 {
    border-right: none;
    border-left: 3px solid #ff3399;
  }

    .content {
        margin-left: 0;
        margin-right: 0;
    }


  #icons {
        display: block;
        font-size: 28px;
        cursor: pointer;
        z-index: 10001;
        position: relative;
    }
    #icons:before{
        content: "\2630";
    }

    nav {
        position: fixed;
        top: 0; /* juste en dessous du header/logo */
        left: -150%;
        width: 100%;
        z-index: 9999; /* au-dessus de toutes les images */
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        background: #ff3399;
        list-style: none;
        margin: 0;
        padding: 120px 0 0 0; /* laisse 120px pour le logo */
        text-align: center;
        transition: 0.3s;
    }

    nav li {
        padding: 3px 0;
    }

    nav.active + #icons:before,
        #icons.active:before {
        content: "\2715"; /* ✕ croix */
    }
    nav.active {
        left: 0;
    }
}