/* QN Centre de contrôle — compatible Safari / iOS 10 */
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0c0e10;
  color: #f5f4f1;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

button {
  font: inherit;
}

button:focus {
  outline: 2px solid #f07a35;
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 768px;
  min-height: 560px;
  background:
    radial-gradient(circle at 16% -10%, rgba(240, 122, 53, 0.13), transparent 34%),
    linear-gradient(145deg, #15181b 0%, #0d0f11 62%, #121416 100%);
}

.app-shell:after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(240, 122, 53, 0.12);
  border-radius: 50%;
  -webkit-box-shadow: 0 0 0 45px rgba(240, 122, 53, 0.025), 0 0 0 90px rgba(240, 122, 53, 0.015);
  box-shadow: 0 0 0 45px rgba(240, 122, 53, 0.025), 0 0 0 90px rgba(240, 122, 53, 0.015);
  content: "";
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 3;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  height: 102px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 14, 16, 0.54);
}

.brand {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 76px;
  height: 76px;
  margin-right: 15px;
  object-fit: contain;
}

.brand-copy {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.brand-copy small {
  margin-top: 6px;
  color: #8c9299;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.weather {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  min-width: 278px;
  height: 62px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  background: rgba(25, 28, 31, 0.82);
}

.weather-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-right: 11px;
  color: #f0a04f;
}

.weather-icon svg {
  display: block;
  width: 42px;
  height: 42px;
  overflow: visible;
}

.weather-icon circle,
.weather-rays {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}

.weather-cloud {
  fill: #263a48;
  stroke: #76a9c7;
  stroke-width: 2;
}

.weather-copy {
  display: block;
  min-width: 0;
}

.weather-copy strong,
.weather-copy small {
  display: block;
}

.weather-copy strong {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.weather-copy small {
  max-width: 145px;
  margin-top: 6px;
  overflow: hidden;
  color: #969ca2;
  font-size: 10px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-badge {
  margin-left: auto;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(240, 122, 53, 0.12);
  color: #e8905e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clock {
  min-width: 250px;
  text-align: right;
}

.clock strong {
  display: block;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
}

.clock span {
  display: block;
  margin-top: 7px;
  color: #969ca2;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.main-content {
  position: absolute;
  z-index: 2;
  top: 102px;
  right: 0;
  bottom: 39px;
  left: 0;
  padding: 27px 42px 24px;
}

.home-screen,
.detail-screen {
  height: 100%;
}

.section-heading {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  height: 66px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #f07a35;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.accent-dot {
  color: #f07a35;
}

.system-status {
  margin: 0 0 4px;
  color: #8c9299;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.system-status span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #75c896;
  -webkit-box-shadow: 0 0 0 4px rgba(117, 200, 150, 0.11);
  box-shadow: 0 0 0 4px rgba(117, 200, 150, 0.11);
}

.tile-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  width: calc(100% + 14px);
  height: calc(100% - 88px);
  margin: -7px;
}

.tile {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: calc(25% - 14px);
  height: calc(50% - 14px);
  min-height: 132px;
  margin: 7px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  background: #191c1f;
  color: #f5f4f1;
  text-align: left;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: background 120ms ease, -webkit-transform 120ms ease, border-color 120ms ease;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.tile:before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #f07a35;
  content: "";
  opacity: 0.86;
}

.tile:after {
  position: absolute;
  right: -38px;
  bottom: -54px;
  width: 125px;
  height: 125px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  content: "";
}

.tile:active {
  border-color: rgba(240, 122, 53, 0.6);
  background: #22262a;
  -webkit-transform: scale(0.975);
  transform: scale(0.975);
}

.tile-icon {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 51px;
  flex: 0 0 51px;
  width: 51px;
  height: 51px;
  margin-right: 15px;
  border-radius: 12px;
  background: rgba(240, 122, 53, 0.12);
  color: #f18a4f;
}

.tile-icon svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.tile-content {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
}

.tile-content strong,
.tile-content small {
  display: block;
}

.tile-content strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.18;
}

.tile-content small {
  margin-top: 8px;
  color: #8d9399;
  font-size: 11px;
  line-height: 1.25;
}

.tile-arrow {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 12px;
  color: #52585e;
  font-size: 25px;
  font-weight: 300;
}

