  /* Ca c'est le fichier CSS soit le visuel du site   
  */


  /* LES FONTES */

  @font-face {
    font-family: 'Inter-medium';
    src: url("fontes/Inter-Medium.woff") format("opentype");
  }

  @font-face {
    font-family: 'Inter-bold';
    src: url("fontes/Inter-Bold.woff") format("opentype");
  }

  @font-face {
    font-family: 'Inter-bold-italic';
    src: url("fontes/Inter-BoldItalic.woff") format("opentype");
  }

  /* LE SQUELETTE */

  html {
    cursor: cell;
    color: #FB4C0D;
  }

  body {
    font-family: 'Inter-medium';
    line-height: 1.4;
    background-color: #FB4C0D;
    color: black;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }


  .fade-container {
    background-color: #FB4C0D;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeOut 3s ease-in-out forwards;
    animation-delay: 0, 5s;
  }

  .fade-container img {
    max-width: 50%;
    height: auto;
    background-color: none;
  }

  @keyframes fadeOut {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }

  /* LE SQUELETTE 
  #grille-front-page {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    text-align: right;
  }

    .img-front-page {
    grid-column: 5 / 6;
  }
  */

  .scroll-container {
    flex-direction: row;
    overflow: auto;
    white-space: nowrap;
    background: transparent;
    height: 100%;
    width: 100%;
  }

  .gridscroll {
    display: inline-flex;
  }

  .gridscroll a {
    color: #FB4C0D;
  }

  .gridmobile {
      display: none;
  }

  img {
    display: grid;
    max-height: 700px;
  }

  figcaption {
    background-color: rgb(0, 0, 0);
    color: #FB4C0D;
    padding-left: 10px;
    text-align: left;
    font-size: 1em;
  }

  nav {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    margin: 20px;
  }

  p {
    color: black;
  }

  a {
    color: black;
    text-decoration: none;
    padding: 10px;
  }

  a:hover {
    color: #FB4C0D;
  }



  li:last-child {
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: #FB4C0D;
  }


  li {
    text-transform: uppercase;
    border: 1px solid #000000;
    display: inline;
    padding: 5px;
    margin-top: 10px;

  }

  li:hover {
    background: black;
  }

  footer {
    margin: 0 auto;
    position: fixed;
  }



  /* RESPONSIVE TABLETTE */
  @media(min-width: 50em) and (max-width: 80em) {
    #grid-about {
      grid-template-columns: 1fr;
      gap: 3em;
      margin: 0em 2em 2em 2em;
    }

    #piece {
      margin: 1em 10em 1em 10em;
    }

  }

  /* RESPONSIVE MOBILE */
  @media(min-width: 1em) and (max-width: 50em) {

    body {
      margin: 0.5em;
      padding: 0;
    }

    .fade-container {
      display: none;
    }

    .scroll-container {
      flex-direction:unset;
      overflow:hidden;
      white-space: nowrap;
      background: transparent;
      height: 100%;
      width: 100%;
    }
  
    .gridscroll{
      display:none;
    }
  
    .gridmobile {
        display: block;
        max-width: max-content;
    }

  
    img {
      display: grid;
    }

    nav {
      display: grid;
      /* ✅ essentiel */
      grid-auto-flow: row;
      width: 100%;
      /* ✅ pour occuper tout l'espace */
      margin: 1em auto;
      gap: 0.5em;
      justify-items: stretch;
      /* ✅ étire les enfants */
    }

    li {
      display: block;
      /* ✅ bloc vertical */
      width: 100%;
      /* ✅ prend toute la largeur */
      box-sizing: border-box;
      /* ✅ évite débordement */
      margin: 0;
      text-align: center;
    }

    a {
      display: block;
      /* ✅ lien cliquable sur toute la zone */
      padding: 10px;
      text-align: center;
    }


    #piece {
      margin: 0;
    }

    footer {
      position: relative;
    }

    li:last-child {
      position: relative;
      right: 0;
      bottom: 0;
    }
  }