:root {
  --bg: #171f2c;
  --card: #0b1220;
  --accent: #06b6d4;
  --muted: #94a3b8;
  --white: #e6eef6;
  --success: #22c55e;
  --error: #ef4444;
  --gray: #34495e;
  --darkgray: #2c3e50;
  --background-gradient: linear-gradient(178deg, #ffff33 10%, #3333ff);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body */
body {
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
}

/* Container */
.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 24px;
}

/* Header */
header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
}

h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

p.lead {
  color: var(--muted);
  font-size: 14px;
}

/* Grid matières */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
}

.subject {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-weight: 600;
}

.features {
  list-style-type: disc;
  margin-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* Flex section (méthode + planning) */
.flex-section {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.flex-section .card {
  flex: 1 1 250px;
}

/* Tarifs & Paiement */
.tarifs-section {
  margin-bottom: 32px;
}

.tarifs-section .card {
  background: rgba(6, 182, 212, 0.05);
  border-left: 4px solid var(--accent);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.4);
}

.tarifs-section h3 {
  margin-bottom: 12px;
  color: var(--accent);
}

.tarifs-section p,
.tarifs-section ul {
  margin-bottom: 6px;
  color: var(--white);
}

.tarifs-section ul {
  list-style-type: disc;
  padding-left: 18px;
}

/* Formulaire */
form {
  margin-top: 16px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  outline: none;
  font-size: 14px;
  margin-bottom: 12px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Row (deux colonnes pour inputs) */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* Boutons */
.btn {
  background: var(--accent);
  color: #022029;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

/* Actions boutons */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* Status message */
#status {
  margin-top: 12px;
  font-size: 14px;
}

#status .success {
  color: var(--success);
}

#status .error {
  color: var(--error);
}

/* Footer */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 40px;
}

/* ======== Select personnalisé ======== */
.custom-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  padding: 10px 36px 10px 12px;
  color: var(--white);
  background-color: rgb(16 23 36);
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23e6eef6' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 10.94l3.71-3.71a.75.75 0 1 1 1.06 1.06l-4.24 4.25a.75.75 0 0 1-1.06 0L5.21 8.29a.75.75 0 0 1 .02-1.08z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.custom-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(6,182,212,0.3);
}

/* Responsive */
@media (max-width: 720px) {
  .row {
    grid-template-columns: 1fr;
  }
  .grid, .flex-section {
    grid-template-columns: 1fr;
  }
}

/* ✅ reCAPTCHA styling */
.captcha {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: fit-content;
}

/* Taille et adaptation */
.g-recaptcha {
  transform: scale(0.95);
  transform-origin: center;
}

@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.85);
  }
}

