/* ==========================================================
   RP Site Creator — feuille de style principale
   ========================================================== */
:root {
  --bg: #0d0b12;
  --bg-2: #15121d;
  --surface: #1c1826;
  --surface-2: #241f31;
  --border: #322b44;
  --text: #f1edf7;
  --muted: #a69fb8;
  --primary: #ff7a18;
  --primary-2: #ff3d7f;
  --accent: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  --max: 1120px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1000px 500px at 85% -10%, rgba(255, 61, 127, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 122, 24, .10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #67e8f9; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-family: "Bebas Neue", "Inter", sans-serif; letter-spacing: .02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 400; }
h3 { font-size: 1.4rem; font-weight: 400; }
p { margin: 0 0 1em; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; border: 1px solid var(--border); overflow-wrap: anywhere; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section-sm { padding: 36px 0; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 11, 18, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: "Bebas Neue", sans-serif; font-size: 1.6rem; letter-spacing: .04em; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--gradient); display: grid; place-items: center; font-size: 1.1rem; font-family: "Inter", sans-serif; font-weight: 800; color: #fff; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-links a.nav-cta { background: var(--gradient); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px rgba(255, 61, 127, .25); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(255, 61, 127, .4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; }
.hero .badge { margin-bottom: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(52, 211, 153, .12); color: var(--success);
  border: 1px solid rgba(52, 211, 153, .35); font-size: .88rem; font-weight: 600;
}
.badge.warn { background: rgba(251, 191, 36, .12); color: var(--warning); border-color: rgba(251, 191, 36, .35); }
.page-hero { padding: 64px 0 24px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: .3em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.card-highlight { border-color: rgba(255, 122, 24, .5); background: linear-gradient(180deg, rgba(255, 122, 24, .08), var(--surface)); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding: 22px 22px 22px 76px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient); display: grid; place-items: center; font-weight: 800; color: #fff;
}
.step h3 { margin-bottom: .2em; }
.step p:last-child { margin-bottom: 0; }

/* ---------- Callouts ---------- */
.callout { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); border-left: 4px solid var(--accent); }
.callout.warn { border-left-color: var(--warning); }
.callout.ok { border-left-color: var(--success); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- URL demo ---------- */
.url-demo {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  background: #08070c; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: clamp(.8rem, 2.4vw, 1rem); overflow-wrap: anywhere;
}
.url-demo .lock { color: var(--success); margin-right: 6px; }
.url-demo .part-sub { color: var(--primary); }
.url-demo .part-ip { color: var(--accent); }
.url-demo .part-dom { color: var(--muted); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
td { background: var(--surface); }
tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--primary); }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 18px; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 28px; }
.fieldset { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 0; }
.fieldset legend { padding: 0 8px; font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; letter-spacing: .03em; }
.fieldset .hint { color: var(--muted); font-size: .92rem; margin-top: -4px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .95rem; }
.req { color: var(--primary-2); }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font: inherit; font-size: 1rem;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-weight: 500; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--primary); }
.check:has(input:checked) { border-color: var(--primary); background: rgba(255, 122, 24, .08); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 5px; accent-color: var(--primary); }
.field-error { color: var(--danger); font-size: .88rem; }

