/* ---------------------------------------------------------------
   Page publique — clair, épuré, orienté confiance.
   Un seul fichier, aucune dépendance externe.
----------------------------------------------------------------*/
:root {
  color-scheme: light;
  --bg:        #f4f5f7;
  --card:      #ffffff;
  --ink:       #101828;
  --ink-soft:  #667085;
  --ink-faint: #98a2b3;
  --line:      #e7e9ee;
  --accent:    #1d4ed8;
  --accent-so: #eff4ff;
  --green:     #067647;
  --green-bg:  #ecfdf3;
  --green-ln:  #abefc6;
  --radius:    16px;
  --shadow:    0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 4px 8px -2px rgba(16,24,40,.08), 0 12px 24px -6px rgba(16,24,40,.10);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 40px 18px 56px;
}

.page { max-width: 480px; margin: 0 auto; }

/* ---------- En-tête profil ---------- */
.profile { text-align: center; margin: 8px 0 32px; }

.profile h1 {
  margin: 0 0 8px;
  font-size: 26px; font-weight: 700; letter-spacing: -0.025em;
}

.tagline {
  margin: 0 auto;
  max-width: 24em;
  color: var(--ink-soft);
  font-size: 15px;
}

.trust {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 5px 12px 5px 9px;
  background: var(--green-bg);
  border: 1px solid var(--green-ln);
  color: var(--green);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}
.trust svg { width: 14px; height: 14px; flex: none; }

/* ---------- Cartes d'offres ---------- */
.offers { display: flex; flex-direction: column; gap: 12px; }

.offer {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.offer:hover, .offer:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #d7dbe3;
  outline: none;
}
.offer:active { transform: translateY(0); }
.offer:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.offer-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #f6f7f9;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.offer-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-icon span { font-weight: 700; font-size: 16px; color: var(--ink-soft); }

.offer-body { flex: 1; min-width: 0; }

.offer-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  line-height: 1.3;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--green-bg);
  border: 1px solid var(--green-ln);
  color: var(--green);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  white-space: nowrap;
}

.offer-sub {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.chevron { flex: none; width: 18px; height: 18px; color: var(--ink-faint); }

/* ---------- Vide ---------- */
.empty {
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 32px 20px; text-align: center;
  color: var(--ink-soft);
}

/* ---------- Pied de page ---------- */
.foot {
  margin-top: 34px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 12.5px;
  line-height: 1.6;
}
.foot a { color: var(--ink-soft); }

/* ---------------------------------------------------------------
   Formulaire d'offre
----------------------------------------------------------------*/
.back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-soft); text-decoration: none; font-size: 14px;
  margin-bottom: 18px;
}
.back:hover { color: var(--ink); }
.back svg { width: 15px; height: 15px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.form-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.form-head h1 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.form-intro { color: var(--ink-soft); font-size: 14.5px; margin: 12px 0 22px; }

.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.req { color: #d92d20; }
.field .help { display: block; color: var(--ink-faint); font-size: 12.5px; margin-top: 5px; }

.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=number], .field input[type=date], .field input[type=url],
.field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit; font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  transition: border-color .12s, box-shadow .12s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image:
  url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }

.btn-primary {
  width: 100%; padding: 14px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #1a3fb5; }
.btn-primary:active { transform: scale(.99); }

.alert-err {
  background: #fef3f2; border: 1px solid #fecdca; color: #b42318;
  padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 20px;
}
.alert-err ul { margin: 6px 0 0; padding-left: 18px; }

.success { text-align: center; padding: 14px 0 6px; }
.success .tick {
  width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--green-bg); border: 1px solid var(--green-ln);
  display: flex; align-items: center; justify-content: center; color: var(--green);
}
.success .tick svg { width: 28px; height: 28px; }
.success h1 { font-size: 20px; margin: 0 0 8px; }
.success p { color: var(--ink-soft); margin: 0 0 22px; font-size: 15px; }

.privacy {
  margin-top: 16px; text-align: center;
  color: var(--ink-faint); font-size: 12px; line-height: 1.55;
}
