/* style.css */

body {
    margin: 0;
    font-family: "Citrus Gothic Rough", sans-serif;
    background-color: #5a79ff;
    height: 200vh;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    cursor: url('logo/curseur de base.png') 0 0, auto;
      font-family: 'MaSuperPolice', sans-serif;
       padding: 2em 0; /* ici ça crée 2em en haut et 2em en bas */
}

.youtube-video-fixed {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border: 0.1em solid black;
  border-radius: 0.5em;
  box-sizing: border-box;
}

.youtube-video {
  width: 100%;
  aspect-ratio: 16 / 9;    /* ✅ garde le format YouTube horizontal */
  height: auto;
  border: none;
  display: block;
  box-sizing: border-box;
}

@font-face {
  font-family: 'MaSuperPolice';
  src: url('typo/CitrusGothicRough-Regular.ttf') format('truetype');
}


.image-frame {
  display: inline-block;
  border-bottom: 0.1em solid black;
  position: absolute;
  top: 20;
  z-index: 10; /* Permet de placer l'image au-dessus des autres éléments */
  padding-top: 0em;
}

/* Style de l'image */
.image-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #e6e6e6;
    border-bottom: 0.1em solid black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1em;
    z-index: 1000;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-size: 1.1em;
    margin: 0.1em 0.8em;
}

.nav-link:hover {
    color: red;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 2.8em;
}

@font-face {
    font-family: 'Citrus Gothic Rough';
    src: url('typo/CitrusGothicRough-Italic.woff2') format('woff2');
    font-style: italic;
}

.second-navbar {
    position: fixed;
    top: 3em;
    width: 100%;
    background-color: #e6e6e6;
    border-bottom: 0.1em solid black;
    border-top: 0.1em SOLID black;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.1em;
    z-index: 1000;
}

.second-nav-item {
    margin: 0.1em 0.8em;
    font-size: 1.1em;
    color: black;
    font-style: italic;
}

.second-nav-item:hover {
    color: red;
}

.footer-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #e6e6e6;
    border-top: 0.1em solid black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1em;
    z-index: 1000;
}

.footer-links {
    display: flex;
    justify-content: flex-start;
}

.footer-item {
    margin: 0.2em 0.8em;
    font-size: 1.1em;
    color: black;
    font-style: italic;
}

.footer-item:hover {
    color: red;
}

.footer-copyright {
    margin: 0.1em 0.8em;
    font-size: 1em;
    color: black;
}



a{
    text-decoration: none;
    cursor: url('logo/curseur jaune.png') 0 0, pointer;
  }

  .illustrations {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3em;

  padding: 5em 1em; /* 1em à gauche/droite pour respirer */
  width: 100%;
  box-sizing: border-box;
}

.illustrations a {
  width: 90vw;
  max-width: 80em; /* ✅ limite la largeur max des images */
}

.illustrations a:first-child {
  margin-top: 650px; /* ajuste selon la hauteur voulue */
}

  .illustrations img {
  width: 100%;
  height: auto;
  border-radius: 0.5em;
  border: 0.1em solid black;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
  transition: transform 0.15s ease;
}

  .illustrations-zoom {
    transition: transform 0.15s ease;
  }
  
  .illustrations-zoom:hover {
    transform: scale(1.005);
  }
  
  ::-webkit-scrollbar {
    width: 1.2em;
     cursor: url('logo/curseur jaune.png') 0 0, default;
}

::-webkit-scrollbar-track {
    background: #bdbdbd;
    border-left: 0.1em solid black

}

::-webkit-scrollbar-thumb {
    background-color: #e6e6e6;
    border: 0.1em solid black;
    border-right: 0;
    cursor:pointer

}

.scrollable {
    overflow-y: auto;
  }

.scrollable {
    -ms-overflow-style: none;  /* Pour Internet Explorer et Edge */
    scrollbar-width: none;     /* Pour Firefox */
  }

  .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin-top: 5em auto;
  padding: 0;
  width: 100%;
  max-width: 84em;
  box-sizing: border-box;
}


  .image-container img,