/* ---------- Category + palette picker ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cat-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; padding: 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font: inherit;
}
.cat-btn .cat-icon { font-size: 1.5rem; }
.cat-btn .cat-label { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.cat-btn:hover { border-color: var(--muted); }
.cat-btn[aria-pressed="true"] { border-color: var(--primary); background: rgba(255, 122, 24, .1); box-shadow: 0 0 0 1px var(--primary) inset; }
.cat-examples { color: var(--muted); font-size: .9rem; margin: 12px 0 0; min-height: 1.4em; }

.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.palette {
  position: relative; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--bg-2); padding: 0; overflow: hidden; cursor: pointer; text-align: left; color: var(--text); font: inherit;
}
.palette:hover { border-color: var(--muted); }
.palette[aria-checked="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 24, .25); }
.palette-swatches { display: flex; height: 54px; }
.palette-swatches span { flex: 1; }
.palette-name { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 600; font-size: .95rem; }
.palette-name .tick { opacity: 0; color: var(--primary); }
.palette[aria-checked="true"] .tick { opacity: 1; }

.preview {
  margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  --p-bg: #111; --p-surface: #222; --p-primary: #f60; --p-accent: #0cf; --p-text: #fff;
  background: var(--p-bg); color: var(--p-text);
}
.preview-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--p-surface); }
.preview-bar strong { font-family: var(--p-font, "Bebas Neue"), sans-serif; font-size: 1.4rem; letter-spacing: .03em; color: var(--p-primary); }
.preview-bar nav { display: flex; gap: 14px; font-size: .85rem; opacity: .85; }
.preview-btn { display: inline-block; padding: 9px 18px; border-radius: var(--p-radius, 999px); background: var(--p-primary); color: var(--p-bg); font-weight: 700; font-size: .9rem; margin-right: 8px; }
.preview-btn.alt { background: transparent; color: var(--p-accent); border: 2px solid var(--p-accent); }

.custom-colors { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.custom-colors label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .9rem; }
.custom-colors input[type="color"] { width: 44px; height: 36px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-2); padding: 2px; cursor: pointer; }

/* ---------- Form result ---------- */
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-status { padding: 18px 20px; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .4); }
.form-status.err { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .4); }
.form-status.info { background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .4); }
.form-status pre { white-space: pre-wrap; background: #08070c; padding: 12px; border-radius: var(--radius-sm); max-height: 260px; overflow: auto; font-size: .82rem; }

/* ---------- Donation ---------- */
.donate-box { text-align: center; padding: 40px 24px; }
.donate-box .big { font-size: 3rem; }
.cost-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cost-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cost-list li span:last-child { color: var(--muted); text-align: right; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient); border-radius: var(--radius); padding: 40px 28px; text-align: center; color: #fff; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { opacity: .92; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.cta-band .btn-white { background: #fff; color: #1a1020; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 48px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; border-top: 1px solid var(--border); padding-top: 14px; }
.footer-legal a { color: var(--muted); }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin-top: 40px; }
.legal h3 { margin-top: 22px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal .table-wrap { margin: 14px 0; }
.form-legal { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Illustration ville (hero) ---------- */
.hero-city {
  position: relative; overflow: hidden;
  padding: 120px 0 140px;
  background:
    linear-gradient(180deg, rgba(13, 11, 18, .55) 0%, rgba(13, 11, 18, .7) 55%, var(--bg) 100%),
    radial-gradient(ellipse at center, rgba(13, 11, 18, .55) 0%, rgba(13, 11, 18, 0) 70%),
    url("../img/gta/hero.jpg") center 40% / cover no-repeat,
    #140a26;
}
.hero-city h1, .hero-city .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.hero-city .lead { color: #e4dcef; }
@media (max-width: 640px) { .hero-city { padding: 72px 0 96px; } }
.banner-city {
  position: relative;
  background:
    linear-gradient(90deg, rgba(13, 11, 18, .96) 0%, rgba(13, 11, 18, .8) 55%, rgba(13, 11, 18, .35) 100%),
    var(--banner-img, none) center 45% / cover no-repeat;
  border-bottom: 1px solid var(--border);
  padding-bottom: 48px;
}

/* ---------- Mockups de sites d'entreprise ---------- */
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 900px) { .mock-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
.mock { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--m-bg); color: var(--m-text); transition: transform .2s ease; }
.mock:hover { transform: translateY(-4px) rotate(-.3deg); }
.mock-chrome { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #0b0a10; }
.mock-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3a3646; }
.mock-chrome span { flex: 1; margin-left: 8px; font-family: "JetBrains Mono", monospace; font-size: .68rem; color: #9a93ad; background: #17151f; border-radius: 6px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--m-surface); font-size: .72rem; }
.mock-nav b { font-family: "Bebas Neue", sans-serif; font-size: 1.15rem; letter-spacing: .04em; color: var(--m-primary); font-weight: 400; }
.mock-hero { padding: 26px 14px 22px; position: relative; min-height: 150px; }
.mock-hero .emoji { position: absolute; right: 12px; top: 14px; font-size: 3.4rem; opacity: .9; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.mock-hero h4 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 1.7rem; line-height: 1; margin: 0 0 6px; max-width: 70%; }
.mock-hero p { font-size: .78rem; opacity: .8; margin: 0 0 12px; max-width: 70%; }
.mock-hero .mbtn { display: inline-block; font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--m-primary); color: var(--m-bg); }
.mock-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 14px 14px; }
.mock-items div { background: var(--m-surface); border-radius: 6px; padding: 8px; font-size: .66rem; border-top: 2px solid var(--m-accent); }
.mock-items div strong { display: block; color: var(--m-accent); font-size: .74rem; }
.mock-caption { padding: 10px 14px; font-size: .8rem; background: #0b0a10; color: var(--muted); }

/* ---------- Galerie catégories (captures GTA V) ---------- */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } .shots figure:first-child { grid-column: span 2; } }
.shots figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--border); }
@media (max-width: 900px) { .shots figure { aspect-ratio: 4 / 3; } }
.shots img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.shots figure:hover img { transform: scale(1.06); }
.shots figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); font-weight: 600; text-align: left; }
.shots figcaption small { display: block; font-weight: 400; color: #d6cfe3; font-size: .8rem; }
.credit { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.banner-restauration { --banner-img: url("../img/gta/restauration.jpg"); }
.banner-plage { --banner-img: url("../img/gta/plage.jpg"); }
.banner-secours { --banner-img: url("../img/gta/secours.jpg"); }
.banner-nightlife { --banner-img: url("../img/gta/nightlife.jpg"); }
a.mock { display: block; text-decoration: none; }
a.mock:hover { box-shadow: 0 14px 36px rgba(0,0,0,.5); }
.mock-hero { overflow: hidden; }
.mock-hero .mock-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mock-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--m-bg) 10%, color-mix(in srgb, var(--m-bg) 60%, transparent) 60%, transparent); z-index: 1; }
.mock-hero > *:not(.mock-bg) { position: relative; z-index: 2; }
.mock-caption strong { color: var(--text); }

