/* ════════════════════════════════════════════════════════════════════════════
   CONTACT — CSS (contact.css)
   Page standalone de contact (n'utilise pas base.html)
   ════════════════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════════════════
   VARIABLES
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --muted: #64748b;
  --text: #1e293b;
  --primary: #6366f1;
  --success: #22c55e;
  --danger: #ef4444;
  --accent: #8b5cf6;
  --border: #e2e8f0;
  --ring: rgba(99,102,241,.35);
}


/* ════════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(ellipse at top left, rgba(99,102,241,0.08), transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(139,92,246,0.08), transparent 50%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}


/* ════════════════════════════════════════════════════════════════════════════
   CONTAINER
   ════════════════════════════════════════════════════════════════════════════ */
.contact-container {
  background: var(--card);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 500px;
}


/* ════════════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════════════ */
.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.contact-header p {
  color: var(--muted);
  font-size: 0.95rem;
}


/* ════════════════════════════════════════════════════════════════════════════
   FORMULAIRE
   ════════════════════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

label .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  transition: all 0.2s ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}


/* ════════════════════════════════════════════════════════════════════════════
   BOUTON ENVOYER
   ════════════════════════════════════════════════════════════════════════════ */
.btn-send {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
  margin-top: 0.5rem;
}

.btn-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}


/* ════════════════════════════════════════════════════════════════════════════
   MESSAGES
   ════════════════════════════════════════════════════════════════════════════ */
.messages {
  margin-bottom: 1.5rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.message.error {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}


/* ════════════════════════════════════════════════════════════════════════════
   LIEN RETOUR
   ════════════════════════════════════════════════════════════════════════════ */
.back-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.back-link a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link a:hover {
  color: var(--primary);
}


/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .contact-container {
    padding: 1.75rem;
  }

  .contact-header h1 {
    font-size: 1.5rem;
  }
}