/* VARIABLES CSS DARK MODE */
:root {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --text-primary: #333;
  --text-secondary: #666;
  --border-accent: #0076bf;
  --hero-bg: #0076bf;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --text-primary: #e5e7eb;
  --text-secondary: #d1d5db;
  --border-accent: #3b82f6;
  --hero-bg: #1e3a8a;
}

/* BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
}

.container {
  width: 100%;
  max-width: 600px;
  background: var(--bg-secondary);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-top: 4px solid var(--border-accent);
  transition: all 0.3s;
}

[data-theme="dark"] .container {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* EN-TÊTE */
.container h1 {
  text-align: center;
  color: var(--border-accent);
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* BOUTON RETOUR */
.back-btn {
  display: inline-block;
  margin-bottom: 25px;
  color: var(--border-accent);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  transition: color 0.3s;
}

.back-btn:hover {
  color: #005f99;
  text-decoration: underline;
}

/* STATUT */
.status {
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  border: 1px solid;
}

.status.success {
  background: rgba(16,185,129,0.1);
  color: #059669;
  border-color: #10b981;
}

.status.error {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  border-color: #ef4444;
}

/* FORMULAIRE */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.field input,
.field textarea {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(0,118,191,0.1);
}

[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea {
  border-color: #4b5563;
  background: #374151;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-secondary);
}

/* BOUTON ENVOI */
.contact-form button {
  align-self: stretch;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  background: var(--border-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover:not(:disabled) {
  background: #005f99;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0,118,191,0.4);
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 30px 20px;
    margin: 10px;
    border-radius: 8px;
  }
  
  .container h1 {
    font-size: 1.5rem;
  }
}

/* DARK MODE - ELEMENTS SPÉCIFIQUES */
[data-theme="dark"] .field label {
  color: var(--text-primary);
}

/* SCROLL */
html {
  scroll-behavior: smooth;
}