/* ---------- Choix visuels du formulaire ---------- */
.style-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.style-preview { position: sticky; top: 84px; }
.preview-label { font-weight: 600; font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 1000px) { .style-layout { grid-template-columns: minmax(0, 1fr); } .style-preview { position: static; } }
.style-layout .palette-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.palette-cat { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); margin: 8px 0 -4px; font-weight: 600; }

.choice-grid { display: grid; gap: 10px; }
.choice-grid.layouts { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
.choice-grid.fonts { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); }
.choice-grid.shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid.images { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.choice {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 10px; position: relative;
}
.choice:hover { border-color: var(--muted); }
.choice[aria-checked="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 24, .22); }
.choice[aria-checked="true"]::after { content: "✔"; position: absolute; top: 6px; right: 9px; color: var(--primary); font-weight: 700; }
.choice b { font-size: .9rem; }
.choice small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.choice svg { width: 100%; height: auto; color: var(--accent); background: #0b0a10; border-radius: 6px; padding: 6px; }
.choice .font-sample { font-size: 1.2rem; line-height: 1.2; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 0; }
.choice .shape-sample { display: flex; gap: 6px; align-items: center; padding: 6px 0; }
.choice .shape-sample i { display: block; height: 22px; background: var(--primary); }
.choice .shape-sample i:first-child { width: 44px; }
.choice .shape-sample i:last-child { width: 30px; height: 30px; background: var(--surface-2); border: 2px solid var(--accent); }
.choice.img { padding: 0; overflow: hidden; }
.choice.img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.choice.img b { padding: 6px 10px 8px; font-size: .82rem; }
.choice.img .noimg { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 1.8rem; background: var(--surface-2); }

/* ---------- Aperçu en direct : variantes de mise en page ---------- */
.preview { font-size: 14px; }
.preview h4 { font-family: var(--p-font, "Bebas Neue"); text-transform: var(--p-transform, uppercase); font-weight: 400; font-size: 1.9rem; line-height: 1.05; margin: 0 0 8px; color: var(--p-text); }
.pv-hero { position: relative; display: grid; min-height: 210px; overflow: hidden; }
.pv-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-text { padding: 20px 18px; position: relative; z-index: 2; }
.pv-text p { opacity: .85; margin: 0 0 14px; font-size: .9rem; }
.pv-side { display: none; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 18px 18px; }
.pv-cards div { background: var(--p-surface); border-radius: var(--p-card, 8px); padding: 10px; font-size: .78rem; border-top: 3px solid var(--p-accent); display: flex; flex-direction: column; }
.pv-cards span { color: var(--p-primary); font-weight: 700; }
.preview.no-img .pv-hero img { display: none; }
.preview.no-img .pv-hero { background: repeating-linear-gradient(45deg, var(--p-surface), var(--p-surface) 12px, var(--p-bg) 12px, var(--p-bg) 24px); }

/* Grande photo */
.preview[data-layout="photo"] .pv-hero > * { grid-area: 1 / 1; }
.preview[data-layout="photo"] .pv-hero img { position: absolute; inset: 0; }
.preview[data-layout="photo"] .pv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--p-bg) 5%, transparent 85%); opacity: .9; z-index: 1; }
.preview[data-layout="photo"] .pv-text { align-self: end; max-width: 75%; }
/* Côte à côte */
.preview[data-layout="split"] .pv-hero { grid-template-columns: 1fr 1fr; }
.preview[data-layout="split"] .pv-text { order: -1; align-self: center; }
.preview[data-layout="split"] .pv-hero img { border-radius: var(--p-card, 8px); margin: 14px 14px 14px 0; width: calc(100% - 14px); height: calc(100% - 28px); }
/* Épuré centré */
.preview[data-layout="centre"] .pv-hero { min-height: 0; }
.preview[data-layout="centre"] .pv-hero img { display: none; }
.preview[data-layout="centre"] .pv-text { text-align: center; padding: 38px 18px 26px; }
.preview[data-layout="centre"] .pv-cards div { background: transparent; border: 1px solid color-mix(in srgb, var(--p-text) 25%, transparent); text-align: center; }
/* Magazine */
.preview[data-layout="magazine"] .pv-hero { grid-template-columns: 2fr 1fr; gap: 8px; padding: 12px; }
.preview[data-layout="magazine"] .pv-hero > img, .preview[data-layout="magazine"] .pv-text { grid-area: 1 / 1; }
.preview[data-layout="magazine"] .pv-hero > img { border-radius: var(--p-card, 8px); }
.preview[data-layout="magazine"] .pv-text { align-self: end; background: linear-gradient(0deg, var(--p-bg), transparent); border-radius: var(--p-card, 8px); }
.preview[data-layout="magazine"] .pv-text p, .preview[data-layout="magazine"] .pv-text > div { display: none; }
.preview[data-layout="magazine"] .pv-side { display: grid; gap: 8px; }
.preview[data-layout="magazine"] .pv-side div { background: var(--p-surface); border-radius: var(--p-card, 8px); padding: 10px; font-size: .78rem; font-weight: 600; border-left: 3px solid var(--p-accent); }
/* Impact */
.preview[data-layout="bold"] .pv-hero > * { grid-area: 1 / 1; }
.preview[data-layout="bold"] .pv-hero img { position: absolute; inset: 0; filter: grayscale(.4) contrast(1.1); opacity: .45; }
.preview[data-layout="bold"] .pv-text { z-index: 2; padding-top: 30px; }
.preview[data-layout="bold"] h4 { font-size: 3rem; color: var(--p-primary); }
.preview[data-layout="bold"] .pv-cards { border-top: 4px solid var(--p-primary); padding-top: 14px; }
/* Carte / tarifs */
.preview[data-layout="menu"] .pv-hero { min-height: 0; }
.preview[data-layout="menu"] .pv-hero > * { grid-area: 1 / 1; }
.preview[data-layout="menu"] .pv-hero img { height: 110px; opacity: .6; }
.preview[data-layout="menu"] .pv-text { align-self: center; padding: 10px 18px; }
.preview[data-layout="menu"] .pv-text p, .preview[data-layout="menu"] .pv-text > div { display: none; }
.preview[data-layout="menu"] .pv-cards { grid-template-columns: 1fr; gap: 0; }
.preview[data-layout="menu"] .pv-cards div { flex-direction: row; justify-content: space-between; background: none; border-top: 0; border-bottom: 1px dashed color-mix(in srgb, var(--p-text) 30%, transparent); border-radius: 0; padding: 9px 0; font-size: .85rem; }
@media (max-width: 520px) { .preview-bar nav { display: none; } }

