/* =========================================================
   NUMBER AFTER TWELVE
   PAGE ROSTER
   ========================================================= */


/* =========================================================
   HEADER
   ========================================================= */

.inner-header {
  width: 100%;
  min-height: 115px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 6px clamp(20px, 4vw, 60px);

  border-bottom: 1px solid #222;

  background: #000;
}


/* =========================================================
   LOGO HEADER
   ========================================================= */

.header-logo {
  display: block;

  width: 104px;
  height: 104px;

  flex-shrink: 0;
}

.header-logo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.inner-nav {
  display: flex;
  align-items: center;

  gap: clamp(25px, 4vw, 60px);
}

.inner-nav a {
  position: relative;

  padding: 10px 0;

  color: #fff;

  text-decoration: none;

  font-size: 14px;
  font-weight: 700;

  letter-spacing: 3px;

  transition: color 0.2s ease;
}

.inner-nav a:hover,
.inner-nav a:focus-visible,
.inner-nav a.active {
  color: #e00000;
}

.inner-nav a.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 2px;

  height: 1px;

  background: #e00000;
}


/* =========================================================
   PAGE
   ========================================================= */

.roster-page {
  flex: 1;

  width: 100%;

  padding:
    55px
    clamp(20px, 5vw, 80px)
    clamp(50px, 7vw, 90px);
}


/* =========================================================
   TITRE
   ========================================================= */

.roster-heading {
  width: min(1180px, 100%);

  margin: 0 auto 20px;
}

.roster-heading h1 {
  margin: 0;

  color: #fff;

  font-family: "Bebas Neue", sans-serif;

  font-size: clamp(52px, 6vw, 78px);
  font-weight: 400;

  line-height: 0.95;

  letter-spacing: 3px;
}

.title-line {
  width: 72px;
  height: 3px;

  margin-top: 14px;

  background: #e00000;
}


/* =========================================================
   GRILLE ROSTER
   ========================================================= */

.roster-grid {
  width: min(1400px, 100%);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));

  gap: clamp(25px, 3vw, 45px);
}


/* =========================================================
   POLAROIDS
   ========================================================= */

.artist-card {
  position: relative;

  display: block;

  padding: 10px 10px 0;

  background: #deded9;

  color: #111;

  text-decoration: none;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.55);

  transform: translateY(0);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}


/* =========================================================
   ROTATION DES POLAROIDS
   ========================================================= */

.artist-card:nth-child(odd) {
  transform: rotate(-0.7deg);
}

.artist-card:nth-child(even) {
  transform: rotate(0.7deg);
}


/* =========================================================
   SURVOL DU POLAROID
   ========================================================= */

.artist-card:hover,
.artist-card:focus-visible {
  z-index: 2;

  transform:
    translateY(-8px)
    rotate(0deg);

  background: #e9e9e5;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.75);

  outline: none;
}


/* =========================================================
   PHOTO
   ========================================================= */

.artist-photo {
  width: 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: #111;
}

.artist-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  /* Photo en couleur au repos */

  filter: grayscale(0%);

  transition:
    filter 0.35s ease,
    transform 0.4s ease;
}


/* =========================================================
   PHOTO AU SURVOL
   COULEUR -> NOIR & BLANC
   ========================================================= */

.artist-card:hover .artist-photo img,
.artist-card:focus-visible .artist-photo img {
  filter: grayscale(100%);

  transform: scale(1.035);
}


/* =========================================================
   NOM DU GROUPE
   ========================================================= */

.artist-name {
  min-height: 72px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 14px 10px;

  color: #111;

  text-align: center;

  font-family: "Bebas Neue", Arial, sans-serif;

  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;

  line-height: 1.05;

  letter-spacing: 4px;
}


/* =========================================================
   TABLETTE
   DE 521 px À 1024 px
   ========================================================= */

@media (min-width: 521px) and (max-width: 1024px) {

  /* HEADER */

  .inner-header {
    min-height: auto;

    flex-direction: column;
    justify-content: center;

    gap: 6px;

    padding: 10px 20px 15px;
  }

  .header-logo {
    width: 90px;
    height: 90px;
  }


  /* NAVIGATION */

  .inner-nav {
    width: 100%;

    justify-content: center;

    gap: clamp(35px, 7vw, 65px);
  }

  .inner-nav a {
    font-size: 13px;

    letter-spacing: 2.5px;
  }


  /* PAGE */

  .roster-page {
    padding:
      28px
      28px
      55px;
  }


  /* TITRE */

  .roster-heading {
    margin-bottom: 26px;
  }


  /* 2 POLAROIDS PAR LIGNE */

  .roster-grid {
    width: 100%;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap:
      35px
      30px;
  }


  /* NOMS DES GROUPES */

  .artist-name {
    min-height: 68px;

    padding: 12px 8px;

    font-size: clamp(23px, 4vw, 30px);

    letter-spacing: 3px;
  }

}


/* =========================================================
   TÉLÉPHONE
   520 px ET MOINS
   ========================================================= */

@media (max-width: 520px) {

  /* HEADER */

  .inner-header {
    min-height: auto;

    flex-direction: column;
    justify-content: center;

    gap: 6px;

    padding:
      8px
      15px
      14px;
  }

  .header-logo {
    width: 86px;
    height: 86px;
  }


  /* NAVIGATION */

  .inner-nav {
    width: 100%;

    justify-content: center;

    gap: clamp(18px, 7vw, 32px);
  }

  .inner-nav a {
    font-size: 12px;

    letter-spacing: 2px;
  }


  /* PAGE */

  .roster-page {
    padding:
      38px
      15px
      50px;
  }


  /* TITRE */

  .roster-heading {
    margin-bottom: 24px;
  }

  .roster-heading h1 {
    font-size: 54px;
  }

  .title-line {
    width: 58px;

    margin-top: 14px;
  }


  /* =======================================================
     GRILLE MOBILE
     1 POLAROID PAR LIGNE
     Largeur volontairement limitée à 340 px
     ======================================================= */

  .roster-grid {
    width: min(100%, 340px);

    margin-left: auto;
    margin-right: auto;

    grid-template-columns: 1fr;

    gap: 35px;
  }


  /* PAS DE ROTATION SUR MOBILE */

  .artist-card:nth-child(odd),
  .artist-card:nth-child(even) {
    transform: rotate(0deg);
  }


  /* PAS DE DÉPLACEMENT VERTICAL AU TOUCHER */

  .artist-card:hover {
    transform: none;
  }


  /* NOMS DES GROUPES */

  .artist-name {
    min-height: 65px;

    padding: 12px 10px;

    font-size: 28px;

    letter-spacing: 4px;
  }

}


/* =========================================================
   PETITS TÉLÉPHONES
   380 px ET MOINS
   ========================================================= */

@media (max-width: 380px) {

  .inner-nav {
    gap: 15px;
  }

  .inner-nav a {
    font-size: 11px;

    letter-spacing: 1.5px;
  }

  .artist-name {
    font-size: 25px;

    letter-spacing: 3px;
  }

}