

/* =========================================
   BAG - CALENDRIER DES OUVERTURES
   ========================================= */

#bag-calendar-app,
#bag-calendar-app * {
  box-sizing: border-box;
}

#bag-calendar-app {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #171717;
}


/* ---------- CHARGEMENT ---------- */

.bag-loading {
  padding: 40px 20px;
  text-align: center;
  font-size: 18px;
  color: #777;
}


/* =========================================
   PROCHAINE OUVERTURE
   ========================================= */

.bag-next {
  display: flex;
  overflow: hidden;
  min-height: 190px;
  margin-bottom: 32px;

  background: #111;

  border: 3px solid #ff8a00;
  border-radius: 18px;
}

.bag-next-icon {
  width: 165px;
  min-width: 165px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;

  background:
    linear-gradient(
      135deg,
      #ff9b00,
      #ff7100
    );
}

.bag-next-icon svg {
  width: 75px;
  height: 75px;
}

.bag-next-content {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 24px 28px;
}

.bag-next-label {
  color: #ff8a00;

  font-size: 19px;
  font-weight: 800;

  text-transform: uppercase;
}

.bag-next-date {
  margin-top: 7px;

  color: white;

  font-size: 30px;
  font-weight: 800;

  text-transform: capitalize;
}

.bag-next-time {
  margin: 8px 0 14px;

  color: white;

  font-size: 42px;
  font-weight: 900;
}


/* ---------- BADGES ---------- */

.bag-badge {
  display: inline-block;
  width: fit-content;

  padding: 8px 14px;

  border-radius: 8px;

  color: white;

  font-size: 16px;
  font-weight: bold;

  text-transform: uppercase;
}

.bag-badge.encadre {
  background: #1267c9;
}

.bag-badge.libre {
  background: #15913b;
}


/* =========================================
   TITRE PROCHAINS CRÉNEAUX
   ========================================= */

.bag-section-title {
  display: flex;
  align-items: center;

  gap: 11px;

  margin-bottom: 20px;

  font-size: 25px;
  font-weight: 800;
}

.bag-section-title svg {
  width: 27px;
  height: 27px;

  color: #ff8100;
}


/* =========================================
   JOURS
   ========================================= */

.bag-day {
  margin-bottom: 24px;
}

.bag-day-title {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 10px;

  font-size: 20px;
  font-weight: 800;

  text-transform: uppercase;
}

.bag-day-title svg {
  width: 28px;
  height: 28px;

  color: #ff8100;
}


/* =========================================
   ÉVÉNEMENTS
   ========================================= */

.bag-event {
  position: relative;

  display: flex;

  min-height: 100px;

  margin-bottom: 10px;

  overflow: hidden;

  border: 2px solid;
  border-radius: 13px;

  background: white;
}

.bag-event-time {
  width: 155px;
  min-width: 155px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 12px;

  color: white;

  text-align: center;

  font-size: 24px;
  font-weight: 800;
}

.bag-event-body {
  flex: 1;

  display: flex;
  align-items: center;

  gap: 18px;

  padding: 15px 85px 15px 28px;
}

.bag-event-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 9px;

  border-radius: 50%;

  color: white;
}

.bag-event-icon svg {
  width: 100%;
  height: 100%;
}

.bag-event-text {
  flex: 1;
}

.bag-event-title {
  margin-bottom: 5px;

  font-size: 21px;
  font-weight: 800;
}

.bag-event-desc {
  color: #555;

  font-size: 15px;
}

.bag-event-right {
  position: absolute;

  right: 22px;
  top: 50%;

  width: 48px;
  height: 48px;

  transform: translateY(-50%);
}

.bag-event-right svg {
  width: 100%;
  height: 100%;
}


/* =========================================
   CRÉNEAU ENCADRÉ - BLEU
   ========================================= */

.bag-event.encadre {
  border-color: #1267c9;

  background:
    linear-gradient(
      90deg,
      #edf5ff,
      white
    );
}

.bag-event.encadre .bag-event-time,
.bag-event.encadre .bag-event-icon {
  background: #1267c9;
}

.bag-event.encadre .bag-event-title,
.bag-event.encadre .bag-event-right {
  color: #1267c9;
}


/* =========================================
   CRÉNEAU LIBRE - VERT
   ========================================= */

.bag-event.libre {
  border-color: #15913b;

  background:
    linear-gradient(
      90deg,
      #effbf2,
      white
    );
}

.bag-event.libre .bag-event-time,
.bag-event.libre .bag-event-icon {
  background: #15913b;
}

.bag-event.libre .bag-event-title,
.bag-event.libre .bag-event-right {
  color: #15913b;
}


/* =========================================
   FERMETURE - ROUGE
   ========================================= */

.bag-event.fermeture {
  border-color: #df1d24;

  background:
    linear-gradient(
      90deg,
      #fff0f0,
      white
    );
}

.bag-event.fermeture .bag-event-time {
  background: #df1d24;
}

.bag-event.fermeture .bag-event-icon {
  padding: 0;

  color: #df1d24;

  background: transparent;

  border-radius: 0;
}

.bag-event.fermeture .bag-event-title {
  color: #df1d24;
}


/* =========================================
   LÉGENDE
   ========================================= */

.bag-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 20px;

  margin-top: 22px;

  padding: 15px 20px;

  background: #f2f2f2;

  border-radius: 14px;
}

.bag-legend-title {
  font-size: 17px;
  font-weight: 800;
}

.bag-legend-item {
  display: flex;
  align-items: center;

  gap: 8px;

  font-size: 14px;
  font-weight: 600;
}

.bag-legend-icon {
  width: 31px;
  height: 31px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 5px;

  border-radius: 50%;

  color: white;
}

.bag-legend-icon svg {
  width: 100%;
  height: 100%;
}

.bag-legend-icon.blue {
  background: #1267c9;
}

.bag-legend-icon.green {
  background: #15913b;
}

.bag-legend-icon.red {
  padding: 0;

  color: #df1d24;

  background: transparent;

  border-radius: 0;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 650px) {

  #bag-calendar-app {
    padding: 0 5px;
  }

  .bag-next {
    min-height: 0;

    border-radius: 14px;
  }

  .bag-next-icon {
    width: 78px;
    min-width: 78px;
  }

  .bag-next-icon svg {
    width: 43px;
    height: 43px;
  }

  .bag-next-content {
    padding: 16px 13px;
  }

  .bag-next-label {
    font-size: 12px;
  }

  .bag-next-date {
    font-size: 19px;
  }

  .bag-next-time {
    margin: 6px 0 10px;

    font-size: 27px;
  }

  .bag-badge {
    padding: 6px 9px;

    font-size: 10px;
  }

  .bag-section-title {
    font-size: 20px;
  }

  .bag-day-title {
    font-size: 15px;
  }

  .bag-event {
    min-height: 86px;
  }

  .bag-event-time {
    width: 82px;
    min-width: 82px;

    padding: 7px;

    font-size: 16px;
  }

  .bag-event-body {
    gap: 8px;

    padding: 10px 42px 10px 9px;
  }

  .bag-event-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    padding: 6px;
  }

  .bag-event-title {
    font-size: 15px;
  }

  .bag-event-desc {
    font-size: 11px;
  }

  .bag-event-right {
    right: 7px;

    width: 30px;
    height: 30px;
  }

  .bag-legend {
    gap: 10px;

    padding: 12px;
  }
}

