@import "./style.css";

#indice {
  font-weight: bold;
}

/* -------------------- Formations cards -------------------- */
.formations-cards {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.fc {
  font-size: smaller;

  border: 1px solid black;
  border-radius: 8px;

  background-color: white;

  overflow: hidden;
}

.fc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;

  padding: 0.5em;

  border-bottom: 1px solid black;

  color: white;
  background-color: #4C65C9;

  div {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5em;

    a {
      text-align: left;

      color: white;
    }
  }

  img {
    width: 75px;
    height: 75px;

    border-radius: 7px;
  }
}

.fc-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1em;

  padding: 0.5em;
}

.fc-content>* {
  display: flex;
  align-items: center;

  text-align: left;
}

.fc-content>b {
  max-width: 150px;
}

/* -------------------- Formations grid -------------------- */
.formations-grid {
  display: none;
}

/* -------------------- Satisfaction scale -------------------- */
.satisfaction-scale-container {
  display: flex;
  flex-direction: row;

  font-size: 0.5em;
}

.satisfaction-answers {
  font-size: 0.5em;
}

.emoji {
  width: 50%;
}

/* -------------------- Carousel -------------------- */
.carousel {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 100px;
}

.img-carousel {
  max-height: 100px;
  max-width: 100%;
}

@media screen and (min-width: 625px) {
  .fc-content>b {
    max-width: 180px;
  }
}

/* -------------------- Responsive -------------------- */
@media screen and (min-width: 1400px) {
  .formations-cards {
    display: none;
  }

  .formations-grid {
    --line-thickness: 1px;
    --line-color: black;

    z-index: 0;

    display: grid;
    grid-template-columns: 1fr repeat(4, minmax(0, 1fr)) 1.75fr minmax(0, 1fr);

    font-size: smaller;

    border: 1px solid black;
    border-radius: 8px;

    background-color: white;

    overflow: hidden;
  }

  .fg-header-cell,
  .fg-first-column-cell {
    position: relative;
  }

  .fg-header-cell::before,
  .fg-first-column-cell::after {
    content: "";

    position: absolute;
    /* z-index: 1; */

    background-color: var(--line-color);
  }

  /* Column borders */
  .fg-header-cell:not(:first-of-type)::before {
    inset-block-start: 0;
    inset-inline-start: 0;

    block-size: 100vh;
    inline-size: var(--line-thickness);
  }

  /* Row borders */
  .fg-first-column-cell::after {
    inset-inline-start: 0;
    inset-block-start: 0;

    inline-size: 100vw;
    block-size: var(--line-thickness);
  }

  .formations-grid>* {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0.5em;
  }

  .fg-header-cell {
    grid-row: 1;
    background-color: #4C65C9;

    color: white;
  }

  .fg-first-column-cell {
    display: flex;
    justify-content: space-between;
    gap: 1em;

    div {
      display: flex;
      flex-direction: column;
      align-items: start;
      gap: 1em;

      a {
        text-align: left;
      }
    }

    img {
      width: 75px;
      height: 75px;
    }
  }
}

@media screen and (min-width: 768px) {
  .satisfaction-scale-container {
    font-size: 1em;
  }

  .satisfaction-answers {
    font-size: 0.8em;
  }
}