@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;700&display=swap');

/* ==========================================================================
   1. VARIABLES GLOBALES
   ========================================================================== */

:root {
  --primary-bg-color: #1c2330;
  --header-bg-color: #111111;
  --color-gris: #3a3b47;
  --color-gris-blanc: #95969d;
  --color-gris-noir: #33343C;
  --border-color-nav: #9E9E9E;
  --white-color: #ffffff;
  --blue-color: #1257D5;
  --light-green: #30E64B;
  --footer-color: #1C1818;
}


/* ==========================================================================
   2. RESET DE BASE
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--primary-bg-color);
  font-family: "Source Serif 4", sans-serif;
}


/* ==========================================================================
   3. HEADER / NAVBAR
   ========================================================================== */

.navbar {
  background-color: var(--header-bg-color);
  padding: 0.5rem 1rem;
}

.logo-img {
  height: 40px;
}

/* Barre de recherche */
.search-bar {
  max-width: 600px;
}

.search-group {
  width: 100%;
}

.search-bar .input-group-text {
  background-color: var(--primary-bg-color);
  border-color: var(--color-gris);
  border-right: 0;
}

.input-group .input-search-bar {
  background-color: var(--primary-bg-color) !important;
  color: var(--white-color) !important;
  border-color: var(--color-gris);
}

.input-search-bar::placeholder {
  color: var(--color-gris-blanc) !important;
}

/* Liens de navigation */
.navbar .nav-link {
  color: var(--white-color);
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--blue-color);
}

/* Bouton d'ajout */
.nav-add-btn {
  border-color: var(--blue-color);
  color: var(--white-color);
}

.nav-add-btn:hover {
  background-color: var(--blue-color);
  color: var(--white-color);
}

/* Avatar profil */
.home-profile {
  padding-right: 0.5rem;
}

.home-profile img {
  object-fit: cover;
}



/* ==========================================================================
   4. HERO / SECTION D'INTRODUCTION
   ========================================================================== */