.image-container2 img,
.image-container3 img {
  flex: 1 1 auto;             /* ✅ permet de se rétrécir */
  width: 100%;                /* prend tout l'espace dispo */
  max-width: 20em;            /* ne dépasse pas 20em */
  min-width: 8em;             /* ne devient pas minuscule */
  height: auto;

  border-radius: 0.5em;
  border: 0.1em solid black;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
}
  
  .image-container img:hover,
.image-container2 img:hover,
.image-container3 img:hover {
  transform: scale(1.01); /* Agrandit légèrement l'image (5%) */
  }

 .image-container,
.image-container2,
.image-container3 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;          /* ❗ ne PAS permettre aux images d'aller à la ligne */
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  padding: 1em;
  background-color: rgb(255, 34, 111);
  border: 0.1em solid black;
  box-sizing: border-box;

  width: 90vw;                /* ✅ responsive */
  max-width: 84em;            /* ✅ limite max */
  margin: 0em auto;         /* ✅ centré, espace autour */
}
  
  .image-container3{
    padding-bottom: 1.1em;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border: 0.1em solid black;
    border-top-left-radius: 0; /* Retirer l'arrondi en haut à gauche */
  border-top-right-radius: 0; /* Retirer l'arrondi en haut à droite */
  border-bottom-left-radius: 0.5em; /* Garder l'arrondi en bas à gauche */
  border-bottom-right-radius: 0.5em; /* Garder l'arrondi en bas à droite */
  border-top: 0;
  }

  .image-container2{
    border-radius: 0;
    border: 0.1em solid black;
    border-bottom: 0;
    border-top: 0;
    padding-bottom: 0em;
    padding-top: 0em;
  }

  .image-container{
    margin-top: 3em;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border: 0.1em solid black;
    border-top-left-radius: 0.5em; /* Retirer l'arrondi en bas à gauche */
  border-top-right-radius: 0.5em; /* Retirer l'arrondi en bas à droite */
  border-bottom: 0;
  }

  /* Vue plein écran avec fond jaune */
  .fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff0000;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border: 0.1em solid black
  }
  
  #fullscreen-img {
    max-width: 92%;
    max-height: 92%;
    border: 0.1em solid black;
  }
  
  .close-btn {
    position: absolute;
    top: 0.2em;
    right: 0.4em;
    font-size: 2.2em;
    color: black;
    cursor: pointer;
    z-index: 1000;
    cursor: url('logo/curseur jaune.png') 0 0, auto;
  }

  
 /* Effet au survol */
.video:hover {
  opacity: 1;
}

  
  /* Texte informatif à droite de la vidéo */
  .info-text {
    font-size: 1.065em;
    line-height: 1.5;
    color: #e6e6e6;
  }

 .illustrations-individuelle {
  max-width: 84em;
  width: 90vw;
  margin: 0 auto;
  padding: 0em 0; /* juste un peu d’espace vertical si besoin */
  background: transparent; /* pas de fond */
  border: none; /* pas de bordure */
  border-radius: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
  .illustrations-individuelle img {
  width: 100%;
  height: auto;
  border: 0.1em solid black;
  border-top: none;
  border-bottom-left-radius: 1em;
  border-bottom-right-radius: 1em;
  object-fit: cover;
  box-sizing: border-box;
}


 .wrapper2 {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 3em;
  padding-bottom: 0em;
  box-sizing: border-box;
}

.image-container4 img {
  flex: 1 1 auto;
  width: 100%;
  max-width: 20em;
  min-width: 8em;
  height: auto;
  border: 0.1em solid black;
  border-radius: 0.5em;
  object-fit: cover;
  box-sizing: border-box;
}
 .image-container4 {
  max-width: 84em;
  width: 90vw;
  margin: 0 auto;
  padding: 1.2em;
  background-color: #ffbc00;
  border: 0.1em solid black;
  border-bottom: none; /* Enlève la bordure basse */
  border-radius: 1em 1em 0 0;
  box-sizing: border-box;
  display: flex;
  gap: 0.5em;
  justify-content: center;
  flex-wrap: nowrap;
}


.image-container4 img:hover {
  transform: scale(1.01); /* Agrandit légèrement l'image (5%) */
  }

 .frame {
    background-color: #ffbc00;
    border: 0.1em solid black;
    border-radius: 1em;
    padding: 1em;
    max-width: 90vw;
    margin-top: 2.8em;
    width: 80em;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
  }



.frame img {
  width: 100%;
  height: auto;
  border-radius: 0.5em;
  border: 0.1em solid black;
  margin-bottom: 1em;
  box-sizing: border-box;
}

.image-top img {
  width: 100%;
  height: auto;
  border-radius: 0.5em;
  border: 0.1em solid black;
  margin-bottom: 0em;
  display: block;
  box-sizing: border-box;
}

.image-top img:first-of-type {
  margin-bottom: 1em;
}

body.projet3-page .image-top img:nth-of-type(1) {
  margin-bottom: 1em;
}

.projet2-page .frame img.mb-1em {
  margin-bottom: 1em;
}

.projet2animation-page img.mb-1em {
  margin-bottom: 1em;
}

.title {
  font-size: 2em;
  text-align: left;
  margin-bottom: 0em;
  margin-top: 0.4em;
}

.text {
  font-size: 1.1em;
  text-align: left;
  line-height: 1.2;
  margin-bottom: 1.1em;
  color: black;
}
.gif {
  width: 100%;       /* Prend toute la largeur disponible */
  max-width: 82.5rem; /* Optionnel : limite la largeur max */
  text-align: center; /* Si tu veux centrer le contenu horizontalement */
}
 .gif img {
    width: 100%;
    height: auto;
    border-radius: 1em;
    border: 0.1em solid black;
    display: block;
  }

.info-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 84em; /* Largeur de 80% de la page */
  padding: 1em;
  background-color: #007BFF; /* Couleur de fond bleu */
  border-radius: 1em; /* Coins arrondis */
  border: 0.1em solid black;
  color: white; /* Couleur du texte */
  box-sizing: border-box;
  margin-top: 2em; 
}

