/* ========== RESET & FOND ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body {
  min-height: 100vh;
  background: #0c1222; /* Couleur ajustée pour correspondre au thème */
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: #e8eaff;
}

/* ===== RESET DES ÉLÉMENTS DE FORMULAIRE ===== */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button {
  cursor: pointer;
}

/* ===== RESET DES LIENS ET LISTES ===== */
a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ===== RESET DES MÉDIAS ===== */
img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== CLASSES UTILITAIRES ===== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tour actif - désactive le scroll */
body.tour-active {
  overflow: hidden !important;
}

body:not(.tour-active) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Désactive le scroll pendant une modale */
body.modal-open {
  overflow: hidden !important;
}

/* ===== VARIABLES CSS (thème global) ===== */
:root {
  --label-col: 26%;
  --plan-col: calc((100% - var(--label-col)) / 4);
  --c-accent: #18e7ff;
  --c-accent-2: #7a2bff;
  --c-text: #ffffff;
  --c-muted: #a8c6ff;
  --c-muted-2: #cfe8ff;
  --glass-border: 2.3px solid var(--c-accent);
  --glass-glow: 0 0 16px 3px rgba(24, 231, 255, 0.5);
  --input-border: 1.4px solid rgba(24, 231, 255, 0.22);
  --input-focus: 0 0 18px rgba(24, 231, 255, 0.25);
  --z-modal: 4000;
  --z-lang: 1100;
  --z-header: 1000;
  --z-cards: 900;
  --dashboard-padding: 2rem;
}

/* ===== Z-INDEX LAYERING ===== */
#main-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.lang-dropdown {
  position: relative;
  z-index: var(--z-lang);
}

.lang-dropdown.open .lang-list {
  position: absolute;
  z-index: var(--z-lang);
}

.novia-guide,
.safety-card {
  z-index: var(--z-cards) !important;
}

/* Protection contre débordements */
main, section, .settings-wrapper, .settings-content {
  max-width: 100% !important;
  overflow-x: hidden !important;
}