.hero-section {
  background: linear-gradient(to bottom, #2a3f65, #1c2330);
  padding: 80px 40px;
  padding-bottom: 1rem;
}

.blockquote {
  font-weight: bold;
  margin-top: 2rem;
}

.blockquote-footer {
  font-weight: lighter;
}

.intro-text .intro-description {
  margin-top: 1rem;
}

.join-button {
  margin-top: 1rem;
  margin-bottom: 1rem;
  height: 77px;
  width: 400px;
}


/* ==========================================================================
   5. ALBUMS / POPULAIRES
   ========================================================================== */

.card_populaire {
  background-color: var(--color-gris);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  max-width: 1417px;
  margin: 0 auto;
}

.card_populaire .title {
  color: var(--white-color);
}

.card_populaire .artist {
  color: var(--white-color);
}

.populaire h2 {
  font-weight: bold;
  margin: 0 auto;
}

.album img {
  max-width: 175px;
  max-height: 175px;
}

.album .title {
  padding-top: 1rem;
  margin-bottom: 0;
}

.album .artist {
  color: var(--color-gris-blanc);
  margin-bottom: 1rem;
}

.mx-auto {
  max-width: 1500px;
}


/* ==========================================================================
   6. FONCTIONNALITÉS
   ========================================================================== */

.fonctionnalite {
  max-width: 1500px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.fonctionnalite h2 {
  margin-bottom: 1.5rem;
}

.card_fonction {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card_fonction .card {
  background-color: var(--color-gris);
  border: none;
  border-radius: 16px;
  padding: 1.5rem;
  color: var(--color-gris-blanc);
  min-height: 180px;
}

.card_fonction .card .logo {
  background-color: var(--color-gris-noir);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.card_fonction .card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  color: var(--color-gris-blanc);
}


/* ==========================================================================
   7. NEWS / LISTES / AVIS
   ========================================================================== */

.card_listes_populaires {
  background-color: var(--color-gris);
  border-radius: 12px;
}

.news-card {
  background-color: var(--color-gris);
  border-radius: 12px;
}

.news-container {
  border-radius: 12px;
}

.news-container-title {
  margin-top: 2rem;
  padding-top: 2rem;
}

.news-container-title h2 {
  margin-bottom: 0;
}

.border-secondary {
  margin-top: 0;
}

.news-container-title a {
  text-decoration: none;
}

.news-container-content p {
  color: var(--color-gris-blanc);
}

/* Section Avis */
.avis-container-title {
  margin-top: 2rem;
  padding-top: 2rem;
}

.avis-container-title a {
  text-decoration: none;
}

.avis-card {
  background-color: var(--color-gris);
  border-radius: 12px;
  width: auto;
  height: 680px;
}

.avis-card img {
  width: 129px;
  height: 129px;
  padding-top: 1rem;
}

.user-profile .profile {
  background-color: var(--color-gris-noir);
  border-radius: 12px;
  margin-top: 2rem;
}

.profile-picture img {
  padding-left: 1rem;
  padding-bottom: 1rem;
  max-width: fit-content;
  max-height: fit-content;
}

.date-commentaire p {
  color: var(--color-gris-blanc);
}

.like img,
.comment img {
  width: 20px;
  height: 20px;
  padding-top: 0;
}

.avis-text p {
  color: var(--color-gris-blanc);
}

.profile-name p {
  color: var(--color-gris-blanc);
}

.artist p {
  color: var(--color-gris-blanc);
}

.suite-avis {
  padding-bottom: 2.5rem;
}

.suite-avis a {
  text-decoration: none;
}

/* Cartes listes populaires */
.list-cards .col-6 .card-listes-populaires {
  background-color: var(--color-gris) !important;
}

.card-body .header-card img {
  width: 193px;
  height: 193px;
  object-fit: cover;
  padding: 1rem;
}

.card-body .text-header-card {
  padding-top: 1rem;
}

.card-body .text-header-card h5,
.card-body .text-header-card p a {
  color: var(--light-green);
}

.card-body .text-header-card p {
  color: var(--color-gris-blanc);
}

/* Profils dans listes */
.profile-container .profile img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.profile .text-profile-card a {
  color: var(--light-green);
}

.profile .text-profile-card p {
  color: var(--color-gris-blanc);
}

.profile-container p {
  color: var(--color-gris-blanc);
}


/* ==========================================================================
   8. AUTRES ÉLÉMENTS
   ========================================================================== */

.parcourir_menu .navbar-nav .nav-item .nav-link {
  background-color: var(--color-gris-blanc);
  max-width: fit-content;
  border-radius: 12px;
  padding: 1rem;
}

.d-flex h3 {
  font-weight: bold;
  font-size: 1rem;
}

.plus a {
  text-decoration: none;
  color: var(--color-gris-blanc);
}

hr.solid {
  border-top: 2px solid var(--color-gris-blanc);
  margin-left: 5rem;
  margin-right: 5rem;
}

.nav-avis .nav-button .navigation {
  background-color: var(--color-gris);
}


/* ===================================
  FOOTER
  =================================== */

footer {
  background-color: var(--footer-color);
  color: white;
  padding: 60px 20px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-color);
}

.footer-section p {
  font-size: 14px;
  line-height: 1.8;
  color: #ccc;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--blue-color);
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-block;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12px;
}

.social-link:hover {
  color: var(--blue-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #999;
  font-size: 12px;
}


/* ==========================================================================
   10. RESPONSIVE - TABLETTE (max-width: 992px)
   ========================================================================== */

@media (max-width: 992px) {

  .hero-section {
    padding: 40px 20px;
  }

  .hero-section h1 {
    font-size: 1.4rem;
  }

  .join-button {
    width: 100%;
    max-width: 400px;
    font-size: 1.4rem !important;
    height: auto;
    padding: 12px;
  }

  .card_fonction {
    grid-template-columns: repeat(2, 1fr);
  }

  .avis-card {
    height: auto;
  }

  .news-img {
    width: 100% !important;
    height: 220px;
  }
}

/* ==========================================================================
   Add +
   ========================================================================== */

   .add-container{
    position:fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
   }

   .add-card{
    background-color: var(--primary-bg-color)!important;
    max-width: fit-content;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
   }

   .add-container.show{
    pointer-events: auto;
    opacity: 1;
   }




/* ==========================================================================
   11. RESPONSIVE - MOBILE (max-width: 576px)
   ========================================================================== */

@media (max-width: 576px) {

  .hero-section {
    padding: 30px 15px;
  }

  .hero-section h1 {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .join-button {
    width: 100%;
    font-size: 1.1rem !important;
    height: auto;
    padding: 10px;
  }

  .intro-description p {
    font-size: 0.85rem;
  }

  .album img {
    max-width: 130px;
    max-height: 130px;
  }

  .card_populaire {
    padding: 1rem;
    gap: 1rem !important;
  }

  .card_fonction {
    grid-template-columns: 1fr;
  }

  .avis-card {
    height: auto;
  }

  .avis-card img {
    width: 90px;
    height: 90px;
  }

  .avis-card .footer-card .like img,
  .footer-card .comment img {
    width: 20px;
    height: 20px;
  }

  .artist-album h4,
  .artist-album h3 {
    font-size: 1rem !important;
  }

  .date_album h3 {
    font-size: 0.85rem !important;
  }

  .description-avis {
    font-size: 0.9rem !important;
  }

  .news-img {
    width: 100% !important;
    height: 180px;
  }

  .news-container-content h3 {
    font-size: 1.1rem !important;
  }

  .card-body .header-card img {
    width: 100px !important;
    height: 100px !important;
  }

  .footer-links li a {
    font-size: 1.2rem !important;
  }

  .footer-links {
    justify-content: center !important;
    text-align: center;
  }

  .copyright p {
    font-size: 0.8rem !important;
    text-align: center;
  }

  .d-flex.flex-wrap h3 {
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
}