/* Vidéo figée au départ */
.info-container img{
  width: 10em; /* Ajuste la taille de la vidéo */
  height: auto;
  margin-right: 1em; /* Espace entre la vidéo et le texte */
  border-radius: 0.5em; /* Arrondi des coins de la vidéo */
  object-fit: cover; /* Ajuste le contenu de la vidéo */
  display: block;
  border: 0.1em solid black;
}


.container10 {
  width: 84em;
  background-color: #e6e6e6;
  border: 0.1em solid black;
  border-radius: 1em;
  text-align: center;
}

.container10 img {
  max-width: 82em;
  margin-bottom: 0.2em;
}

.container10 p {
  font-size: 1.2em;
  margin-top: 0;
  color: black;
  line-height: 1.5;
  padding: 1.2em;
}

@media screen and (max-width: 768px) {
  html, body {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
     min-height: 100vh;
  }

  body.illustration-page {
    background-color: #ffbc00;
    margin: 0;
    padding: 0;
  }

  .image-container4 {
    width: 100vw;
    padding-top:3.3em;
    background-color: #ffbc00;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    box-sizing: border-box;
  }

  .image-container4 img {
    width: 100%;
    max-width: 100%;
    border: 0.1em solid black;
    border-radius: 0.5em;
    object-fit: cover;
    display: block;
  }

  .illustrations-individuelle {
    margin: 0;
    padding: 0;
    width: 100vw;
    background-color: #ffbc00;
    display: flex;
    justify-content: center;
  }

  .illustrations-individuelle img {
    width: 100%;
    border: none;
    border-radius: 0;
    object-fit: cover;
    display: block;
  }
}

@media only screen and (max-width: 768px) {
  body {
    padding-bottom: 0em; /* Évite que la barre fixe cache le contenu */
  }

  .footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.8em;
    background-color: #e0e0e0; /* même gris que la barre du haut */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
  }

  .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    width: 100%;
  }

  .footer-item {
    font-size: 1.1em; /* ✅ même taille que ILLUSTRATION sur mobile */
    text-decoration: none;
    color: black;
    white-space: nowrap;
  }

  .footer-copyright {
    display: none; /* Supprime le texte à droite */
  }
}

