/* Harmonisation des liens du footer */
.footer-links a,
.footer-links a:visited {
  color: #4fc3f7 !important;
  text-decoration: underline !important;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-links a:focus {
  color: #1976d2 !important;
  text-decoration: underline !important;
}
/* Responsive popups footer */
#privacy-popup > div,
#cookies-popup > div {
  max-width: 98vw;
  width: 98vw;
  min-width: 0;
  box-sizing: border-box;
  padding: 1.2rem 0.7rem;
  font-size: 1rem;
  overflow-y: auto;
  max-height: 90vh;
}

@media (max-width: 600px) {
  #privacy-popup > div,
  #cookies-popup > div {
    max-width: 100vw;
    width: 100vw;
    border-radius: 0;
    padding: 1rem 0.3rem;
    font-size: 0.98rem;
    max-height: 98vh;
  }
  #privacy-popup,
  #cookies-popup {
    align-items: flex-start;
    justify-content: flex-start;
  }
}
/* PASSION AUTO 85 - Base CSS */

/* Polices locales (identique Google Fonts) */
@font-face {
  font-family: "Montserrat";
  src: url("../../Polices/montserrat-v31-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../../Polices/montserrat-v31-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("../../Polices/orbitron-v35-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("../../Polices/orbitron-v35-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../../Polices/roboto-v49-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../../Polices/roboto-v49-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

#scroll-progress-bar {
  border: none;
  background-color: rgba(255, 255, 255, 0.7) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 0%;
  height: 5px !important;
  z-index: 2147483647 !important;
  background: linear-gradient(
    90deg,
    #00aeef 0%,
    #2e3192 33%,
    #6e1e7b 66%,
    #e6001f 100%
  ) !important;
  box-shadow: 0 0 8px 2px #e6001f, 0 0 12px 3px #00aeef, 0 0 8px 2px #6e1e7b !important;
  border-radius: 0 !important;
  transition: width 0.2s ease !important;
  pointer-events: none;
  display: block;
}

.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.7) 0%,
      rgba(30, 144, 255, 0.08) 100%
    ),
    url("../../images/bg-bmw.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.95) contrast(1.08) saturate(1.1);
  pointer-events: none;
}

.page-layout,
.main-container,
.sidebar-nav {
  position: relative;
  z-index: 1;
}

:root {
  --bmw-blue: #00aeef;
  --bmw-dark-blue: #0066cc;
  --bmw-light-blue: #87ceeb;
  --carbon-black: #0a0a0a;
  --carbon-dark: #1a1a1a;
  --carbon-medium: #2a2a2a;
  --silver: #c0c0c0;
  --red-accent: #ff4444;
  --gold-accent: #ffd700;
  --font-primary: "Orbitron", monospace;
  --font-secondary: "Roboto", sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-bmw: 0 0 20px rgba(30, 144, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-secondary);
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #16213e 25%,
    #0f3460 50%,
    #16213e 75%,
    #1a1a2e 100%
  );
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

#privacy-popup,
#cookies-popup {
  display: none !important;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 42, 56, 0.85);
  z-index: 99999 !important;
  align-items: center;
  justify-content: center;
}
#privacy-popup.active,
#cookies-popup.active {
  display: flex !important;
}
#privacy-popup > div,
#cookies-popup > div {
  background: #fff;
  color: #222;
  max-width: 95vw;
  width: 400px;
  min-width: 220px;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(30, 144, 255, 0.18);
  position: relative;
  margin: auto;
}
@media (max-width: 600px) {
  #privacy-popup > div,
  #cookies-popup > div {
    width: 96vw;
    min-width: 0;
    max-width: 98vw;
    padding: 1.2rem 0.7rem;
    font-size: 0.98em;
    border-radius: 12px;
  }
  #privacy-popup h2,
  #cookies-popup h2 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }
  #privacy-popup ul,
  #cookies-popup ul {
    padding-left: 0.7rem;
    font-size: 0.98em;
  }
  #privacy-popup button,
  #cookies-popup button {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
  }
}
