/* ClapStudio — style repris de clapstudio.ch : fond nuit, titres serrés, jaune doré, dégradé rose-orange */
:root {
  --bg: #0B0B12; --card: #13131B; --card2: #191923; --line: #272734; --line2: #34344a;
  --text: #F4F1EA; --muted: #A3A1B2; --dim: #6F6D7D;
  --yellow: #F5CF5A; --yellow2: #FFE08A; --pink: #EF4F6F; --orange: #F29A3E; --green: #7EE0A8; --red: #FF7A8A;
  --radius: 22px; --font: 'Inter', system-ui, -apple-system, sans-serif; --title: 'Inter Tight', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5;
  background-image: radial-gradient(1100px 480px at 88% -12%, rgba(245,207,90,.10), transparent 60%),
                    radial-gradient(800px 460px at -12% -4%, rgba(239,79,111,.08), transparent 60%);
  background-attachment: fixed; min-height: 100vh; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: .88rem; } .center { text-align: center; }
.hidden { display: none !important; }

/* Barre du haut */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11,11,18,.72); border-bottom: 1px solid rgba(39,39,52,.6); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--title);
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center;
  font-size: 1.15rem; box-shadow: 0 4px 18px rgba(245,207,90,.28); }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--card2); }
.nav a.on { color: var(--text); background: var(--card2); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.credits { display: inline-flex; align-items: center; gap: 6px; background: rgba(245,207,90,.12); color: var(--yellow);
  border: 1px solid rgba(245,207,90,.35); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .9rem;
  text-decoration: none; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; text-decoration: none; }

/* Barre d'onglets en bas (téléphone) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .top .wrap { height: 58px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(15,15,22,.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; text-align: center; text-decoration: none; color: var(--dim); font-size: .72rem; font-weight: 600;
    padding: 4px 0; border-radius: 12px; }
  .tabbar a span { display: block; font-size: 1.25rem; line-height: 1.3; }
  .tabbar a.on { color: var(--yellow); }
  main { padding-bottom: 92px; }
}

/* Titres */
main { padding: 26px 0 60px; }
.eyebrow { color: var(--yellow); text-transform: uppercase; letter-spacing: .24em; font-weight: 700; font-size: .76rem; }
h1, .h1 { font-family: var(--title); font-weight: 900; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(2.1rem, 5.4vw, 3.3rem); margin: 8px 0 12px; }
h2 { font-family: var(--title); font-weight: 800; letter-spacing: -.035em; font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  margin: 6px 0 6px; line-height: 1.1; }
h3 { font-family: var(--title); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; font-size: 1.15rem; }
.y { color: var(--yellow); }
.g { background: linear-gradient(90deg, var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin: 0; }
.lead b { color: var(--text); }
.section { margin-top: 38px; }

/* Cartes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.soft { background: var(--card2); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .g2, .g3 { grid-template-columns: 1fr; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  padding: 12px 20px; font-weight: 700; border: 1px solid var(--line); background: var(--card2); color: var(--text);
  text-decoration: none; cursor: pointer; transition: transform .12s ease, border-color .12s ease, opacity .12s; font-size: .98rem; }
.btn:hover { border-color: var(--yellow); transform: translateY(-1px); }
.btn.primary { background: var(--yellow); color: #15110A; border: none; box-shadow: 0 10px 32px rgba(245,207,90,.28); }
.btn.primary:hover { background: var(--yellow2); }
.btn.big { padding: 17px 26px; font-size: 1.1rem; width: 100%; }
.btn.small { padding: 8px 14px; font-size: .88rem; }
.btn.ghost { background: transparent; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Formulaires */
label { display: block; font-weight: 600; margin: 0 0 6px; font-size: .95rem; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; background: #0F0F17; border: 1px solid var(--line2); border-radius: 14px; padding: 13px 15px;
  outline: none; transition: border-color .12s; font-size: 1rem; }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--yellow); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--yellow); width: 18px; height: 18px; }
.drop { border: 1.5px dashed var(--line2); border-radius: 16px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--yellow); color: var(--text); }