@media screen and (max-width: 768px) {
  body.archive-page {
    margin: 0;
    padding: 0;
    background-color: rgb(255, 34, 111);
  }

  .wrapper {
    margin: 0;
    padding: 0;
  }

  /* Fusion visuelle des 3 cadres roses */
  .image-container,
  .image-container2,
  .image-container3 {
    width: 100vw;
    padding: 1.5em;
    margin: 0; /* ✅ supprime les espaces entre les cadres */
    margin-bottom: 0em;
    background-color: rgb(255, 34, 111);
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em; /* ✅ écart régulier entre les images */
    box-sizing: border-box;
  }

  /* Images dans les cadres roses */
  .image-container img,
  .image-container2 img,
  .image-container3 img {
    width: 100%;
    max-width: 100%;
    border: 0.1em solid black;
    border-radius: 0.5em;
    object-fit: cover;
    box-sizing: border-box;
  }

  /* ✅ Marge bas après les 3 cadres */
  .image-container3 {
    margin-bottom: 1.8em;
  }

  /* Illustration individuelle (en bas, pleine largeur) */
  .illustrations-individuelle-archive {
    width: 100vw;
    background-color: rgb(255, 34, 111);
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .illustrations-individuelle-archive img {
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
  }

  .image-container img:first-child {
  margin-top: 4.5em;
}
}
  
@media only screen and (max-width: 768px) {
  .image-frame {
     margin-top: 5em; /* Baisse la première image */
     margin-bottom: 20em;
    text-align: center;
  }

  .illustrations {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 1em; /* Réduit l’espace en bas de la page */
    gap: 1.8em;
  }
  .index-page .illustrations {
    margin-top: -23em; /* ou la valeur fixe que tu veux */
  }
  
  /* Si tu veux aussi gérer l’espace entre la frame et la première illustration */
  .index-page .frame {
    margin-bottom: -10em; /* Ajuste ici aussi si besoin */
  }
}


@media screen and (max-width: 768px) {
  
  .frame {
    width: 100vw;
    max-width: 100vw;
    padding: 1em;
    margin: 0;
    background-color: #ffbc00;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
  }

   .frame img,
  .gif img {
    width: 100%;
    height: auto;
    border: 0.1em solid black;
    border-radius: 0.5em;
    display: block;
    object-fit: cover;
  }

  .gif {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .image-top img:first-of-type {
    margin-bottom: 1em;
  }

  .gif-top img:first-of-type {
    margin-bottom: 1em;
  }


  body.projet2-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    min-height: 100vh;
    height: auto !important;
    background-color: #ffbc00 !important;
    padding-top: 5em;   /* marge top */
    padding-bottom: 2em; /* marge bas */
    box-sizing: border-box;
  }

   body.projet3-page,
  body.projet4-page,
  body.projet5-page {
    background-color: #ff0000 !important;  /* rouge */
    min-height: 100vh;
    height: auto !important;
    margin: 0;
    padding-top: 5em;
    padding-bottom: 2em;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.projet6-page,
  body.projet2animation-page  {
    background-color: #00a64f !important;  
    min-height: 100vh;
    height: auto !important;
    margin: 0;
    padding-top: 5em;
    padding-bottom: 2em;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
  }

@media screen and (max-width: 768px) {
  body.projet1animation-page .frame {
    background-color: #5aff80; /* ✅ vert */
    width: 100vw;
    padding: 1em;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.projet1animation-page iframe.youtube-video {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
    display: block;
  }
}
.youtube-video {
  width: 100%;
  aspect-ratio: 16 / 9;    /* ✅ garde le format YouTube horizontal */
  height: auto;
  border: none;
  display: block;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  body.projet1illustration-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffbc00 !important;
    margin: 0;
    padding: 0em 0em; /* ✅ marge haut et bas fixes */
    padding-bottom: 5em;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;             /* ✅ adapte la hauteur à son contenu */
   
  }

  .projet1illustration-page .frame {
    width: 100vw;
    max-width: 100vw;
    padding: 0 1em;
    background-color: #ffbc00;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    box-sizing: border-box;
      padding-top: 6em;
  }

  .projet1illustration-page .frame img,
  .projet1illustration-page .gif img {
    width: 100%;
    height: auto;
    border: 0.1em solid black;
    border-radius: 0.5em;
    display: block;
    object-fit: cover;
    box-sizing: border-box;
  }

  .projet1illustration-page .gif {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
}




