/* ===========================================================================
   akiden.fr — charte « braise », partagée avec le dashboard Akibot.
   =========================================================================== */

:root {
  --bg: #26130a;
  --panel: rgba(255, 238, 228, 0.055);
  --panel-2: rgba(255, 238, 228, 0.08);
  --border: rgba(255, 193, 150, 0.13);
  --border-strong: rgba(255, 193, 150, 0.26);
  --accent: #ff8a5c;
  --accent-light: #ffc079;
  --accent-grad: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  --text: #fbeadd;
  --muted: #cbab9b;
  --ok: #48c9a0;
  --warn: #ffbb4d;
  --shadow: 0 20px 50px rgba(24, 6, 34, 0.5);
  --radius: 16px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 460px at 50% 118%, rgba(255,180,110,0.34), transparent 62%),
    radial-gradient(1000px 520px at 80% -6%, rgba(255,140,80,0.28), transparent 60%),
    radial-gradient(860px 500px at 12% 6%, rgba(230,120,110,0.18), transparent 58%),
    linear-gradient(180deg, #2a1206 0%, #3d1c0a 40%, #6b2f16 74%, #9a4522 100%);
  background-attachment: fixed;
}

a { color: var(--accent-light); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(38, 19, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--accent-light);
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 15px;
}
.nav-links .nav-cta:hover { background: var(--panel-2); }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Structure ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

.section { padding: clamp(56px, 9vw, 100px) 0; }
.section-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.2;
}
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 0 0 28px; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 12vw, 130px) 0 clamp(40px, 7vw, 80px); }
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 16px;
  margin: 0 0 26px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 6.2vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.9vw, 1.18rem); max-width: 60ch; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-grad); color: #2a1206; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .6; cursor: default; filter: none; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); }

/* ---------- Cartes ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card-ico { font-size: 1.7rem; margin-bottom: 12px; }
.card h3 { font-family: var(--display); font-size: 1.08rem; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------- Bloc mis en avant ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 44px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}
.panel-soon { border-style: dashed; border-color: var(--border-strong); }
.panel p { color: var(--muted); }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 13px;
  margin: 0 0 14px;
}
.tag-live { color: var(--ok); background: rgba(72, 201, 160, 0.14); }
.tag-stream { color: #c9a2ff; background: rgba(169, 112, 255, 0.16); }
.tag-soon { color: var(--warn); background: rgba(255, 187, 77, 0.14); }

/* ---------- Section Oka / stream (accueil, première vue) ---------- */
.hero-stream { padding: clamp(44px, 8vw, 86px) 0 clamp(48px, 8vw, 90px); }
.hero-stream .hero-title { margin-bottom: 18px; }
.hero-stream .hero-sub { margin-bottom: 26px; }
.hero-stream .hero-actions { margin-top: 0; margin-bottom: 38px; }

.stream-head { margin-bottom: 28px; }
.muted-thin { color: var(--muted); font-weight: 500; font-size: 0.72em; }

.stream-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}
@media (max-width: 900px) { .stream-grid { grid-template-columns: 1fr; } }

/* Lecteur en ratio 16/9 fluide */
.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: #120702;
}
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}
.socials-title { font-family: var(--display); font-size: 1.05rem; margin: 0; }
.socials-sub { color: var(--muted); font-size: 0.86rem; margin: 0 0 6px; }

.social {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.social:hover { transform: translateX(3px); border-color: var(--border-strong); background: var(--panel-2); }
.social-ico { font-size: 1.25rem; flex: 0 0 auto; }
.social-txt { display: flex; flex-direction: column; line-height: 1.3; flex: 1 1 auto; min-width: 0; }
.social-txt strong { font-size: 0.95rem; font-weight: 600; }
.social-txt em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-go { color: var(--muted); flex: 0 0 auto; }
.social-twitch:hover { border-color: #a970ff; }
.social-discord:hover { border-color: #5865f2; }
.social-youtube:hover { border-color: #ff4e45; }
.social-tiktok:hover { border-color: #25f4ee; }
.social-instagram:hover { border-color: #e1306c; }
.social-linktree:hover { border-color: #43e660; }

/* ---------- Section Akibot ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 48px); align-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0 0 10px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.95rem;
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-weight: 700;
}

/* Maquette décorative du tableau de bord */
.mock {
  background: rgba(20, 8, 3, 0.55);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 238, 228, 0.06);
  border-bottom: 1px solid var(--border);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.d1 { background: #ff6b81; } .dot.d2 { background: #ffbb4d; } .dot.d3 { background: #48c9a0; }
.mock-title { margin-left: 8px; font-size: 0.76rem; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.mock-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 13px; }
.mock-row { display: flex; align-items: center; gap: 12px; }
.mock-chip {
  flex: 0 0 92px;
  font-size: 0.76rem;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  text-align: center;
}
.mock-bar-fill { height: 8px; border-radius: 99px; background: var(--accent-grad); }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w45 { width: 45%; } .w35 { width: 35%; }

/* ---------- Formulaire ---------- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}
.form input, .form textarea {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { align-self: flex-start; }

/* Champ piège anti-robot : hors écran, jamais vu ni tabulable par un humain */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { min-height: 22px; margin: 0; font-size: 0.9rem; }
.form-msg.ok { color: var(--ok); }
.form-msg.error { color: #ff6b81; }

/* ---------- Pied de page ---------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 40px clamp(16px, 4vw, 32px) 56px;
  background: rgba(20, 8, 3, 0.35);
}
.footer-in { max-width: 1080px; margin: 0 auto; text-align: center; }
.footer-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-light);
}
.footer-text { color: var(--muted); font-size: 0.88rem; margin: 8px 0 14px; }
.footer-links { font-size: 0.88rem; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-links .sep { color: var(--border-strong); margin: 0 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
