/* =========================================================
   Page "Redeem Your Code"
   Mise en page : barre grise · en-tête blanc · bandeau vert ·
   fond gris · 2 colonnes (formulaire | vidéo + aide)
   Couleurs réglables dans config.php : BRAND_COLOR (boutons), BANNER_COLOR (bandeau)
   ========================================================= */
:root {
  --brand: #066aab;        /* boutons Submit / Get Help */
  --banner: #52991e;       /* bandeau vert */
  --info: #005f48;         /* icône "i" */
  --page: #ededed;         /* fond gris */
  --topbar: #f5f5f5;
  --text: #000;
  --muted: #494949;
  --input-border: #69727d;
  --error: #d63638;
  --ok: #2f7d12;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0; color: var(--text); background: var(--page);
  font-family: "Kumbh Sans", "Segoe UI", Roboto, system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.5;
}
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(6, 106, 171, .45); outline-offset: 2px; }

.wrap { width: 100%; max-width: 928px; margin: 0 auto; padding: 0 16px; }

/* ---------- Barre support ---------- */
.topbar { background: var(--topbar); border-bottom: 1px solid #e6e6e6; font-size: 12px; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; min-height: 46px; padding-left: 31px; padding-right: 31px; }
.tb-strong { color: #333; font-weight: 500; text-decoration: none; }
a.tb-strong:hover { text-decoration: underline; }
.tb-muted { color: #7a7a7a; }

/* ---------- En-tête ---------- */
.header { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 89px; padding-left: 27px; padding-right: 26px; }
.logo { display: flex; align-items: center; gap: 10px; color: #222; text-decoration: none; min-width: 0; }
.logo img { display: block; max-height: 62px; max-width: 220px; width: auto; }
.logo-mark {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--banner); color: #fff; font-weight: 800; font-size: 22px;
}
.logo-text { font-size: 21px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help-link { flex: none; color: #000; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.help-link:hover { text-decoration: underline; }

/* ---------- Bandeau vert ---------- */
.banner { background: var(--banner); color: #fff; text-align: center; font-size: 13px; font-weight: 700; }
.banner .wrap { display: flex; align-items: center; justify-content: center; min-height: 54px; padding-top: 10px; padding-bottom: 10px; }

/* ---------- Contenu ---------- */
.main { padding-top: 38px; padding-bottom: 40px; }

.info { display: flex; align-items: center; gap: 20px; margin: 0 0 36px; padding: 0 12px; }
.info-icon {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 999px;
  background: var(--info); color: #fff; font: 700 20px/1 Georgia, "Times New Roman", serif;
}
.info p { margin: 0; font-size: 16px; line-height: 1.7; }
.info a { text-decoration: none; }
.info a:hover { text-decoration: underline; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.col { min-width: 0; }

/* Titres en "pilule" blanche */
.pill {
  margin: 0 0 16px; padding: 4px 16px; border-radius: 10px; background: #fff;
  font-size: 19px; font-weight: 500; line-height: 27px; text-align: center;
}

/* Carte blanche */
.card { padding: 24px 24px 24px; border-radius: 12px; background: #fff; }

.alert { margin-bottom: 14px; padding: 10px 12px; border-left: 3px solid var(--error); border-radius: 3px; background: #fdf0f0; color: var(--error); font-size: 14px; font-weight: 600; }

/* ---------- Champs ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 9px; font-size: 14.5px; font-weight: 700; }
.req { color: var(--error); margin-left: 3px; }
.field input {
  display: block; width: 100%; height: 37px; padding: 0 14px;
  border: 1px solid var(--input-border); border-radius: 3px; background: #fff; color: #1f2124;
  font: inherit; font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(6, 106, 171, .18); }
.field input::placeholder { color: #69727d; }
.code-input { letter-spacing: .04em; }
.has-error input { border-color: var(--error); }
.err { margin: 6px 0 0; color: var(--error); font-size: 13px; font-weight: 600; }
.hint { margin: 8px 0 0; color: #000; font-size: 12px; line-height: 1.75; }
.hint.important { margin-top: 10px; }
.wrong { color: #ff0000; font-weight: 600; white-space: nowrap; }

/* "Did you mean gmail.com?" */
.suggest {
  margin-top: 8px; padding: 8px 10px; border-radius: 3px;
  background: #fff8e1; border: 1px solid #f3d27a; color: #6b4e00; font-size: 13.5px;
}
.suggest button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.suggest-use { color: var(--brand); font-weight: 800; text-decoration: underline; }
.suggest-keep { margin-left: 8px; color: #666; text-decoration: underline; font-size: 12.5px; }

/* Champ piège anti-robots (hors écran) */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 24px; border: 0; border-radius: 3px;
  font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: filter .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-block { display: flex; width: 100%; min-height: 37px; margin-top: 18px; font-weight: 700; }

/* ---------- Après envoi ---------- */
.success { text-align: center; padding-top: 30px; padding-bottom: 30px; }
.success-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 12px;
  border-radius: 999px; background: #e7f4dc; color: var(--ok); font-size: 30px; font-weight: 800;
}
.success h2 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.success-main { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--ok); }
.success-sub { margin: 0; font-size: 14px; color: var(--muted); }
.success-ref { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Colonne droite ---------- */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.steps { margin: 0; padding: 22px 24px 22px 46px; counter-reset: step; list-style: none; }
.steps li { position: relative; counter-increment: step; padding: 2px 0 14px; }
.steps li:last-child { padding-bottom: 2px; }
.steps li::before {
  content: counter(step); position: absolute; left: -32px; top: 1px;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--banner); color: #fff; font-size: 13px; font-weight: 700;
}
.steps b { display: block; font-size: 15px; }
.steps span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.help { padding: 44px 8px 8px; text-align: center; }
.help-q { margin: 0 0 6px; font-size: 19px; font-weight: 500; }
.help-t { margin: 0 0 14px; font-size: 19px; font-weight: 500; }

/* ---------- Pied de page ---------- */
.footer { background: #fff; border-top: 1px solid #e3e3e3; color: #555; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 18px; padding-bottom: 22px; }
.footer a { color: #555; }

/* ---------- Mobile : une seule colonne ---------- */
@media (max-width: 760px) {
  .topbar-inner, .header-inner { padding-left: 16px; padding-right: 16px; }
  .topbar-inner { gap: 2px 16px; padding-top: 8px; padding-bottom: 8px; }
  .header-inner { min-height: 72px; }
  .logo img { max-height: 48px; }
  .help-link { font-size: 13.5px; }
  .main { padding-top: 24px; }
  .info { align-items: flex-start; gap: 14px; margin-bottom: 24px; padding: 0; }
  .info p { font-size: 15px; line-height: 1.6; }
  .columns { grid-template-columns: 1fr; gap: 28px; }
  .card { padding: 20px 18px; }
  .card.steps { padding-left: 50px; }
  .field input { height: 46px; font-size: 16px; }   /* 16px : pas de zoom automatique sur iPhone */
  .btn-block { min-height: 48px; font-size: 16px; }
  .help { padding-top: 28px; }
}
