/* Base commune des sites de démonstration Neon Club.
   Chaque démo ajoute son propre fichier de thème (plombier.css, barbier.css, food-truck.css). */

:root {
  --bg: #ffffff; --bg-alt: #f4f6f9; --ink: #10213a; --muted: #5b6b80; --line: rgba(16,33,58,.1);
  --accent: #0a6cff; --accent-ink: #ffffff; --accent-soft: #e6f0ff; --card: #ffffff;
  --radius: 18px; --font-title: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --gutter: max(16px, calc((100vw - 1140px) / 2));
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: 84px; }
@media (min-width: 761px) { body { padding-bottom: 0; } }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-title); letter-spacing: -.02em; line-height: 1.08; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Bandeau démo ---------- */
.demo-bar { position: relative; z-index: 40; background: #000; color: #f5f5f7; font-size: 13px; padding: 9px var(--gutter); display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.demo-bar b { background: linear-gradient(100deg, #6d5dfc, #ff5e8a 55%, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-bar a { color: #f5f5f7; font-weight: 600; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); }
.brand { font-family: var(--font-title); font-weight: 800; font-size: 20px; text-decoration: none; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.menu { display: flex; gap: 26px; font-size: 15px; }
.menu a { text-decoration: none; color: var(--muted); transition: color .2s; }
.menu a:hover { color: var(--ink); }
@media (max-width: 900px) { .menu { display: none; } }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa3ad; }
.status.is-open::before { background: #1fc16b; box-shadow: 0 0 0 0 rgba(31,193,107,.6); animation: ping 1.8s infinite; }
.status.is-closed::before { background: #ff5a36; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(31,193,107,0); } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 24px; font-weight: 700; font-size: 16px; text-decoration: none; background: var(--accent); color: var(--accent-ink); border: none; transition: transform .25s var(--ease), filter .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Sections ---------- */
section { padding: clamp(70px, 9vw, 120px) var(--gutter); position: relative; }
.alt { background: var(--bg-alt); }
.head { max-width: 660px; margin-bottom: 44px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.head h2 { font-size: clamp(34px, 4.8vw, 56px); font-weight: 800; margin-top: 12px; }
.head p { color: var(--muted); font-size: 17px; line-height: 1.55; margin-top: 14px; }
.note { color: var(--muted); font-size: 13px; margin-top: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Apparitions ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; white-space: nowrap; padding: 18px 0; }
.marquee-track { display: inline-flex; gap: 40px; animation: marquee 28s linear infinite; padding-right: 40px; }
.marquee span { font-family: var(--font-title); font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs button { border: none; background: var(--card); box-shadow: 0 0 0 1px var(--line); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }

/* ---------- Lignes de prix ---------- */
.prices { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 6px 26px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row span small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.row strong { white-space: nowrap; font-size: 18px; }

/* ---------- Avis (carrousel) ---------- */
.carousel { position: relative; max-width: 780px; margin: 0 auto; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; transform: translateX(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; text-align: center; }
.slide.active { opacity: 1; transform: none; pointer-events: auto; }
.slide blockquote { font-family: var(--font-title); font-size: clamp(22px, 3vw, 30px); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.slide .stars { color: #f5b301; font-size: 20px; letter-spacing: 4px; margin-bottom: 18px; }
.slide cite { display: block; font-style: normal; color: var(--muted); margin-top: 18px; font-size: 15px; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; }
.car-nav > button { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 18px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: none; background: var(--line); transition: width .3s, background .3s; }
.dots button[aria-current="true"] { width: 26px; background: var(--accent); }
.center-tag { text-align: center; }
.example-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); padding: 4px 10px; border-radius: 99px; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; transition: transform .3s; color: var(--accent); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); line-height: 1.6; padding-bottom: 20px; max-width: 64ch; }

/* ---------- Horaires ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: 16px; margin-top: 12px; }
.hours td { padding: 11px 8px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.closed td:last-child { color: var(--muted); font-weight: 400; }
.hours tr.today td { background: var(--accent-soft); font-weight: 700; }
.hours tr.today td:first-child::after { content: " · aujourd'hui"; font-weight: 500; color: var(--accent); font-size: 13px; }

/* ---------- Étapes (formulaires en plusieurs temps) ---------- */
.stepper { display: flex; gap: 8px; margin-bottom: 24px; }
.stepper span { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background .4s; }
.stepper span.done { background: var(--accent); }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice button { text-align: left; border: none; background: var(--card); box-shadow: 0 0 0 1.5px var(--line); border-radius: 14px; padding: 16px; font-weight: 600; transition: box-shadow .2s, transform .2s; }
.choice button:hover { transform: translateY(-2px); }
.choice button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--accent); background: var(--accent-soft); }
.choice button small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.success { text-align: center; padding: 20px 0; }
.success .big { font-size: 56px; animation: pop .6s var(--ease) both; }
.success h3 { font-size: 26px; margin-top: 10px; }
.success p { color: var(--muted); margin-top: 8px; line-height: 1.5; }
@keyframes pop { from { transform: scale(.3) rotate(-15deg); opacity: 0; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); opacity: 0; z-index: 80; background: #111; color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: opacity .3s, transform .3s; pointer-events: none; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 761px) { .toast { bottom: 30px; } }

/* ---------- Pied de page ---------- */
.foot { border-top: 1px solid var(--line); padding: 30px var(--gutter); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Barre d'action fixe (mobile) ---------- */
.callbar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; display: flex; gap: 10px; }
.callbar a, .callbar button { flex: 1; white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); }
.callbar .ghost { background: var(--card); flex: .7; }
@media (min-width: 761px) { .callbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
