#date{
  width:max-content;
  max-width:calc(100% - 36px);
  margin:2px auto 18px;
  padding:8px 15px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:999px;
  color:rgba(255,255,255,.92);
  background:rgba(255,255,255,.13);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15);
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-align:center;
  backdrop-filter:blur(14px) saturate(130%);
  -webkit-backdrop-filter:blur(14px) saturate(130%);
  animation:contentReveal .72s cubic-bezier(.2,.85,.24,1) both;
}

.card{
  position:relative;
  overflow:hidden;
  margin:0 18px 16px;
  padding:18px;
  border:1px solid var(--glass-line);
  border-radius:28px;
  color:var(--text-main);
  background:
    linear-gradient(160deg,rgba(29,64,92,.78),rgba(39,93,126,.60)),
    radial-gradient(circle at 12% 0%,rgba(255,255,255,.18),transparent 38%);
  box-shadow:var(--shadow-card),inset 0 1px 0 rgba(255,255,255,.20);
  opacity:0;
  transform:translate3d(0,12px,0);
  backdrop-filter:blur(24px) saturate(145%);
  -webkit-backdrop-filter:blur(24px) saturate(145%);
  animation:cardReveal .72s cubic-bezier(.2,.85,.24,1) forwards;
}

.card:nth-of-type(2){
  animation-delay:.08s;
}

.card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.10),transparent 52%);
}

.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  z-index:2;
  pointer-events:none;
  opacity:0;
  background:
    linear-gradient(
      108deg,
      transparent 18%,
      rgba(255,255,255,.08) 34%,
      rgba(196,235,255,.36) 48%,
      rgba(255,255,255,.10) 61%,
      transparent 78%
    );
  transform:translate3d(-125%,0,0);
  transition:opacity .35s ease;
}

.card.is-syncing::before{
  opacity:.55;
  animation:dataSyncShimmer 1.9s cubic-bezier(.45,0,.55,1) infinite;
}

.card.is-sync-waiting::before{
  opacity:.18;
  background:
    radial-gradient(circle at 50% 8%,rgba(192,233,255,.38),transparent 58%);
  transform:none;
}

.card > *{
  position:relative;
  z-index:1;
}

.card-top{
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:
    "title status"
    "options schedule";
  gap:10px 14px;
  align-items:center;
}

.status-wrap{
  display:grid;
  justify-items:center;
  gap:4px;
  grid-column:2;
  grid-row:1 / span 2;
  justify-self:end;
  min-width:128px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  background:rgba(255,255,255,.10);
  text-align:center;
}

.title-wrap{
  grid-area:title;
  display:flex;
  align-items:center;
  gap:8px;
}

.title-wrap img{
  width:30px;
  filter:drop-shadow(0 8px 14px rgba(12,42,82,.22));
}

.card-title{
  color:var(--text-strong);
  font-size:22px;
  font-weight:700;
  text-shadow:0 2px 14px rgba(0,0,0,.16);
}

.status-label{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:15px;font-weight:800;line-height:1.1;white-space:nowrap}.status-label::before{content:"";width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:currentColor;box-shadow:0 0 9px currentColor}.status-detail{max-width:190px;color:rgba(255,255,255,.86);font-size:11px;font-weight:650;line-height:1.3}.status-ouvert .status-label{color:#62e394}.status-prevision .status-label{color:#ffbf5d}.status-ferme .status-label{color:#ff7777}.status-hors-service .status-label{color:#d6dde8}

.card-middle{
  grid-area:options;
  display:flex;
  flex-wrap:wrap;
  gap:9px 11px;
  margin-top:0;
  align-self:end;
  color:rgba(255,255,255,.82);
  font-size:13px;
}

.badge{
  font-size:13px;
  font-weight:800;
  text-shadow:0 1px 10px rgba(0,0,0,.20);
}

.badge.oui{
  color:#33d17a;
}

.badge.non{
  color:#ff4d4d;
}

.badge.neutral{
  color:rgba(255,255,255,.58);
}

.card-info{
  margin-top:14px;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  color:#ffb23f;
  background:rgba(255,255,255,.10);
  font-size:13px;
  font-weight:700;
  line-height:1.45;
  white-space:pre-line;
  text-shadow:0 1px 10px rgba(0,0,0,.16);
}

.card-info:empty{
  display:none;
}

@keyframes dataSyncShimmer{
  0%{transform:translate3d(-125%,0,0);}
  58%,100%{transform:translate3d(125%,0,0);}
}

@media (max-width:600px){
  #date{
    margin-bottom:14px;
    padding:7px 13px;
  }

  .card{
    margin:0 14px 12px;
    padding:14px;
    border-radius:24px;
  }

  .card-top{
    grid-template-columns:minmax(0,1fr) 112px;
    grid-template-areas:
      "title status"
      "options options";
    gap:11px 10px;
  }

  .title-wrap{
    min-width:0;
    gap:7px;
  }

  .title-wrap img{
    width:27px;
    flex:0 0 auto;
  }

  .card-title{
    font-size:clamp(19px,6vw,22px);
    line-height:1.05;
  }

  .status-wrap{
    grid-column:auto;
    grid-row:auto;
    grid-area:status;
    justify-self:stretch;
    min-width:0;
    padding:6px 7px;
    border-radius:14px;
  }

  .status-label{
    font-size:13px;
  }

  .status-hors-service .status-label{
    font-size:12px;
  }

  .status-detail{
    max-width:100%;
    font-size:9px;
    line-height:1.2;
  }

  .card-middle{
    display:grid;
    grid-template-columns:auto auto auto auto;
    justify-content:start;
    align-items:center;
    gap:6px 9px;
    width:100%;
    font-size:12px;
    white-space:nowrap;
  }

  .badge{
    font-size:12px;
  }

  .card-info{
    margin-top:11px;
    padding:9px 11px;
    border-radius:15px;
    font-size:12px;
  }
}

@media (max-width:370px){
  .card-top{
    grid-template-columns:minmax(0,1fr) 104px;
  }

  .card-middle{
    gap:5px 7px;
    font-size:11px;
  }

  .badge{
    font-size:11px;
  }
}

@media (prefers-reduced-motion:reduce){
  .card.is-syncing::before{
    opacity:.18;
    background:
      radial-gradient(circle at 50% 8%,rgba(192,233,255,.38),transparent 58%);
    transform:none;
    animation:none !important;
  }
}