/* Onglets */
.tabs { display: flex; gap: 6px; background: #0F0F17; border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 18px; }
.tabs button { flex: 1; border: none; background: transparent; padding: 10px 14px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--yellow); color: #15110A; }

/* Choix en pastilles */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; border: 1px solid var(--line2); background: #0F0F17; border-radius: 999px; padding: 9px 14px;
  font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--muted); }
.chip input:checked + span { border-color: var(--yellow); color: var(--text); background: rgba(245,207,90,.10); }

/* Messages */
.alert { border-radius: 16px; padding: 13px 16px; margin: 0 0 16px; font-weight: 600; }
.alert.err { background: rgba(255,122,138,.10); border: 1px solid rgba(255,122,138,.35); color: #FFC2CB; }
.alert.ok { background: rgba(126,224,168,.10); border: 1px solid rgba(126,224,168,.35); color: #C9F5DA; }
.alert.info { background: rgba(245,207,90,.08); border: 1px solid rgba(245,207,90,.3); color: #FBE7A6; }

/* Pastilles d'info */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.pill { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; font-size: .88rem; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .74rem; font-weight: 700; }
.badge.star { background: rgba(245,207,90,.14); color: var(--yellow); }
.badge.new { background: rgba(126,224,168,.12); color: var(--green); }
.badge.run { background: rgba(245,207,90,.14); color: var(--yellow); }
.badge.done { background: rgba(126,224,168,.12); color: var(--green); }
.badge.fail { background: rgba(255,122,138,.12); color: var(--red); }

/* Étapes */
.steps { display: flex; gap: 8px; margin: 18px 0 4px; }
.step { flex: 1; text-align: center; padding: 8px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--dim); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.step.done { color: var(--green); border-color: #2C4A3A; }
.step.now { background: var(--yellow); color: #15110A; border-color: transparent; box-shadow: 0 6px 20px rgba(245,207,90,.25); }

/* Personnages */
.char { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.char .head { display: flex; gap: 10px; align-items: center; }
.char .emo { width: 44px; height: 44px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.char .name { font-family: var(--title); font-weight: 800; font-size: 1.12rem; line-height: 1.1; }
.look { aspect-ratio: 3/4; border-radius: 16px; background: #0F0F17; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--dim); font-size: .88rem; padding: 0; }
.look img { width: 100%; height: 100%; object-fit: cover; }
.look .lock { padding: 14px; }

/* Script en bulles */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.bubble { display: flex; gap: 10px; }
.bubble .av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line); flex-shrink: 0; font-size: 1.25rem; }
.bubble .msg { background: var(--card2); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 8px 14px; }
.bubble .who { font-weight: 800; font-size: .84rem; }
.bubble .tag { display: inline-block; background: rgba(239,79,111,.15); color: #F58BA0; border-radius: 999px; padding: 0 8px; font-size: .7rem; font-weight: 700; margin-left: 6px; }
.bubble .scene { color: var(--dim); font-size: .78rem; margin-top: 2px; }
.bubble.narr .msg { background: #1C1928; font-style: italic; }

/* Barre de progression */
.progress { height: 12px; background: #0F0F17; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow)); transition: width .6s ease; }

/* Vidéos */
.phone { border-radius: 30px; background: #08080D; border: 1px solid var(--line2); padding: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); max-width: 340px; margin: 0 auto; }
.phone video { border-radius: 24px; width: 100%; aspect-ratio: 9/16; background: #000; }
.vcard { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.vcard .thumb { aspect-ratio: 9/14; background: #0F0F17; display: grid; place-items: center; font-size: 2.2rem; position: relative; }
.vcard .thumb video { width: 100%; height: 100%; object-fit: cover; }
.vcard .meta { padding: 10px 12px; }
.vcard .meta b { display: block; font-size: .95rem; line-height: 1.25; }

/* Tarifs */
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.pop { border-color: rgba(245,207,90,.6); box-shadow: 0 0 0 1px rgba(245,207,90,.25), 0 20px 60px rgba(245,207,90,.08); }
.plan .price { font-family: var(--title); font-weight: 900; font-size: 2.4rem; letter-spacing: -.04em; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.plan li::before { content: "✓ "; color: var(--yellow); font-weight: 800; }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--yellow); color: #15110A; border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 800; }
.toggle { display: inline-flex; background: #0F0F17; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.toggle button { border: none; background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--muted); cursor: pointer; }
.toggle button.on { background: var(--card2); color: var(--text); }

/* Tableaux */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.scroll-x { overflow-x: auto; }

/* Authentification */
.auth { max-width: 440px; margin: 6vh auto 0; }
.auth .brand { margin-bottom: 26px; }
details summary { cursor: pointer; color: var(--muted); font-weight: 600; }
details[open] summary { margin-bottom: 12px; }
footer { color: var(--dim); font-size: .85rem; padding: 26px 0 40px; text-align: center; }
footer a { color: var(--muted); }

.voice-row { display: flex; gap: 6px; }
.voice-row select { flex: 1; min-width: 0; padding: 9px 30px 9px 10px; font-size: .9rem; }
.voice-row .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .tabs button { font-size: .9rem; padding: 10px 8px; }
  .char { padding: 10px; }
  .char .btn.small { padding: 8px 8px; font-size: .8rem; }
  .voice-row { flex-direction: column; }
}

/* Vitrine */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 10px; }
.mega { font-size: clamp(2.5rem, 6.4vw, 4.4rem); }
.feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.feats span { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 13px; font-size: .92rem; }
.btn.big-inline { padding: 16px 26px; font-size: 1.08rem; background: var(--yellow); color: #15110A; border: none; box-shadow: 0 10px 34px rgba(245,207,90,.32); }
.hero-phone { position: relative; }
.hero-phone .phone { max-width: 320px; position: relative; }
.sound { position: absolute; bottom: 22px; right: 22px; background: rgba(11,11,18,.72); color: var(--text); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); }
.floating { position: absolute; left: -6px; bottom: 70px; background: var(--card); border: 1px solid var(--line2); border-radius: 16px; padding: 12px 16px; transform: rotate(-3deg); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.h2big { font-size: clamp(1.8rem, 4.6vw, 2.8rem); letter-spacing: -.045em; font-weight: 900; margin-bottom: 16px; }
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.reel-item { position: relative; scroll-snap-align: start; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 9/16; }
.reel-item video { width: 100%; height: 100%; object-fit: cover; }
.chip-tag { position: absolute; top: 10px; left: 10px; background: rgba(11,11,18,.7); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; color: var(--yellow); backdrop-filter: blur(6px); }
.steps3 .card { display: flex; flex-direction: column; gap: 6px; }
.steps3 .num { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: #15110A; display: grid; place-items: center; font-weight: 900; }
.steps3 p { margin: 0 0 8px; }
.mock-input { margin-top: auto; background: #0F0F17; border: 1px solid var(--line2); border-radius: 14px; padding: 14px; color: var(--muted); font-style: italic; }
.mini-cast { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mini-cast img { border-radius: 10px; aspect-ratio: 3/4; object-fit: cover; }
.mini-phone { margin: auto auto 0; width: 120px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); aspect-ratio: 9/16; background: #000; }
.mini-phone video { width: 100%; height: 100%; object-fit: cover; }
.cast-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 10px; text-align: center; }
.cast-card img { border-radius: 14px; aspect-ratio: 3/4; object-fit: cover; width: 100%; margin-bottom: 8px; }
.cast-card b { font-family: var(--title); font-size: 1.1rem; }
.faq details { margin-top: 10px; }
.faq summary { color: var(--text); font-weight: 700; }
.faq details p { margin: 10px 0 0; }
.cta-band { text-align: center; background: linear-gradient(135deg, rgba(239,79,111,.14), rgba(245,207,90,.12)); border: 1px solid var(--line); border-radius: 28px; padding: 44px 20px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-phone .phone { max-width: 280px; }
  .floating { left: 4px; }
  .reel { grid-auto-columns: 46%; }
}

.nowrap { white-space: nowrap; }
.show-xs { display: none; }
@media (max-width: 420px) { .hide-xs { display: none; } .show-xs { display: inline; } .top .right { gap: 6px; } .top .btn.small { padding: 8px 12px; } .brand { font-size: 1.1rem; } }
