/* GiveawayKit — mobile first, narrow centred column (KingSumo-style) */
:root {
  --green: #1e7d3c;
  --green-dark: #145c2b;
  --green-soft: #e7f5ec;
  --orange: #ff8a3d;
  --yellow: #ffd23f;
  --ink: #22301f;
  --muted: #66735f;
  --line: #dfe8dc;
  --card: #ffffff;
  --bg: #f2f8f1;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 10px 12px 90px; }
.wrap.wide { max-width: 880px; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 2px 10px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.admin-link { font-size: 12.5px; color: #8a8172; text-decoration: none; padding: 6px 8px; }
.admin-link:hover { color: #145c2b; text-decoration: underline; }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 40px; } }
.lang-btn {
  border: 2px solid var(--green); background: #fff; color: var(--green-dark);
  font-weight: 800; border-radius: 999px; padding: 4px 14px; cursor: pointer;
  text-decoration: none; font-size: .9rem;
}

.pill {
  display: inline-block; background: var(--yellow); color: #5c4500;
  font-weight: 800; font-size: .92rem; border-radius: 999px; padding: 5px 14px; margin: 4px 0 8px;
}
h1 { font-size: 1.6rem; line-height: 1.15; margin: 0 0 6px; font-weight: 900; }
.subtitle { color: var(--muted); margin: 0 0 12px; font-size: 1rem; }
h2 { font-size: 1.15rem; font-weight: 900; margin: 0 0 8px; }
h3 { font-size: 1rem; font-weight: 800; margin: 14px 0 6px; }
.section-title { margin: 18px 0 8px; }

.banner-total {
  background: linear-gradient(90deg, var(--green), #35a854);
  color: #fff; font-weight: 900; font-size: 1.15rem; text-align: center;
  border-radius: var(--radius); padding: 12px 10px; margin: 10px 0;
  box-shadow: 0 4px 14px rgba(30,125,60,.25);
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin: 12px 0;
}
.fallback { text-align: center; padding: 34px 18px; }
.fallback-emoji { font-size: 2.2rem; }

.video-slot { margin: 10px 0; }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #0d2413; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hero-image, .prize-image {
  width: 100%; max-height: 340px; object-fit: contain; /* jamais recadrée */
  border-radius: var(--radius); background: #fff; display: block; margin: 8px 0;
}
.temp-hero {
  max-height: none; background: transparent; margin: 8px 0 4px;
  box-shadow: 0 8px 22px rgba(120, 20, 20, .12);
}

.countdown { margin: 10px 0; }
.cd-label { text-align: center; font-weight: 800; color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.cd-row { display: flex; gap: 8px; }
.cd-box {
  flex: 1; background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 8px 4px 7px; text-align: center; box-shadow: 0 2px 8px rgba(20,92,43,.06);
}
.cd-box b { display: block; font-size: 1.45rem; font-weight: 900; color: var(--green-dark); line-height: 1.05; font-variant-numeric: tabular-nums; }
.cd-box small { display: block; font-weight: 700; color: var(--muted); font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }


.goal-line, .prize-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.prize-row:last-child { border-bottom: 0; }
.prize-row { flex-wrap: wrap; }
.prize-row .p-follows { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 2px 58px; }
.prize-row .p-name { font-weight: 700; }
.prize-row .p-sponsor { color: var(--muted); font-size: .85rem; display: block; font-weight: 600; }
.prize-row .p-value { font-weight: 900; color: var(--green-dark); white-space: nowrap; }

.goal-cta {
  display: block; text-align: center; background: var(--orange); color: #fff;
  font-weight: 900; border-radius: 10px; padding: 11px; text-decoration: none; margin-top: 10px;
}
.goal-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 8px 0 0; }


.goal-cta { display: block; text-align: center; background: var(--orange); color: #fff; font-weight: 900; border-radius: 10px; padding: 11px; text-decoration: none; margin-top: 10px; }

label { display: block; font-weight: 700; font-size: .92rem; margin: 10px 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="url"], input[type="search"], input[type="datetime-local"], textarea, select {
  width: 100%; margin-top: 4px; padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; font: inherit; font-size: 1rem; background: #fff;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .88rem; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

.cta {
  width: 100%; background: var(--green); color: #fff; border: 0; cursor: pointer;
  font-weight: 900; font-size: 1.05rem; border-radius: 12px; padding: 13px; margin-top: 8px;
}
.cta:hover { background: var(--green-dark); }
.cta.danger { background: #b3540a; }
.form-msg { min-height: 1.2em; font-size: .9rem; font-weight: 700; }
.form-msg.err { color: #b3261e; }
.form-msg.ok { color: var(--green-dark); }

.goal-cta:hover { filter: brightness(1.05); }

.sticky-cta {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 50;
  background: var(--green); color: #fff; font-weight: 900; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; box-shadow: 0 8px 22px rgba(20,92,43,.4);
  width: calc(100% - 24px); max-width: 420px; text-align: center;
}
@media (min-width: 700px) { .sticky-cta { display: none; } }

.ref-row { display: flex; gap: 8px; }
.ref-row input { flex: 1; }
.mini-btn {
  background: var(--green-soft); color: var(--green-dark); border: 1.5px solid var(--green);
  font-weight: 800; border-radius: 10px; padding: 8px 14px; cursor: pointer; white-space: nowrap;
}
.mini-btn.big { padding: 10px 16px; }
.mini-btn.done { opacity: .55; }
.share-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.share-row a {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-weight: 800; font-size: .85rem; color: var(--ink); text-decoration: none;
}

.bonus-list { display: grid; gap: 8px; }
/* --- partenaires à suivre : lignes compactes, FB + IG côte à côte --- */
.pf-grid { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 600px) and (max-width: 899px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
.pf-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.pf-row:last-child { border-bottom: 0; }
.pf-name { flex: 1; font-weight: 800; font-size: .95rem; line-height: 1.25; }
.pf-btns { display: flex; gap: 6px; flex-shrink: 0; }
.pf-btn {
  border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer;
  font-weight: 900; font-size: .85rem; color: #fff; min-height: 38px;
}
.pf-btn.pf-fb { background: #1877f2; }
.pf-btn.pf-ig { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.pf-site { background: #0f766e; }
.pf-btn.done { background: var(--green-soft); color: var(--green-dark); cursor: default; }

.bonus-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.bonus-item .b-label { font-weight: 700; font-size: .93rem; }
.bonus-item .b-weight { color: var(--green-dark); font-weight: 900; font-size: .85rem; display: block;}

.winner-panel { background: #fffbe8; border: 2px solid var(--yellow); border-radius: var(--radius); padding: 12px; margin-top: 14px; }
.stq-q { font-size: 1.3rem; font-weight: 900; }
.stq-done { font-weight: 800; color: var(--green-dark); }
.gift-panel { background: var(--green-soft); border-radius: var(--radius); padding: 12px; margin-top: 14px; }
.gift-item { background: #fff; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.gift-item .g-code { font-weight: 900; font-size: 1.1rem; letter-spacing: .5px; }
.gift-item a { color: var(--green-dark); font-weight: 800; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
a.chip-partner.chip-link { text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s ease; }
a.chip-partner.chip-link:hover { background: #e3f3e5; transform: translateY(-1px); }
.chip-partner {
  background: #fff; border: 1.5px solid var(--green); color: var(--green-dark);
  border-radius: 999px; padding: 6px 14px; font-weight: 800;
}

.goal-cta { display:block; text-align:center; background: var(--orange); color:#fff; font-weight:900; border-radius:10px; padding:11px; text-decoration:none; margin-top:10px; }

.rules summary { font-weight: 900; cursor: pointer; font-size: 1.05rem; }
.rules pre { white-space: pre-wrap; font-size: .95rem; margin-top: 10px; font-family: inherit; line-height: 1.5; }
.eligibility { font-weight: 700; color: var(--muted); font-size: .94rem; }
.fineprint { color: var(--muted); font-size: .9rem; text-align: center; }

.goal-cta { display: block; }

/* Admin */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.stat { background: var(--green-soft); border-radius: 10px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 1.4rem; color: var(--green-dark); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.btn-row input { flex: 1; min-width: 160px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.grid-form label { margin: 6px 0; }
.editor-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 6px 0; display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.embed-code { background: #0d2413; color: #baf0c8; padding: 10px; border-radius: 10px; overflow-x: auto; font-size: .82rem; }
.winner-row { border: 1.5px solid var(--yellow); background: #fffbe8; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }

/* ============================================================
   Passe beauté KingSumo + fonctions v3
   Mobile d'abord (390 px) ; l'ordinateur adapte en deux colonnes.
   ============================================================ */

/* --- mise en page : mobile = colonne unique (inscription d'abord),
       ordinateur = visuel à gauche, inscription à droite --- */
/* Haut de page (2026-11-06, v2) : deux colonnes flex — à gauche l'affiche
   (un peu plus large que la moitié) et le carré bonus empilés SERRÉ ;
   à droite l'inscription. Mobile : affiche, inscription, carré bonus. */
.layout { display: flex; flex-direction: column; gap: 14px; }
#coverSlot { margin: 0; }
#coverSlot img { width: 100%; height: auto; display: block; border-radius: 16px; }
.bonus-square { background: #fff8e6; border: 1.5px solid #e7cf8f; margin-top: 0; }
.bonus-square h3 { margin: 0 0 6px; font-size: 1.02rem; }
.bonus-square p { margin: 0; line-height: 1.5; }
@media (max-width: 899px) {
  .col-left { display: contents; }
  #coverSlot { order: 1; width: 100%; margin: 0; }
  .col-entry { order: 2; }
  #bonusSquare { order: 3; }
}
@media (min-width: 900px) {
  .wrap { max-width: 1120px; }
  .layout { flex-direction: row; align-items: flex-start; gap: 18px; }
  .col-left { flex: 1.18; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .col-entry { flex: .92; min-width: 0; }
  .col-entry .card { margin-top: 0; }
  /* formulaire d'inscription horizontal : prénom et courriel côte à côte */
  #entryForm { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  #entryForm .consent, #entryForm .cta, #entryForm .form-msg { grid-column: 1 / -1; }
}

.preview-bar {
  background: #fff3cd; border: 1.5px dashed #b58900; color: #6b5200;
  border-radius: 10px; padding: 10px 12px; font-weight: 800; text-align: center; margin: 8px 0;
}

/* --- couverture générée (aucune image fournie) : dégradés superposés,
       reflets radiaux, motif de points discret, échelle de type propre --- */
.cover-slot { margin: 10px 0 4px; }
.gen-cover {
  position: relative; overflow: hidden; color: #fff;
  border-radius: 18px; padding: 26px 22px 20px;
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background:
    radial-gradient(420px 200px at 85% -10%, rgba(255, 210, 63, .45), rgba(255, 210, 63, 0) 70%),
    radial-gradient(520px 300px at -10% 110%, rgba(53, 168, 84, .55), rgba(53, 168, 84, 0) 70%),
    linear-gradient(135deg, #145c2b 0%, #1e7d3c 48%, #2f9e4f 100%);
  box-shadow: 0 10px 26px rgba(20, 92, 43, .28);
}
.gen-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1.5px, transparent 1.7px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 55%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 55%, #000 100%);
}
.gc-kicker { position: relative; z-index: 1; font-weight: 900; letter-spacing: .22em; font-size: .9rem; color: var(--yellow); text-transform: uppercase; }
.gc-name { position: relative; z-index: 1; font-weight: 900; font-size: clamp(1.55rem, 6.2vw, 2.35rem); line-height: 1.08; text-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.gc-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.gc-brand { font-weight: 900; font-size: 1rem; }
.gc-value {
  background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 999px; padding: 5px 14px; font-weight: 900; font-size: 1rem; white-space: nowrap;
}
@media (min-width: 900px) { .gen-cover { aspect-ratio: 2 / 1; } }
/* mini-aperçu dans la création rapide */
#qcCover .gen-cover { aspect-ratio: 2 / 1; padding: 18px 18px 14px; }
#qcCover .gc-name { font-size: 1.45rem; }

/* --- pastilles Valeur / Gagnants --- */
.meta-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.meta-pill {
  background: #fff; border: 1.5px solid var(--green); color: var(--green-dark);
  border-radius: 999px; padding: 7px 16px; font-weight: 900; font-size: 1rem;
  box-shadow: 0 2px 8px rgba(20, 92, 43, .08);
}

/* --- carte du grand prix --- */
.prize-hero { border-top: 6px solid var(--green); }
.prize-tag {
  display: inline-block; background: var(--green-soft); color: var(--green-dark);
  font-weight: 900; font-size: .9rem; border-radius: 999px; padding: 3px 12px; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
.includes { margin: 8px 0; padding-left: 20px; }
.includes li { margin: 4px 0; font-size: 1rem; }
.grand-value { font-weight: 900; color: var(--green-dark); font-size: 1.12rem; margin-top: 8px; }

/* --- panneau de statut : LE moment viral --- */
.status-panel { border: 2px solid var(--green); border-top: 8px solid var(--green); box-shadow: 0 10px 26px rgba(20, 92, 43, .14); }
.entries-big { text-align: center; margin: 10px 0 2px; }
.entries-big span { display: block; font-size: 3rem; font-weight: 900; color: var(--green-dark); line-height: 1; }
.entries-big small { font-weight: 800; color: var(--muted); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.status-summary { text-align: center; font-weight: 700; color: var(--ink); margin: 4px 0 12px; font-size: 1rem; }
.ref-label { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.share-row a.sb {
  flex: 1 1 30%; text-align: center; border-radius: 12px; padding: 13px 10px;
  font-weight: 900; font-size: 1rem; color: #fff; text-decoration: none; min-height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.share-row a.sb-fb { background: #1877f2; }
.share-row a.sb-ms { background: linear-gradient(45deg, #0099ff, #a033ff 55%, #ff5280); }
.share-row a.sb-wa { background: #25d366; }
.share-row a.sb-x { background: #111; }
.share-row a.sb-mail { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }

/* --- confirmation du courriel / liste d'attente --- */
.confirm-box { background: #fff8e1; border: 2px solid var(--yellow); border-radius: 12px; padding: 12px; margin: 10px 0; }
.confirm-box p { margin: 0 0 10px; font-weight: 700; font-size: .98rem; }
.confirmed-line { font-weight: 800; color: var(--green-dark); font-size: .98rem; margin: 8px 0; }
.waitlist-note { background: var(--green-soft); border-radius: 12px; padding: 12px; font-weight: 700; font-size: 1rem; margin: 10px 0; }

/* --- classement des référents --- */
.lb-list { display: grid; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.lb-rank { font-weight: 900; color: var(--green-dark); font-size: 1.15rem; min-width: 1.6em; text-align: center; }
.lb-email { font-weight: 700; flex: 1; }
.lb-count { font-weight: 800; color: var(--muted); font-size: .95rem; white-space: nowrap; }

/* --- admin : navigation, création rapide, promouvoir --- */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.admin-nav button {
  border: 2px solid var(--green); background: #fff; color: var(--green-dark);
  font-weight: 900; border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: .95rem;
}
.admin-nav button.active { background: var(--green); color: #fff; }
.qc-dur { margin: 10px 0; }
.qc-dur-label { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 8px; }
.dur-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.dur-pills label { margin: 0; cursor: pointer; }
.dur-pills input { position: absolute; opacity: 0; pointer-events: none; }
.dur-pills span {
  display: inline-block; border: 2px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 18px; font-weight: 900; font-size: .98rem;
}
.dur-pills input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.dur-pills input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.qc-readout { font-weight: 700; color: var(--muted); font-size: .95rem; margin: 8px 0 0; }
.qc-cover-wrap { margin: 14px 0; }
.cta.qc-save { width: auto; padding: 13px 26px; }
.checklist { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.checklist .dot { width: 14px; height: 14px; border-radius: 50%; background: #c9d4c6; flex: none; }
.checklist .dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.badge-preview { background: var(--green-soft); border-radius: 12px; padding: 16px; text-align: center; }
.file-label { display: inline-flex; align-items: center; cursor: pointer; }

/* --- image cliquable + lightbox plein écran (patron des autres sites) --- */
.zoom-wrap { position: relative; }
.prize-image, .cover-slot img { cursor: zoom-in; }
.zoom-pill {
  position: absolute; right: 10px; bottom: 16px; pointer-events: none;
  background: rgba(15, 35, 18, .8); color: #fff; font-weight: 800; font-size: .82rem;
  border-radius: 999px; padding: 5px 12px;
}
.lightbox {
  position: fixed; inset: 0; z-index: 1200; padding: 12px;
  background: rgba(8, 18, 8, .94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: 100%; max-height: calc(100dvh - 24px); object-fit: contain;
  border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.lightbox-close {
  position: absolute; top: 14px; right: 14px; width: 46px; height: 46px;
  border-radius: 50%; border: 0; background: #fff; color: #145c2b;
  font-size: 1.25rem; font-weight: 900; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

/* --- vignette d'un prix dans la liste (toucher pour agrandir) --- */
.prize-thumb {
  width: 96px; height: auto; border-radius: 8px; flex-shrink: 0;
  cursor: zoom-in; box-shadow: 0 3px 10px rgba(90, 20, 10, .18);
}
.prize-row .p-name { flex: 1; }

.prize-row:has(.prize-thumb) { align-items: center; }

.prize-thumb.placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 64px; font-size: 1.9rem; cursor: default; box-shadow: none;
  background: linear-gradient(135deg, #f2f7f0, #e0efe2);
  border: 1px dashed #c4dec9;
}

/* Bannière partenaires potentiels — visible seulement avant le lancement (phase « bientôt ») */
.partner-banner { background: #fdf3d0; border: 2px solid #c9a227; border-radius: 14px; padding: 14px 18px; margin: 14px 0 4px; color: #145c2b; }
.partner-banner .pb-title { font-weight: 900; font-size: 1.2rem; margin-bottom: 4px; }
.partner-banner p { margin: 0; font-size: 1rem; line-height: 1.45; }

/* ============================================================
   ADMIN — passe beauté « Yummy » (v72)
   Tout est scopé sous body.admin : la page publique ne change pas.
   Palette : crème / vert foncé / or (base du site) + accents
   saturés corail, ciel, violet, turquoise, ambre ensoleillé.
   ============================================================ */
body.admin {
  --a-coral: #ff6b5e;  --a-coral-dark: #d93a2b;
  --a-sky: #2f9be8;    --a-sky-dark: #1e78c4;
  --a-violet: #7c5cd6; --a-violet-dark: #5f42b0;
  --a-teal: #14b8a6;   --a-teal-dark: #0f766e;
  --a-amber: #ffb020;  --a-amber-dark: #b58900;
  background-color: #fbf6ea;
  background-image:
    radial-gradient(circle, rgba(255, 107, 94, .13) 2.2px, transparent 2.7px),
    radial-gradient(circle, rgba(47, 155, 232, .12) 2.2px, transparent 2.7px),
    radial-gradient(circle, rgba(124, 92, 214, .11) 2.2px, transparent 2.7px),
    radial-gradient(circle, rgba(20, 184, 166, .12) 2.2px, transparent 2.7px);
  background-size: 190px 190px, 260px 260px, 320px 320px, 230px 230px;
  background-position: 0 0, 60px 90px, 130px 40px, 30px 150px;
}

/* --- barre du haut : bandeau dégradé bien épais --- */
body.admin .topbar {
  background: linear-gradient(92deg, #145c2b 0%, #1e7d3c 55%, #0f766e 100%);
  border-radius: 18px; padding: 14px 18px; margin-top: 6px;
  box-shadow: 0 5px 0 rgba(20, 92, 43, .20), 0 14px 26px rgba(20, 92, 43, .18);
}
body.admin .topbar .brand { color: #fff; font-weight: 900; font-size: 1.18rem; }
body.admin .lang-btn {
  background: var(--yellow); border: 2px solid #ffe98a; color: #4a3200;
  box-shadow: 0 3px 0 #d9a400; padding: 6px 16px;
  transition: transform .08s ease, box-shadow .08s ease;
}
body.admin .lang-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #d9a400; }
body.admin .lang-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #d9a400; }

/* --- navigation : grosses pilules, une couleur active par onglet --- */
body.admin .admin-nav { gap: 10px; margin: 16px 0 6px; }
body.admin .admin-nav button {
  border: 2px solid #e9e1cb; background: #fff; border-radius: 999px;
  padding: 10px 18px; font-size: .97rem;
  box-shadow: 0 3px 0 #ddd3b8;
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease;
}
body.admin .admin-nav button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #ddd3b8; }
body.admin .admin-nav button:active { transform: translateY(2px); box-shadow: 0 1px 0 #ddd3b8; }
body.admin .admin-nav button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
body.admin .admin-nav [data-nav="quick"]   { color: var(--green-dark);   border-color: #bfe3cc; }
body.admin .admin-nav [data-nav="dash"]    { color: var(--a-sky-dark);   border-color: #bfe0f7; }
body.admin .admin-nav [data-nav="prix"]    { color: var(--a-coral-dark); border-color: #ffc9c2; }
body.admin .admin-nav [data-nav="regles"]  { color: #96690a;             border-color: #ffe1a1; }
body.admin .admin-nav [data-nav="reglages"]{ color: var(--a-violet-dark);border-color: #ddd2f7; }
body.admin .admin-nav [data-nav="promo"]   { color: var(--a-teal-dark);  border-color: #b8e6de; }
body.admin .admin-nav [data-nav="quick"].active    { background: var(--green);      border-color: var(--green-dark);   color: #fff; box-shadow: 0 3px 0 #0d3d1c; }
body.admin .admin-nav [data-nav="dash"].active     { background: var(--a-sky-dark); border-color: #155e99;             color: #fff; box-shadow: 0 3px 0 #114e80; }
body.admin .admin-nav [data-nav="prix"].active     { background: var(--a-coral-dark); border-color: #b02a1e;           color: #fff; box-shadow: 0 3px 0 #8f2318; }
body.admin .admin-nav [data-nav="regles"].active   { background: #ffc93f;           border-color: #d9a400;             color: #543d00; box-shadow: 0 3px 0 #b58900; }
body.admin .admin-nav [data-nav="reglages"].active { background: #6d4fc2;           border-color: var(--a-violet-dark); color: #fff; box-shadow: 0 3px 0 #483181; }
body.admin .admin-nav [data-nav="promo"].active    { background: var(--a-teal-dark); border-color: #0a5a52;            color: #fff; box-shadow: 0 3px 0 #084740; }

/* --- cartes : blanches, très arrondies, ruban de couleur par vue --- */
body.admin .card {
  border-radius: 22px; border: 1px solid #eee3c8; padding: 20px; margin: 16px 0;
  box-shadow: 0 12px 26px rgba(122, 92, 20, .09);
}
body.admin .card::before {
  content: ""; display: block; height: 8px; border-radius: 22px 22px 0 0;
  margin: -20px -20px 14px; background: linear-gradient(90deg, #145c2b, #35a854);
}
body.admin [data-view="quick"] .card::before    { background: linear-gradient(90deg, #145c2b, #35a854, #8fd694); }
body.admin [data-view="dash"] .card:nth-of-type(1)::before { background: linear-gradient(90deg, #1e78c4, #2f9be8, #9fd6f7); }
body.admin [data-view="dash"] .card:nth-of-type(2)::before { background: linear-gradient(90deg, #d9a400, #ffd23f, #ffe98a); }
body.admin [data-view="dash"] .card:nth-of-type(3)::before { background: linear-gradient(90deg, #0f766e, #14b8a6, #8fe3d8); }
body.admin [data-view="dash"] .card:nth-of-type(4)::before { background: linear-gradient(90deg, #5f42b0, #7c5cd6, #c3b2f2); }
body.admin [data-view="prix"] .card:nth-of-type(1)::before { background: linear-gradient(90deg, #d93a2b, #ff6b5e, #ffb0a6); }
body.admin [data-view="prix"] .card:nth-of-type(2)::before { background: linear-gradient(90deg, #0f766e, #14b8a6, #8fe3d8); }
body.admin [data-view="regles"] .card::before   { background: linear-gradient(90deg, #d9a400, #ffb020, #ffd97a); }
body.admin [data-view="reglages"] .card::before { background: linear-gradient(90deg, #5f42b0, #7c5cd6, #c3b2f2); }
body.admin section.card[data-view="promo"]::before { background: linear-gradient(90deg, #0f766e, #14b8a6, #8fe3d8); }
body.admin #loginCard { max-width: 540px; margin: 28px auto; padding: 26px; }
body.admin #loginCard::before {
  height: 10px; margin: -26px -26px 18px;
  background: linear-gradient(90deg, #ff6b5e, #ffb020, #ffd23f, #14b8a6, #2f9be8, #7c5cd6);
}

/* --- titres : Nunito 900, point de couleur assorti à la vue --- */
body.admin h2 { font-size: 1.32rem; color: var(--green-dark); display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
body.admin h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #35a854; flex: none; }
body.admin [data-view="dash"] h2::before     { background: var(--a-sky); }
body.admin [data-view="prix"] h2::before     { background: var(--a-coral); }
body.admin [data-view="regles"] h2::before   { background: var(--a-amber); }
body.admin [data-view="reglages"] h2::before { background: var(--a-violet); }
body.admin section[data-view="promo"] h2::before { background: var(--a-teal); }
body.admin #loginCard h2::before { background: var(--yellow); }
body.admin #loginCard h2 { font-size: 1.5rem; }
body.admin h3 { color: var(--green-dark); font-weight: 900; }

/* --- tuiles de stats : le tableau de bord façon jeu --- */
body.admin .stat-grid { gap: 10px; }
body.admin .stat {
  border-radius: 18px; padding: 16px 10px 13px; border: 2px solid rgba(255, 255, 255, .7);
  box-shadow: 0 4px 0 rgba(34, 48, 31, .10);
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #4c5546;
}
body.admin .stat b { font-size: 2.05rem; font-weight: 900; line-height: 1.05; margin-bottom: 3px; }
body.admin .stat:nth-child(1) { background: #dff3e4; } body.admin .stat:nth-child(1) b { color: #145c2b; }
body.admin .stat:nth-child(2) { background: #ffe9e4; } body.admin .stat:nth-child(2) b { color: #c23a2a; }
body.admin .stat:nth-child(3) { background: #e1f0fd; } body.admin .stat:nth-child(3) b { color: #1668a8; }
body.admin .stat:nth-child(4) { background: #fff3cf; } body.admin .stat:nth-child(4) b { color: #96690a; }
body.admin .stat:nth-child(5) { background: #efe9fd; } body.admin .stat:nth-child(5) b { color: #5f42b0; }
body.admin .stat:nth-child(6) { background: #dcf5f0; } body.admin .stat:nth-child(6) b { color: #0b6b5e; }
body.admin .stat:nth-child(7) { background: #ffe3ef; } body.admin .stat:nth-child(7) b { color: #b02a5e; }
body.admin .stat:nth-child(8) { background: #e7f5ec; } body.admin .stat:nth-child(8) b { color: #1e7d3c; }
body.admin .stat:nth-child(9) { background: #fff0d6; } body.admin .stat:nth-child(9) b { color: #a86e0a; }

/* --- boutons : pilules épaisses, ombre dure, effet pressé --- */
body.admin .cta {
  border-radius: 999px; padding: 14px 22px; margin-top: 10px;
  background: linear-gradient(180deg, #2f9e4f, #1e7d3c);
  box-shadow: 0 4px 0 #0d3d1c, 0 10px 18px rgba(20, 92, 43, .22);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
body.admin .cta:hover { background: linear-gradient(180deg, #2f9e4f, #1e7d3c); filter: brightness(1.07); }
body.admin .cta:active { transform: translateY(3px); box-shadow: 0 1px 0 #0d3d1c; }
body.admin .cta.danger {
  background: linear-gradient(180deg, #f0684f, #d93a2b);
  box-shadow: 0 4px 0 #8f2318, 0 10px 18px rgba(217, 58, 43, .25);
}
body.admin .cta.danger:active { box-shadow: 0 1px 0 #8f2318; }
body.admin .cta:disabled { opacity: .6; cursor: default; transform: none; box-shadow: 0 2px 0 rgba(20, 40, 20, .25); }
body.admin .mini-btn {
  background: #eef7f0; border: 2px solid #bcdcc4; color: var(--green-dark);
  border-radius: 999px; padding: 7px 14px; box-shadow: 0 2px 0 #cfe3d3;
  transition: transform .08s ease, box-shadow .08s ease;
}
body.admin .mini-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 #cfe3d3; }
body.admin .mini-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #cfe3d3; }
body.admin .mini-btn.big { padding: 10px 18px; }

/* --- formulaires : doux, arrondis, anneau de focus coloré --- */
body.admin label { font-weight: 800; color: #37402f; }
body.admin input[type="text"], body.admin input[type="email"], body.admin input[type="password"],
body.admin input[type="number"], body.admin input[type="url"], body.admin input[type="search"],
body.admin input[type="datetime-local"], body.admin input:not([type]), body.admin textarea, body.admin select {
  border: 2px solid #ddd6bf; border-radius: 14px; background: #fffdf7; padding: 12px 14px;
}
body.admin input:focus, body.admin textarea:focus, body.admin select:focus {
  outline: none; border-color: #35a854; box-shadow: 0 0 0 4px rgba(53, 168, 84, .18);
}
body.admin [data-view="dash"] input:focus, body.admin [data-view="dash"] textarea:focus { border-color: var(--a-sky); box-shadow: 0 0 0 4px rgba(47, 155, 232, .18); }
body.admin [data-view="prix"] input:focus, body.admin [data-view="prix"] textarea:focus { border-color: var(--a-coral); box-shadow: 0 0 0 4px rgba(255, 107, 94, .20); }
body.admin [data-view="regles"] textarea:focus { border-color: var(--a-amber); box-shadow: 0 0 0 4px rgba(255, 176, 32, .22); }
body.admin [data-view="reglages"] input:focus, body.admin [data-view="reglages"] textarea:focus { border-color: var(--a-violet); box-shadow: 0 0 0 4px rgba(124, 92, 214, .18); }
body.admin section[data-view="promo"] input:focus, body.admin section[data-view="promo"] textarea:focus { border-color: var(--a-teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, .20); }
body.admin .grid-form { background: #fdfaf1; border: 1.5px dashed #e7ddc2; border-radius: 16px; padding: 6px 14px 12px; }
body.admin .consent input { accent-color: var(--green); }

/* --- pastilles de durée (création rapide) --- */
body.admin .dur-pills span { border: 2px solid #ddd6bf; box-shadow: 0 2px 0 #e3dcc8; transition: transform .08s ease, box-shadow .08s ease; }
body.admin .dur-pills label:hover span { transform: translateY(-1px); box-shadow: 0 3px 0 #e3dcc8; }
body.admin .dur-pills input:checked + span { box-shadow: 0 3px 0 #0d3d1c; }

/* --- liste « Avant le lancement » --- */
body.admin .checklist { gap: 6px; }
body.admin .checklist li { background: #fbf7ea; border-radius: 12px; padding: 9px 12px; }

/* --- lignes d'édition : prix (corail) et partenaires (turquoise) --- */
body.admin .editor-item {
  border: 1px solid #eee3c8; border-left: 6px solid var(--a-coral); border-radius: 16px;
  padding: 12px 14px; margin: 8px 0; background: #fff;
  box-shadow: 0 3px 10px rgba(122, 92, 20, .06);
  transition: transform .1s ease, box-shadow .1s ease;
}
body.admin .editor-item:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(122, 92, 20, .11); }
body.admin #promoEditorList .editor-item { border-left-color: var(--a-teal); }
body.admin #pzPhotoPreview { border-radius: 16px; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(34, 48, 31, .16); }

/* --- tirage et gagnants : traitement célébration or --- */
body.admin .winner-row {
  border: 2px solid #f0d47a; border-radius: 16px; padding: 13px 15px;
  background: linear-gradient(180deg, #fffdf4, #fff6d8);
  box-shadow: 0 4px 0 rgba(214, 164, 32, .25);
}
body.admin #prizeDrawList .winner-row {
  border-color: #bcdcc4; background: #f4fbf3; box-shadow: 0 3px 0 rgba(20, 92, 43, .12);
}
body.admin #sendLog > div { background: #f2f8f1; border-radius: 10px; padding: 7px 11px; margin: 5px 0; font-size: .9rem; font-weight: 600; }

/* --- participants : tableau rond, en-tête vert foncé, zébrure pastel --- */
body.admin .table-scroll { border: 2px solid #e7ddc2; border-radius: 16px; background: #fff; }
body.admin th { background: var(--green-dark); color: #fff; font-weight: 900; border-bottom: 0; padding: 10px; }
body.admin td { padding: 9px 10px; border-bottom: 1px solid #f0ead6; }
body.admin #entrantsTable tr:nth-child(even) td { background: #f6fbf3; }
body.admin #entrantSearch { border-radius: 999px; }

/* --- promouvoir : code et aperçu --- */
body.admin .embed-code { border-radius: 14px; padding: 14px; }
body.admin .badge-preview { background: #e7f5ec; border: 2px dashed #9fd3ab; border-radius: 16px; }

/* --- admin : ajustement mobile de la barre du haut (QC visuelle v72) --- */
@media (max-width: 560px) {
  body.admin .topbar { flex-wrap: wrap; gap: 10px; }
  body.admin .lang-btn { white-space: nowrap; }
}

/* ============================================================
   MARQUE (v73) — logo + 3 couleurs pilotés par les réglages
   (logoUrl / colorPrimary / colorAccent / colorBg).
   app.js pose --green / --green-dark / --green-light / --yellow / --bg
   sur <html> depuis les réglages ; les valeurs par défaut de :root
   (et les replis ci-dessous) sont les couleurs d'aujourd'hui :
   sans réglage de marque, le rendu est identique, pixel pour pixel.
   ============================================================ */
.gen-cover {
  background:
    radial-gradient(420px 200px at 85% -10%, rgba(255, 210, 63, .45), rgba(255, 210, 63, 0) 70%),
    radial-gradient(520px 300px at -10% 110%, rgba(53, 168, 84, .55), rgba(53, 168, 84, 0) 70%),
    linear-gradient(135deg, var(--green-dark) 0%, var(--green) 48%, var(--green-light, #2f9e4f) 100%);
}
body.admin .topbar { background: linear-gradient(92deg, var(--green-dark) 0%, var(--green) 55%, var(--green-dark) 130%); }
body.admin .cta { background: linear-gradient(180deg, var(--green), var(--green-dark)); }
body.admin .cta:hover { background: linear-gradient(180deg, var(--green), var(--green-dark)); filter: brightness(1.07); }
body.admin .admin-top-logo { height: 38px; width: auto; background: #fff; border-radius: 9px; padding: 2px 6px; margin-right: 4px; }
body.admin .admin-top-logo[hidden] { display: none; }
body.admin .brand-preview { max-height: 72px; max-width: 280px; object-fit: contain; background: #fff; border: 2px solid #eee3c8; border-radius: 12px; padding: 6px 10px; margin: 4px 0 8px; }
body.admin input[type="color"] { width: 64px; height: 44px; padding: 2px; border: 2px solid #ddd6bf; border-radius: 12px; background: #fff; cursor: pointer; }
body.admin .color-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
body.admin .color-hex { font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; color: #37402f; }

/* --- toggle langue interface admin FR | EN (v74, scopé body.admin) --- */
body.admin .top-actions { display: flex; align-items: center; gap: 10px; }
body.admin .lang-toggle {
  display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .20); border: 2px solid rgba(255, 255, 255, .45);
}
body.admin .lang-pill {
  border: 0; background: transparent; color: #eaf5ec; font: inherit;
  font-weight: 800; font-size: .85rem; line-height: 1; padding: 6px 13px;
  border-radius: 999px; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
body.admin .lang-pill.active { background: var(--yellow); color: #4a3200; box-shadow: 0 2px 0 #d9a400; }
body.admin .lang-pill:active { transform: translateY(1px); }
body.admin .lang-pill:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) {
  body.admin .top-actions { gap: 6px; }
  body.admin .lang-pill { padding: 6px 9px; }
  body.admin .lang-btn { padding: 6px 10px; }
}

/* Bascule de langue publique (restaurée 2026-11-07) */
.topbar .top-right { display: flex; align-items: center; gap: 8px; }

/* Pastilles de langue publiques FR | EN | ES (démo cadre espagnol, 2026-11-07) */
.topbar .lang-pills { display: inline-flex; gap: 4px; }
.topbar .lang-pill-btn { padding: 4px 10px; }
.topbar .lang-pill-btn.active { background: var(--green); border-color: var(--green-dark); color: #fff; }
@media (max-width: 560px) { .topbar .lang-pill-btn { padding: 4px 8px; } }

/* Pastille « meilleur référent » sur les lignes de prix (page publique) */
.prize-row .p-topref { display: inline-block; background: var(--yellow); color: #5c4500; font-size: .78rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; margin-top: 3px; }

/* Audience des envois + compositeur libre (admin) */
body.admin .audience-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
body.admin .audience-row select { margin-left: 6px; }
body.admin .audience-count { color: var(--muted); font-size: .88rem; font-weight: 600; }
body.admin .composer { margin-top: 18px; border-top: 2px dashed var(--line); padding-top: 14px; }
body.admin .composer label { display: block; font-weight: 700; margin-bottom: 10px; }
body.admin .composer input[type="text"], body.admin .composer textarea { display: block; width: 100%; margin-top: 4px; }
body.admin .composer .hint { color: var(--muted); font-size: .88rem; margin: 2px 0 10px; }

/* Mur des gagnants (page publique) */
.wall-list { display: grid; gap: 8px; }
.wall-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line, #dfe8dc); border-radius: 12px; padding: 10px 14px;
}
.wall-name { font-weight: 900; color: var(--green-dark); }
.wall-prize { font-weight: 700; flex: 1; min-width: 140px; }
.wall-tag { background: var(--yellow); color: #5c4500; font-size: .78rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; }

/* Célébration du gain instantané (panneau de statut) */
.instant-win-box {
  background: #fff8e1; border: 2px solid var(--yellow); border-radius: 12px;
  padding: 14px; margin: 10px 0; text-align: center;
}
.instant-win-box p { margin: 0; font-weight: 900; font-size: 1.12rem; color: var(--green-dark); }

/* Envois automatiques (admin, carte Courriels) */
body.admin .auto-row { display: grid; gap: 6px; margin: 12px 0 4px; padding: 10px 12px; background: #fbf6ee; border: 1px dashed var(--line); border-radius: 12px; }
body.admin .auto-status { margin: 2px 0 0; color: var(--muted); font-size: .88rem; font-weight: 600; }

/* Code QR (admin, vue Promouvoir) */
body.admin .qr-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 10px 0 14px; }
body.admin .qr-box canvas { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
body.admin .qr-actions { display: grid; gap: 8px; }

/* Relance — nouvelle édition (admin, carte Réutiliser) */
body.admin .danger-zone { margin-top: 18px; border-top: 2px dashed var(--line); padding-top: 14px; }
body.admin .archive-line { font-weight: 700; color: var(--green-dark); }

/* Affiche imprimable du QR : invisible à l'écran, seule à l'impression */
#qrPoster { display: none; }
@media print {
  body.admin .wrap { display: none !important; }
  #qrPoster {
    display: block !important; text-align: center; padding: 48px 24px;
    background: var(--qp-bg, #f2f8f1); color: #22301f; font-family: Nunito, Arial, sans-serif;
    min-height: 100vh;
  }
  #qrPoster .qp-brand { font-weight: 900; font-size: 1.3rem; color: var(--qp-primary, #1e7d3c); letter-spacing: .5px; }
  #qrPoster h1 { font-size: 2.4rem; line-height: 1.15; margin: 14px 0 6px; color: var(--qp-primary, #1e7d3c); }
  #qrPoster .qp-dates { font-size: 1.15rem; font-weight: 700; margin: 0 0 22px; }
  #qrPoster .qp-qr { width: 430px; height: 430px; max-width: 80vw; border-radius: 16px; }
  #qrPoster .qp-scan { font-size: 1.9rem; font-weight: 900; margin: 22px 0 4px; }
  #qrPoster .qp-free { font-size: 1.05rem; font-weight: 700; margin: 0; }
  #qrPoster #qrPosterLogo { max-width: 280px; max-height: 120px; margin-bottom: 8px; }
}
