/* ===================================================================== */
/* PASSION AUTO 85 — Feuille de style : cookie-banner.css                */
/* --------------------------------------------------------------------- */
/* Description :                                                         */
/*   Styles CSS pour le bandeau de gestion des cookies du site BMW       */
/*   Passion Auto 85. Gère l’affichage, les boutons, la responsivité,    */
/*   l’accessibilité, etc.                                               */
/*   À utiliser pour personnaliser l’apparence du bandeau cookies.       */
/* --------------------------------------------------------------------- */
/* Structure :                                                           */
/*   1. Structure et positionnement du bandeau                           */
/*   2. Styles des boutons et liens                                      */
/*   3. Media queries et responsive                                      */
/* --------------------------------------------------------------------- */
/* Auteur : 0xcyberlitech                                                */
/* Date de création : 24/12/2025                                         */
/* Dernière modification : 29/12/2025                                    */
/* ===================================================================== */

/* ===================================================================== */
/* 1. STRUCTURE ET POSITIONNEMENT DU BANDEAU                             */
/*    Structure générale et positionnement du bandeau cookies            */
/* ===================================================================== */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 42, 56, 0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.popup-content {
  background: #fff;
  color: #222;
  max-width: 95vw;
  width: 400px;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(30, 144, 255, 0.18);
  position: relative;
  margin: auto;
}
.popup-title {
  font-size: 1.5rem;
  color: #4fc3f7;
  text-align: center;
  margin-bottom: 1.2rem;
}
.popup-text {
  font-size: 1.05rem;
  line-height: 1.7;
}
.mb-1-2 {
  margin-bottom: 1.2rem;
}
.popup-list {
  font-size: 1.05rem;
  line-height: 1.7;
}
.pl-1-2 {
  padding-left: 1.2rem;
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================================== */
/* 2. STYLES DES BOUTONS ET LIENS                                        */
/*    Styles pour les boutons, liens, CTA du bandeau                     */
/* ===================================================================== */
#cookie-banner .cookie-link {
  color: var(--bmw-blue, #4fc3f7);
  font-weight: 600;
  text-decoration: underline;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  margin-left: 12px;
  transition: color 0.2s;
}
#cookie-banner .cookie-link:hover {
  color: #fff;
  background: var(--bmw-blue, #4fc3f7);
  border-radius: 6px;
  padding: 2px 8px;
}
#cookie-banner .cookie-btn {
  min-width: 120px;
  padding: 8px 20px;
  border-radius: 8px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin: 0 4px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.08);
}
#cookie-banner .cookie-btn.accept {
  background: var(--bmw-blue, #4fc3f7);
  color: #fff;
  border: 1px solid var(--bmw-blue, #4fc3f7);
}
#cookie-banner .cookie-btn.accept:hover {
  background: #1e2a38;
  color: var(--bmw-blue, #4fc3f7);
}
#cookie-banner .cookie-btn.refuse {
  background: #e6001f;
  color: #fff;
  border: 1px solid #e6001f;
}
#cookie-banner .cookie-btn.refuse:hover {
  background: #fff;
  color: #e6001f;
}

/* ===================================================================== */
/* 3. MEDIA QUERIES ET RESPONSIVE                                        */
/*    Adaptation du bandeau pour chaque écran                            */
/* ===================================================================== */
#cookie-banner .cookie-banner-text br.responsive-break {
  display: none;
}
@media (max-width: 600px) {
  #cookie-banner .cookie-banner-text br.responsive-break {
    display: inline;
  }
  #cookie-banner #cookies-link {
    display: block;
    text-align: center;
    width: 100%;
    margin: 8px auto 0 auto;
  }
}
#cookie-banner .cookie-banner-text br {
  display: none;
}
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(
    135deg,
    var(--carbon-black) 0%,
    var(--carbon-dark) 100%
  ) !important;
  color: #fff;
  border-top: 2px solid var(--bmw-blue);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12),
    0 0 16px 2px rgba(30, 144, 255, 0.18), 0 -2px 12px 0px #1e90ff66;
  z-index: 9999;
  padding: 16px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.95rem;
}
#cookie-banner span,
#cookie-banner a,
#cookie-banner button {
  margin: 0;
  padding: 0;
}
#cookie-banner button {
  min-width: 120px;
  text-align: center;
  margin: 0 4px;
}
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 0.75rem;
    padding: 12px 4px;
  }
  #cookie-banner button {
    width: 100%;
    margin: 0;
  }
  #cookie-banner a {
    margin-left: 0 !important;
  }
  #cookie-banner .cookie-banner-text {
    display: block;
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }
  #cookie-banner #privacy-link {
    display: block;
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }
}
