@font-face {
	font-family: 'Jacoby';
	src: url('/fonts/jacoby-icg-black.ttf')format('truetype');
}
@font-face {
  font-family: 'Times New Roman' ;
  src: url('/fonts/Times_New_Roman.ttf')format('truetype');
}

@font-face {
font-family: 'GE Inspira';
src: url('../GE_Inspira.ttf')format('truetype');
}

body {
  padding-left: 2%;
  padding-right: 2%;
  background: #181818;
  font-size: 1em;
  color: #c6c6c6;
}

#main {
  position: fixed;
  background: #181818;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

#page {
  margin-top: 120px;
  margin-right: 2%;
  margin-left: 2%;
   
}

article {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

a{
	color:#ff4c4c;
	font-family:'GE Inspira', sans-serif;
	text-decoration:none;
	font-size:1em;
}

a.retour{
	margin-right: 5%;
	float:right;
}

p {
  font-family:'GE Inspira', sans-serif;
  font-size:1em;  
  text-align: center;
}

/*apparition et mouvement du titre sur les images*/
.thumb {
  position: relative;
  display: inline-block;
  width: 250px;
  height: 191px;
  overflow: hidden;   /* très important */
}

/* état par défaut : mobile / tactile */
div.index figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  font-family: "Times New Roman";
  font-size: 20px;
  line-height: 1;
  padding: 0;
  background-color: rgba(0,0,0,0.4);
  color: #e6e6e6;
  text-align: center;
  transform: translateY(150px);  /* visible */
  opacity: 1;
  transition: transform 2s ease, opacity 0.25s ease;
}

h1{
  /* The title of the page */
  color:#808080;
  font-family: 'Jacoby', sans-serif;;
  font-size: 3em;
  font-weight: normal;
  text-align: center;
  margin-top:10px;
  margin-bottom:10px;
}

hr{
  /* The horizontal ruler */
  background-color:#ff5252;
  border: none;
  color: #ff5252;
  margin-right: 5%;
  margin-left: 5%;
  height:1px;
}

@media (hover: hover) and (pointer: fine) {

  div.index figcaption {
    transform: translateY(-100%);
    opacity: 0;
  }

  .thumb:hover figcaption {
    transform: translateY(150px);
    opacity: 1;
  }
}
/*
/*
/*
/*
/*
*/
@media (hover: none) and (pointer: coarse) {

  /* titre toujours visible */
  div.index div {
    transform: translateY(150px);   /* même valeur que desktop */
    opacity: 1;
  }

  /* on désactive l’animation */
  .thumb:hover div {
    transform: translateY(150px);
  }
  h1 {
    font-size: clamp(2em, 5vw, 3em);
  }

  div.index div {
    font-size: clamp(14px, 2.5vw, 20px);
  }
}
