/* ===================================================================== */
/* PASSION AUTO 85 — Feuille de style : base.css                         */
/* --------------------------------------------------------------------- */
/* Description :                                                         */
/*   Styles CSS de base pour l’ensemble du site BMW Passion Auto 85.     */
/*   Gère la structure, la typographie, les couleurs, les resets,        */
/*   l’accessibilité, etc.                                               */
/*   À utiliser pour définir les fondations visuelles du site.           */
/* --------------------------------------------------------------------- */
/* Structure :                                                           */
/*   1. Reset et accessibilité                                           */
/*   2. Variables et couleurs                                            */
/*   3. Typographie et polices                                           */
/*   4. Structure générale et layout                                     */
/*   5. Liens, boutons, éléments globaux                                 */
/*   6. Utilitaires et helpers                                           */
/* --------------------------------------------------------------------- */
/* Auteur : 0xcyberlitech                                                */
/* Date de création : 24/12/2025                                         */
/* Dernière modification : 29/12/2025                                    */
/* ===================================================================== */

/* ===================================================================== */
/* 1. RESET ET ACCESSIBILITÉ                                             */
/*    Réinitialisation des styles et accessibilité globale               */
/* ===================================================================== */

/* Message d'avertissement <noscript> commun à toutes les pages */
.noscript-warning {
      animation: noscript-blink 1.1s steps(2, start) infinite;
    text-transform: uppercase;
  background: #101a2b !important; /* Bleu foncé BMW M */
  color: #e6001f !important; /* Rouge BMW M */
  padding: 1.2em 1em;
  text-align: center;
  font-size: 1.18em;
  border-radius: 12px;
  margin: 1.5em auto 1em auto;
  max-width: 700px;
  box-shadow: 0 0 12px #00aeef99, 0 2px 16px #101a2b;
  border: 2.5px solid #00aeef; /* Bleu clair BMW M */
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px #e6001f55, 0 0 2px #fff;
  z-index: 99999;
  position: relative;
}

/* ===================================================================== */
/* 2. VARIABLES ET COULEURS                                              */
/*    Définition des variables CSS et couleurs principales               */
/* ===================================================================== */

/* Variables de couleurs et espacement du projet */
: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);
}

/* ===================================================================== */
/* 3. TYPOGRAPHIE ET POLICES                                             */
/*    Styles de base pour la typographie et les polices                  */
/* ===================================================================== */

/* Police Montserrat - Poids régulier */
@font-face {
  font-family: "Montserrat";
  src: url("../../Polices/montserrat-v31-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Police Montserrat - Poids bold */
@font-face {
  font-family: "Montserrat";
  src: url("../../Polices/montserrat-v31-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Police Orbitron - Poids régulier */
@font-face {
  font-family: "Orbitron";
  src: url("../../Polices/orbitron-v35-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Police Orbitron - Poids bold */
@font-face {
  font-family: "Orbitron";
  src: url("../../Polices/orbitron-v35-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Police Roboto - Poids régulier */
@font-face {
  font-family: "Roboto";
  src: url("../../Polices/roboto-v49-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Police Roboto - Poids bold */
@font-face {
  font-family: "Roboto";
  src: url("../../Polices/roboto-v49-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===================================================================== */
/* 4. STRUCTURE GÉNÉRALE ET LAYOUT                                       */
/*    Structure globale, containers, marges, etc.                        */
/* ===================================================================== */

/* Réinitialisation globale - tous les éléments */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HTML - hauteur et scroll smooth */
html {
  scroll-behavior: smooth;
  height: 100%;
}

/* Body - style et layout principal */
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;
}

/* Masquer les scrollbars */
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Image de fond fixe */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: url("../../images/fond/bg-bmw.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.95) contrast(1.08) saturate(1.1);
  pointer-events: none;
}

/* Conteneurs de page - positionnement z-index */
.page-layout,
.main-container,
.sidebar-nav {
  position: relative;
  z-index: 1;
}

/* ===================================================================== */
/* 5. LIENS, BOUTONS, ÉLÉMENTS GLOBAUX                                   */
/*    Styles pour liens, boutons, formulaires, etc.                      */
/* ===================================================================== */

/* Barre de progression du scroll */
#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;
}

/* Popups de confidentialité et cookies - conteneur */
#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;
}

/* Popups actives */
#privacy-popup.active,
#cookies-popup.active {
  display: flex !important;
}

/* Contenu des popups */
#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;
}

/* Liens du footer - styles de base */
.footer-links a,
.footer-links a:visited {
  color: #4fc3f7 !important;
  text-decoration: underline !important;
  transition: color 0.2s;
}

/* Liens du footer - survol */
.footer-links a:hover,
.footer-links a:focus {
  color: #1976d2 !important;
  text-decoration: underline !important;
}

/* ===================================================================== */
/* 6. UTILITAIRES ET HELPERS                                             */
/*    Classes utilitaires et helpers divers                              */
/* ===================================================================== */

/* Styles généraux pour les boutons */
.btn,
button,
input[type="submit"],
input[type="button"],
[role="button"] {
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: 0.3px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Mobile (600px et moins) */
@media (max-width: 600px) {
  /* Contenu des popups - mobile */
  #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;
  }

  /* Popups - alignement mobile */
  #privacy-popup,
  #cookies-popup {
    align-items: flex-start;
    justify-content: flex-start;
  }

  /* Titre des popups - mobile */
  #privacy-popup h2,
  #cookies-popup h2 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }

  /* Listes des popups - mobile */
  #privacy-popup ul,
  #cookies-popup ul {
    padding-left: 0.7rem;
    font-size: 0.98em;
  }

  /* Bouton de fermeture des popups - mobile */
  #privacy-popup button,
  #cookies-popup button {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
  }
}

/* Animation de clignotement pour les éléments sans script */
@keyframes noscript-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}