/* Variables globales + reset — charte Moualimy (teal/or, Montserrat) */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");

:root {
  --color-bg: #f5f8f8;
  --color-surface: #ffffff;
  --color-text: #1c2b2b;
  --color-text-muted: #5a6b6b;
  --color-border: #e2e8e8;

  --color-teal: #267c7e;
  --color-teal-dark: #1a9da3;
  --color-gold: #c9a84c;
  --color-danger: #c0392b;
  --color-success: #2e8b57;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 2px 12px rgba(28, 43, 43, 0.08);
  --shadow-lift: 0 12px 32px rgba(28, 43, 43, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-teal); }

img { max-width: 100%; display: block; }

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  width: 100%;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal));
  color: #fff;
  box-shadow: 0 8px 20px rgba(38, 124, 126, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-teal);
  border: 1.5px solid var(--color-teal);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  width: auto;
  padding: 10px 14px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--color-text);
}

input, textarea, select {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
  background: #fff;
  color: var(--color-text);
}
input:focus, textarea:focus, select:focus { border-color: var(--color-teal); }
textarea { resize: vertical; min-height: 90px; }

.field { margin-bottom: 18px; }
.field-hint { font-size: 12.5px; color: var(--color-text-muted); margin-top: 6px; }
.field-error { font-size: 12.5px; color: var(--color-danger); margin-top: 6px; display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--color-danger); }
.field.has-error .field-error { display: block; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in srgb, var(--color-teal) 12%, white);
  color: var(--color-teal);
}