.tile-api:before { background: #db9a4c; }
.tile-api .tile-icon { color: #e6a85d; background: rgba(219, 154, 76, 0.12); }
.tile-qn:before { background: #f07a35; }
.tile-home:before { background: #75c896; }
.tile-home .tile-icon { color: #75c896; background: rgba(117, 200, 150, 0.11); }
.tile-music:before { background: #c46bd6; }
.tile-music .tile-icon { color: #ca77da; background: rgba(196, 107, 214, 0.11); }
.tile-code:before { background: #66a7df; }
.tile-code .tile-icon { color: #70b0e7; background: rgba(102, 167, 223, 0.11); }
.tile-calendar:before { background: #e36363; }
.tile-calendar .tile-icon { color: #e97373; background: rgba(227, 99, 99, 0.11); }
.tile-photos:before { background: #5bc0b1; }
.tile-photos .tile-icon { color: #62cbbb; background: rgba(91, 192, 177, 0.11); }
.tile-tools:before { background: #8b929b; }
.tile-tools .tile-icon { color: #a7adb4; background: rgba(139, 146, 155, 0.12); }

.back-button {
  position: absolute;
  left: 42px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  height: 48px;
  padding: 0 17px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: #1a1d20;
  color: #f5f4f1;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.back-button:active {
  background: #292d31;
}

.back-arrow {
  margin: -2px 7px 0 0;
  color: #f07a35;
  font-size: 31px;
  line-height: 1;
}

.topbar.is-detail .brand {
  margin-left: 145px;
}

.detail-screen {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
  padding-top: 18px;
}

.detail-intro {
  width: 35%;
  padding: 37px 48px 0 8px;
}

.detail-intro h1 {
  max-width: 300px;
  font-size: 37px;
  line-height: 1.08;
}

.detail-intro > p:last-child {
  max-width: 290px;
  margin: 23px 0 0;
  color: #9ca1a7;
  font-size: 15px;
  line-height: 1.55;
}

.detail-panel {
  width: 65%;
  height: calc(100% - 12px);
  padding: 25px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(27, 30, 33, 0.94);
}

.stat-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  margin: 0 -6px 19px;
}

.stat {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  margin: 0 6px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: #141719;
}

.stat small,
.list-label {
  display: block;
  color: #858b91;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 9px;
  color: #f4f2ee;
  font-size: 25px;
  font-weight: 400;
}

.mock-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.mock-list li {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  min-height: 53px;
  padding: 11px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #dde0e2;
  font-size: 14px;
}

.mock-list li:first-child {
  border-top: 0;
}

.mock-list em {
  color: #858b91;
  font-size: 12px;
  font-style: normal;
}

.mock-list .status-ok {
  color: #75c896;
}

.album-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  min-height: 210px;
}

.album-art {
  position: relative;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 190px;
  flex: 0 0 190px;
  height: 190px;
  margin-right: 28px;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(140deg, #e27738, #3e2020 47%, #151719 48%);
  -webkit-box-shadow: 0 15px 40px rgba(0, 0, 0, 0.32);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.32);
}

.album-art:before,
.album-art:after {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.18);
  content: "";
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.album-art:before { width: 115px; height: 115px; top: 36px; left: 36px; }
.album-art:after { width: 62px; height: 62px; top: 62px; left: 62px; }

.track-info strong,
.track-info span,
.track-info small {
  display: block;
}

.track-info strong {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
}

.track-info span {
  margin-top: 8px;
  color: #b8bcc0;
  font-size: 16px;
}

.track-info small {
  margin-top: 17px;
  color: #f07a35;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer {
  position: absolute;
  z-index: 3;
  right: 42px;
  bottom: 0;
  left: 42px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  height: 39px;
  color: #555b61;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.is-hidden {
  display: none !important;
}

noscript {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 15px;
  background: #9a342d;
  color: #fff;
  text-align: center;
}

@media (max-width: 850px), (max-height: 620px) {
  .topbar { height: 84px; padding: 0 28px; }
  .main-content { top: 84px; padding: 18px 28px; }
  .brand-logo { width: 64px; height: 64px; margin-right: 12px; }
  .brand-copy strong { font-size: 20px; }
  .brand-copy small { font-size: 10px; }
  .weather { min-width: 240px; height: 56px; padding: 0 10px; }
  .weather-icon { width: 36px; height: 36px; margin-right: 8px; }
  .weather-icon svg { width: 36px; height: 36px; }
  .weather-copy small { max-width: 115px; }
  .weather-badge { display: none; }
  .section-heading { height: 55px; margin-bottom: 14px; }
  .tile-grid { height: calc(100% - 69px); }
  .tile { padding: 15px; }
  .tile-icon { width: 44px; height: 44px; -webkit-flex-basis: 44px; flex-basis: 44px; margin-right: 11px; }
  .tile-content strong { font-size: 15px; }
  .tile-content small { margin-top: 5px; }
  .back-button { left: 28px; }
  .footer { right: 28px; left: 28px; }
}

@media (orientation: portrait) {
  body:before {
    position: fixed;
    z-index: 99;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 70px;
    background: #0d0f11;
    color: #f5f4f1;
    content: "Veuillez tourner l’iPad en mode paysage";
    font-size: 24px;
    text-align: center;
  }
}
