/*t tro for la vi de ma mer*/


*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  height: 100vh;
}


main {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
}

main::-webkit-scrollbar {
  display: none;
}


.blocbouton {

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding-left: 90px;
}

.fou {
  position: relative;
  cursor: pointer;
  rotate: 90deg;
  text-decoration: none;
}

.fou path {
    animation: swim 2s infinite alternate;
}
@keyframes swim {
    100% {
        d:path("m 9.5331218,9.1438047 h 2.9506192 c -0.889727,2.6252353 0.303158,5.2853503 0.744226,7.9818373 0.268752,2.034902 0.193115,4.476793 -0.257488,5.497193 0,0 1.244507,-0.322356 2.028404,0 -0.524342,1.538077 -1.72778,3.242675 -3.353785,4.528342 -1.9952075,-1.451155 -3.1023683,-2.655569 -3.8342197,-4.528342 0.6468351,-0.218312 1.9853275,0 1.9853275,0 0,0 1.3331972,-2.255776 0.1319543,-5.967802 C 9.3962128,15.011245 8.6799426,11.56033 9.5331267,9.1438047 Z")
    }
}


.bloctexte {
  min-width: 30vw;
  height: 80vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 80px;

  scroll-snap-align: start;
}

h1 {
  font-family: 'italic';
  color: #d20101;
  font-size: 1.5rem;
  line-height: 2.1rem;
}


.blocicon {
  min-width: 60vw;

  display: flex;
  align-items: center;
  justify-content: center;
}

#icon {
  width: 80px;
}


.blocimage {
  min-width: 100vw;
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  scroll-snap-align: start;
}


.controls {
  margin-bottom: 20px;
}

.controls button {
  color: #d20101;
  font-family: 'regular';
  font-size: 1.2rem;

  padding: 10px 20px;
  margin: 5px;

  background: transparent;
  border: 3px solid #d20101;
  cursor: pointer;

  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
}

.dessin {
  height: 100vh;
  object-fit: contain;
}


.container {
  position: relative;
  width: 80vw;
  height: 70vh;
}

.container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  mix-blend-mode: multiply;

  opacity: 0;
  transition: opacity 0.5s;

  pointer-events: none;
}

.container img.visible {
  opacity: 1;
}



















#container{
  display: grid;
  grid-template-columns: repeat(4, 100px);
  grid-gap: 10px;
  list-style-type: none;
  margin: 2em;
  
}

#container div {
  grid-template-columns: repeat(4, 100px);
  width: 130px;
  height: 200px;
  border: 3px solid #001664;
  border-radius: 5%;
  background-color: #ddd;
  cursor: pointer;

}

#container img {
  max-width: 100%;
  max-height: 100%;
  display: none; /* Les images sont cachées par défaut */
}

/* Lorsque la carte est retournée */
img.face-up {
  display: block; /* L'image est affichée */
  border-radius: 5px;
}

/* Quand une paire est trouvée */
img.match {
  border: 2px solid green; /* Indique une correspondance */
  background-color: #8f8; /* Optionnel : changer l'apparence de l'image */
}

[data-pair-id="azel"]{
  background: url(img/dos.png);
  background-size: cover;
}

[data-pair-id="clara"]{
  background: url(img/clara.png);
  background-size: cover;
}

[data-pair-id="clem"]{
  background: url(img/clem.png);
  background-size: cover;
}

[data-pair-id="lelio"]{
  background: url(img/lelio.png);
  background-size: cover;
}

[data-pair-id="maxime"]{
  background: url(img/maxime.png);
  background-size: cover;
}

[data-pair-id="lucie"]{
  background: url(img/lucie.png);
  background-size: cover;
}












.oui, .non {
  display: none; /* Masque les messages par défaut */
  position: fixed; /* Pour qu'ils soient toujours visibles */
  top: 20px; /* Ajuste la position en haut de l'écran */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border: 2px solid black;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  z-index: 1000; /* S'assure que le message est au-dessus de tout */
}