/* ---------- Formulaires du site + webhook Discord ---------- */
.feature { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.feature:has(.feature-toggle:checked) { border-color: var(--primary); }
.feature > label.consent { font-weight: 600; }
.feature-opts { margin: 12px 0 0 26px; display: grid; gap: 10px; }
.feature-opts .radio { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: .92rem; }
.feature-opts .radio input { margin-top: 5px; accent-color: var(--primary); }
.discord-hint { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.discord-hint .dc { background: #5865f2; color: #fff; border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: .78rem; }

/* ---------- Suivi de demande ---------- */
.suivi-etapes { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: none; }
.suivi-etapes li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; }
.suivi-etapes li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 3px; border-radius: 3px; background: var(--border); }
.suivi-etapes li:first-child::before { display: none; }
.suivi-etapes li.fait::before, .suivi-etapes li.actuel::before { background: var(--gradient); }
.suivi-etapes .pastille { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--border); font-weight: 800; color: var(--muted); position: relative; z-index: 1; }
.suivi-etapes li.fait .pastille { background: var(--success); border-color: var(--success); color: #0d0b12; }
.suivi-etapes li.actuel { color: var(--text); }
.suivi-etapes li.actuel .pastille { border-color: var(--primary); color: var(--text); box-shadow: 0 0 0 4px rgba(255, 122, 24, .2); }
.suivi-etapes li.fait.actuel .pastille { border-color: var(--success); color: #0d0b12; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.suivi-message { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--primary); }
.suivi-message.suivi-en_ligne { border-left-color: var(--success); }
.suivi-message.suivi-attente { border-left-color: var(--warning); }
.suivi-message.suivi-ferme { border-left-color: var(--danger); }
.suivi-lien { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.suivi-lien code { flex: 1 1 260px; padding: 8px 10px; font-size: .85rem; }
@media (max-width: 560px) { .suivi-etapes li { font-size: .8rem; } .suivi-etapes .pastille { width: 30px; height: 30px; } .suivi-etapes li::before { top: 14px; } }
