html {
  background-color: #fd6918;
}

/* ==============================
   RESET
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==============================
   THEME HOMEBAGS
   ============================== */
:root {
  --bg-main: #0b0b0b;
  --bg-soft: #141414;

  --primary: #fd6918;
  --accent: #fd6918;
  --accent-soft: rgba(253, 105, 24, 0.16);
  --accent-strong: rgba(253, 105, 24, 0.55);

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --text-dim: rgba(255, 255, 255, 0.58);

  --card-bg: rgba(0, 0, 0, 0.54);
  --card-soft: rgba(0, 0, 0, 0.62);

  --border: rgba(253, 105, 24, 0.30);
  --border-strong: rgba(253, 105, 24, 0.58);

  --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.58);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.78);

  --radius-lg: 22px;
  --radius-md: 16px;
}

/* ==============================
   BODY / FOND
   ============================== */
body {
  font-family: 'Urbanist', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;

  background:
    radial-gradient(900px 700px at 10% 0%, rgba(253, 105, 24, 0.34), transparent 60%),
    radial-gradient(800px 600px at 90% 100%, rgba(253, 105, 24, 0.24), transparent 55%),
    linear-gradient(
      145deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(18, 18, 18, 0.88) 45%,
      rgba(0, 0, 0, 0.96) 100%
    );
}

/* Grain léger */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .06;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* Halo orange léger */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(253, 105, 24, 0.18), transparent 34%),
    radial-gradient(circle at 20% 86%, rgba(253, 105, 24, 0.12), transparent 30%);
}

/* ==============================
   PAGE CONTAINER
   ============================== */
.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
}

/* ==============================
   FADE IN
   ============================== */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  animation: fadeSlide .6s ease forwards;
}

@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   BACK BUTTON
   ============================== */
.back-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  background:
    radial-gradient(circle at 10% 0%, rgba(253, 105, 24, 0.38), transparent 60%),
    rgba(0, 0, 0, 0.72);

  border: 1px solid rgba(253, 105, 24, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.62);

  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;

  margin-bottom: 14px;
}

.back-btn:hover {
  transform: translateX(-3px);
  background: rgba(253, 105, 24, 0.90);
  border-color: rgba(253, 105, 24, 0.95);
  box-shadow: 0 18px 40px rgba(253, 105, 24, 0.28);
}

/* ==============================
   TITLES
   ============================== */
.main-title {
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
  line-height: 1.06;
}

.main-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fd6918, rgba(253, 105, 24, 0));
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.12rem;
  line-height: 1.45;
}

/* ==============================
   FORM CARD
   ============================== */
.contact-form {
  margin-top: 10px;
  padding: 20px;
  border-radius: var(--radius-lg);

  background:
    radial-gradient(circle at 0 0, rgba(253, 105, 24, 0.16), transparent 46%),
    var(--card-bg);

  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==============================
   LABELS
   ============================== */
.contact-form label {
  font-weight: 800;
  font-size: .95rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==============================
   INPUTS / TEXTAREA
   ============================== */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;

  border: 1px solid rgba(253, 105, 24, 0.26);
  background: var(--card-soft);

  color: var(--text);
  font-size: 1.05rem;

  outline: none;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .15s ease,
    background .2s ease;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 0 4px rgba(253, 105, 24, 0.22);
}

/* ==============================
   PREF GROUP
   ============================== */
.pref-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: -6px;
}

.pref-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(253, 105, 24, 0.26);

  font-size: .95rem;
  font-weight: 800;
  color: var(--text);

  cursor: pointer;
  user-select: none;

  transition:
    transform .15s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.pref-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (hover:hover) {
  .pref-item:hover {
    transform: translateY(-2px);
    border-color: rgba(253, 105, 24, 0.52);
    background: rgba(253, 105, 24, 0.10);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
  }
}

/* ==============================
   SEND BUTTON
   ============================== */
.send-btn {
  margin-top: 6px;
  border: 0;
  border-radius: 14px;

  padding: 15px 16px;
  cursor: pointer;

  font-size: 1.05rem;
  font-weight: 900;

  background: linear-gradient(160deg, #fd6918, #ff7d33);
  color: #ffffff;
  box-shadow: 0 18px 55px rgba(253, 105, 24, 0.38);

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    opacity .12s ease,
    filter .12s ease;
}

.send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 65px rgba(253, 105, 24, 0.56);
  filter: brightness(1.06);
}

.send-btn:active {
  transform: translateY(0);
}

/* ==============================
   STATUS MESSAGE
   ============================== */
#status {
  margin-top: 6px;
  font-size: .98rem;
  font-weight: 900;
  color: var(--text-muted);
}

/* Si contact.js / PHP renvoie du HTML coloré */
#status b,
#status strong {
  color: var(--accent);
}

/* ==============================
   RESPONSE TIME BADGE
   ============================== */
.response-time-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px auto;
  padding: 9px 14px;
  border-radius: 999px;

  background:
    radial-gradient(circle at 0 0, rgba(253, 105, 24, 0.25), transparent 58%),
    rgba(0, 0, 0, 0.66);

  border: 1px solid rgba(253, 105, 24, 0.38);
  color: #ffffff;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;

  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 700px) {
  .page {
    padding: 16px;
  }

  .back-btn {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }

  .pref-group {
    flex-direction: column;
    gap: 10px;
  }

  .pref-item {
    width: 100%;
    border-radius: 16px;
    padding: 14px 16px;
  }

  .pref-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
}