:root {
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --accent: #ffffff;
  --accent-hover: #cccccc;
}

/* Animations communes */
@keyframes lavaLamp {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  25% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
  50% { border-radius: 30% 60% 40% 70% / 50% 60% 30% 60%; }
  75% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes move {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, 10px); }
  50% { transform: translate(-5px, 15px); }
  75% { transform: translate(-10px, -5px); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-100%); }
}

/* Styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #000000;
  color: #fff;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

/* Effets de fond */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02));
  z-index: -1;
  animation: move 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.01) 50%,
    rgba(255, 255, 255, 0) 100%);
  animation: lavaLamp 15s ease-in-out infinite;
  z-index: -1;
}

/* Layout commun */
.container {
  max-width: 900px;
  margin: 0 auto;
}

.glass-panel {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 40px;
  margin-bottom: 30px;
}

/* Typographie */
h1, h2 {
  text-align: center;
  font-weight: 300;
  letter-spacing: 1.5px;
}

h1 {
  font-size: 3em;
  margin-bottom: 40px;
  background: linear-gradient(to right, #fff, #999);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #fff;
}

h2 {
  font-size: 2em;
  margin: 40px 0 30px;
  color: #fff;
}

/* Formulaires */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.profile-item input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: #fff;
  font-size: 1em;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Boutons */
button {
  padding: 18px;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.08);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 600px) {
  body {
    padding: 20px 10px;
  }

  .glass-panel {
    padding: 25px;
    overflow: hidden;
  }

  h1 {
    font-size: 2.2em;
  }

  button {
    padding: 15px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px;
  }
}


.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  color: #fff !important;
  min-height: 10px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--accent) !important;
  border: none !important;
  border-radius: 20px !important;
  color: #000 !important;
  padding: 5px 25px 5px 10px !important;
  position: relative !important;
  margin: 5px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: relative !important;
  left: 100% !important;
  color: #000 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  font-size: 1em !important;
  line-height: 1 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  background: none !important;
  color: #000000 !important;
}

.select2-dropdown {
  background: #1a1a1a !important;
  border: 1px solid var(--glass-border) !important;
}

.select2-search__field {
  color: #fff !important;
}

.select2-results__option {
  color: #fff !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--accent) !important;
  color: #000 !important;
}

select {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 8px 12px !important;
  width: 100% !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='white'/%3E%3C/svg%3E") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
}

select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
}

select option {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 8px !important;
}

select option:hover,
select option:focus,
select option:active,
select option:checked {
  background-color: var(--accent) !important;
  color: #000 !important;
}


/* Ajustements spécifiques pour Safari */
@supports (-webkit-touch-callout: none) {
  button {
    background: rgba(255, 255, 255, 0.08) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  
  button:hover {
    background: rgba(255, 255, 255, 0.15) !important;
  }
}

/* Ajout d'un fallback pour backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
  .glass-panel {
    background: rgba(255, 255, 255, 0.15);
  }
}

/* Fix pour Firefox */
@-moz-document url-prefix() {
  select {
    padding-right: 25px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='white'/%3E%3C/svg%3E");
    background-position: right 5px center;
    background-repeat: no-repeat;
  }
}

/* Fix pour Safari */
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    .glass-panel {
      -webkit-backdrop-filter: blur(20px);
      background-color: rgba(255, 255, 255, 0.12);
    }
  }
}

.logo {
  display: block;
  margin: 0 auto;
  opacity: 0.9;
  max-width: 300px;
}