@import url("../fonts/fonts.css");

/* ==========================================================================
   Kate and Me - Pone
   Reprise statique du site kateandme.73bpm.com
   Palette d'origine : fond #303030, texte #f5f5f5, header #000,
   footer #3e3e3e, bas de page #111.
   ========================================================================== */

:root {
  --bg:            #303030;
  --text:          #f5f5f5;
  --text-dim:      #c9c9c9;
  --accent:        #ffffff;
  --header-bg:     #000000;
  --footer-bg:     #3e3e3e;
  --copyright-bg:  #111111;
  --panel:         rgba(0, 0, 0, .49);
  --panel-strong:  rgba(0, 0, 0, .62);
  --rule:          rgba(255, 255, 255, .14);
  --radius:        4px;
  --inner:         1170px;
  --font:          Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head:     "Roboto Condensed", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("../img/kate-and-me-pone-album-wall-background.jpg");
  background-position: center top;
  background-repeat: repeat;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .6em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.inner {
  width: 100%;
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Barre de langue ------------------------------------------------------ */

.topbar {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switch a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: background-color .15s ease, color .15s ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  background: rgba(255, 255, 255, .1);
  color: var(--accent);
  text-decoration: none;
}

.lang-switch [aria-current="true"] {
  background: rgba(255, 255, 255, .16);
  color: var(--accent);
}

.lang-switch img {
  width: 16px;
  height: 11px;
  flex: none;
}

.social-links {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  color: var(--text-dim);
  transition: background-color .15s ease, color .15s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: rgba(255, 255, 255, .12);
  color: var(--accent);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* --- En-tete -------------------------------------------------------------- */

.site-header {
  background: var(--header-bg);
  text-align: center;
  padding: 26px 0;
}

.site-header .logo {
  margin: 0;
  font-size: 0;
}

.site-header img {
  display: inline-block;
  width: 455px;
  max-width: 100%;
  height: auto;
}

/* --- Sections ------------------------------------------------------------- */

main { padding: 20px 0 0; }

.section { margin-bottom: 30px; }

.panel {
  background: var(--panel);
  border-radius: var(--radius);
}

.panel--banner { overflow: hidden; }

.panel--banner img { width: 100%; }

.rule {
  height: 1px;
  margin: 50px 0;
  border: 0;
  background: linear-gradient(90deg,
    transparent, rgba(255, 255, 255, .28) 20%,
    rgba(255, 255, 255, .28) 80%, transparent);
}

/* --- Texte de presentation, 3 colonnes ------------------------------------ */

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 32px;
  text-align: justify;
}

.intro .signature {
  margin: 20px 0 0;
  font-size: 19px;
  text-align: right;
}

/* --- Bloc album : pochette + telechargements ------------------------------ */

.album {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.album__cover img { border-radius: var(--radius); }

.album__side {
  background: var(--panel-strong);
  border-radius: var(--radius);
  padding: 28px;
}

.credits-box {
  position: relative;
  margin-bottom: 26px;
  padding: 16px 18px 16px 52px;
  border: 1px solid #b2dba1;
  border-radius: var(--radius);
  background: #dff0d8;
  color: #3c763d;
  font-size: 17px;
  line-height: 1.5;
}

.credits-box::before {
  content: "\266A";
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 22px;
  line-height: 1;
}

.album__title {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: var(--accent);
}

.downloads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-download {
  display: inline-block;
  min-width: 260px;
  padding: 11px 22px;
  border: 1px solid;
  border-color: #8dc5da #76b7cf #63abc7;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #abe4f8, #6fcef3);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25), inset 0 1px 0 #c0ebfa;
  color: #1e4657;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 0 #b6e6f9;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}

.btn-download:hover,
.btn-download:focus-visible {
  filter: brightness(1.06);
  text-decoration: none;
}

.btn-download:active { transform: translateY(1px); }

.btn-download small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: .75;
}

/* --- Bloc ecoute ---------------------------------------------------------- */

.listen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.listen__heading {
  margin: 0 0 14px;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--accent);
}

.listen__art img { border-radius: var(--radius); }

/* --- Lecteur audio -------------------------------------------------------- */

.player {
  background: var(--panel-strong);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.player__now {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--rule);
}

.player__cover {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: var(--radius);
}

.player__meta { min-width: 0; }

.player__track {
  margin: 0;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent);
}

.player__artist {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}

.player__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.player__btn:hover { background: rgba(255, 255, 255, .13); }

.player__btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  pointer-events: none;
}

.player__btn--play {
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #111;
}

.player__btn--play:hover { background: #e2e2e2; }

.player__btn--play svg { width: 21px; height: 21px; }

.player__btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, .2);
  color: var(--accent);
}

.player__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-dim);
}

.player__volume {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.player__volume svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: var(--text-dim);
}

/* Curseurs (progression + volume) */
.slider {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.slider--seek { flex: 1; min-width: 0; }
.slider--volume { width: 84px; flex: none; }

.slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 0%),
              rgba(255, 255, 255, .22) var(--fill, 0%));
}

.slider::-moz-range-track {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
}

.slider::-moz-range-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--accent);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

.slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

/* Liste des pistes */
.player__list {
  max-height: 455px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  counter-reset: track;
}

.player__list li { counter-increment: track; }

.player__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease;
}

.player__item:hover { background: rgba(255, 255, 255, .07); }

.player__item::before {
  content: counter(track, decimal-leading-zero);
  flex: none;
  min-width: 22px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-dim);
}

.player__item[aria-current="true"] {
  background: rgba(255, 255, 255, .12);
  color: var(--accent);
  font-weight: 700;
}

.player__item[aria-current="true"]::before {
  content: "\25B8";
  color: var(--accent);
}

.player__item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__item-time {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-dim);
}

.player__error {
  padding: 12px 16px;
  background: rgba(255, 0, 115, .14);
  color: #ffc4de;
  font-size: 13px;
}

/* --- Pied de page --------------------------------------------------------- */

.site-footer {
  margin-top: 50px;
  padding: 40px 0;
  background: var(--footer-bg);
}

.site-footer .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.site-footer dl {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer dt {
  color: var(--accent);
  font-weight: 700;
}

.site-footer dd {
  margin: 0 0 16px;
  color: var(--text-dim);
}

.site-footer dd:last-child { margin-bottom: 0; }

.site-footer__logo { justify-self: end; }

.copyright {
  padding: 16px 0;
  background: var(--copyright-bg);
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text-dim);
}

.copyright p { margin: 0; }

/* --- Retour en haut ------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .7);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, background-color .15s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover { background: rgba(0, 0, 0, .9); }

.to-top svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr 1fr; }
  .intro .signature { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .album,
  .listen,
  .site-footer .inner { grid-template-columns: 1fr; }

  .site-footer__logo { justify-self: start; }

  .listen__art { max-width: 520px; }

  .album__cover { max-width: 520px; }
}

@media (max-width: 680px) {
  .intro {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    text-align: left;
  }

  .rule { margin: 34px 0; }

  .album__side { padding: 22px 20px; }

  .album__title { font-size: 27px; }

  .btn-download {
    min-width: 0;
    width: 100%;
  }

  .site-header { padding: 18px 0; }

  .player__now { padding: 14px; }

  .player__cover { width: 60px; height: 60px; }

  .player__track { font-size: 17px; }

  .player__list { max-height: 340px; }

  .player__volume { display: none; }

  .to-top { right: 12px; }
}

@media (max-width: 420px) {
  .lang-switch a { padding: 5px 7px; }
  .topbar .inner { min-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
