/* RESET ET STYLES DE BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

:root {
  --primary: #24881c;
  --primary-dark: #185a13;
  --primary-light: #3aaa3f;
  --secondary: #2d2d2d;
  --dark: #171717;
  --light: #f1f1f1;
  --danger: #b42b2b;
  --warning: #e67e22;
  --success: #27ae60;
  --accent: #75b934;
}

body {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), 
              url('/images/dayz-background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* CONTAINER PRINCIPAL */
.container {
  width: 100%;
  max-width: 550px;
  background-color: rgba(25, 25, 25, 0.95);
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid rgba(70, 70, 70, 0.5);
  padding: 30px;
  animation: fadeIn 0.4s ease-out forwards;
}

/* TITRES */
h1, h2, h3 {
  color: var(--primary-light);
  margin-bottom: 20px;
  text-align: center;
}

h1 {
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(58, 170, 63, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 25px;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--accent);
}

h2 {
  font-size: 1.5rem;
  margin-top: 30px;
}

h3 {
  font-size: 1.2rem;
  margin-top: 20px;
  color: #e0e0e0;
  font-weight: 400;
}

/* FORMULAIRE */
form {
  margin-bottom: 20px;
}

input, select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--light);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(58, 170, 63, 0.25);
}

/* Styles pour le select */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
  padding-right: 35px;
}

/* Labels */
label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #bbb;
  font-weight: 500;
}

/* CAPTCHA */
div:has(img[src="captcha.php"]) {
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

img[src="captcha.php"] {
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* BOUTONS */
.paypal-button, button {
  width: 100%;
  padding: 12px 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  margin: 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.paypal-button:hover, button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.paypal-button:active, button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Conteneur pour les boutons PayPal */
form[action="https://www.paypal.com/cgi-bin/webscr"] {
  margin-bottom: 15px;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MEDIA QUERIES */
@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 20px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  input, button, select {
    font-size: 0.9rem;
  }
}

/* PERSONNALISATION DE LA BARRE DE DÉFILEMENT */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}