:root {
  color-scheme: dark;
}
body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background: #111;
  color: #f3f3f3;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  background: #111;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo {
  width: 36px;
  height: 36px;
}
.nav a {
  color: #ddd;
  text-decoration: none;
  margin-left: 12px;
}
.nav a:hover {
  color: #fff;
}
.container {
  padding: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.site-footer {
  padding: 16px;
  border-top: 1px solid #222;
  color: #aaa;
}
/* Fix global : empêche width 100% + padding de dépasser */
*,
*::before,
*::after {
  box-sizing: border-box;
}
input,
textarea,
button {
  font: inherit;
}
input,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #333;
  background: #0b0b0b;
  color: #fff;
  border-radius: 10px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.22);
}
button {
  padding: 10px 14px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}
button:hover {
  background: #222;
}

/* ====== AJOUTS VITRINE PRO ====== */
.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
  margin: 10px 0 18px;
  border: 1px solid #222;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.35);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: left center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 58%,
    rgba(0, 0, 0, 0.12) 100%
  );
}
.hero__content {
  position: relative;
  padding: 26px;
  max-width: 720px;
}
.hero__kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}
.hero__title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}
.hero__lead {
  margin: 0 0 16px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
}
.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.hero__hint {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 14px 0;
}
.card {
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 16px;
}
.card h2 {
  margin-top: 0;
}

.muted {
  color: rgba(255, 255, 255, 0.72);
}

.list {
  padding-left: 18px;
  margin: 0 0 10px;
}
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #222;
  background: #111;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
}
.btn:hover {
  background: #222;
}
.btn--primary {
  background: #fff;
  color: #aaa;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn--primary:hover {
  filter: brightness(0.92);
}
.btn--secondary {
  background: #1a1a1a;
  color: #fff;
}
.btn--ghost {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.5);
}

.cta {
  margin: 16px 0;
}
.cta__box {
  background: linear-gradient(180deg, #0b0b0b 0%, #0f0f0f 100%);
  border: 1px solid #222;
  border-radius: 18px;
  padding: 18px;
}
.cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Responsive : nav qui déborde sur mobile */
@media (max-width: 720px) {
  .nav {
    display: flex;
    gap: 10px;
    overflow: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  .nav a {
    margin-left: 0;
  }
}

/* ====== FORM CONTACT ====== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 10px 0 12px;
}
label {
  display: block;
  margin: 0 0 10px;
}
label input,
label textarea {
  margin-top: 6px;
}

.req {
  color: #fff;
  opacity: 0.85;
}

.notice {
  border: 1px solid #222;
  border-radius: 14px;
  padding: 12px 12px;
  margin: 12px 0;
  background: #0f0f0f;
}
.notice.success {
  border-color: rgba(120, 220, 160, 0.35);
}
.notice.error {
  border-color: rgba(255, 120, 120, 0.35);
}

.field-error input,
.field-error textarea {
  border-color: rgba(255, 120, 120, 0.55);
}

.thanks {
  padding: 10px 0 24px;
}
.thanks__card {
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 18px;
  max-width: 760px;
  margin: 0 auto;
}
.thanks__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid #222;
  text-align: left;
}
.table th {
  color: #ddd;
  font-weight: 700;
}
.table td {
  color: #f3f3f3;
}

/* ====== SCENE (TABLETTE) ====== */
.scene {
  margin-top: 10px;
}
.scene__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.scene__kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  font-size: 0.9rem;
}
.scene__title {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.1;
}
.scene__sub {
  margin: 0;
}
.scene__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scene__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: start;
}

.scene__panel {
  position: sticky;
  top: 76px;
} /* header sticky */
.scene__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.scene__item {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #222;
  text-decoration: none;
  color: #fff;
  background: #111;
}
.scene__item:hover {
  background: #151515;
}
.scene__item.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: #0f0f0f;
}
.scene__itemTitle {
  display: block;
  font-weight: 700;
}
.scene__itemMeta {
  display: block;
  font-size: 0.92rem;
  margin-top: 2px;
}

.scene__hr {
  border: 0;
  border-top: 1px solid #222;
  margin: 14px 0;
}

.scene__navBtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.scene__content {
  height: calc(100vh - 160px);
  overflow: auto;
}
.scene__toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.scene__status {
  white-space: nowrap;
}

.scene__lyrics {
  margin: 0;
  white-space: pre-wrap;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 28px; /* ajustable */
  line-height: 1.35;
}

/* Mobile / tablette portrait */
@media (max-width: 900px) {
  .scene__layout {
    grid-template-columns: 1fr;
  }
  .scene__panel {
    position: static;
  }
  .scene__content {
    height: auto;
    max-height: 70vh;
  }
}

select {
  width: 100%;
  max-width: 520px;
  padding: 10px;
  border: 1px solid #333;
  background: #0b0b0b;
  color: #fff;
  border-radius: 10px;
}

/* Admin table actions */
.btn--sm {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.inline {
  display: inline;
}
.row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #222;
  font-weight: 700;
  font-size: 0.9rem;
}
.badge--ok {
  background: #0f1a12;
  border-color: #1f3a26;
  color: #cfead6;
}
.badge--off {
  background: #181818;
  border-color: #2a2a2a;
  color: #cfcfcf;
}

/* Boutons "variants" (si tu veux du contraste) */
.btn--primary {
  background: #1a1a1a;
}
.btn--danger {
  background: #2a1414;
  border-color: #3a1a1a;
}
.btn--danger:hover {
  background: #351818;
}

/* Header responsive: nav scroll horizontal propre */
.site-header {
  gap: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.nav::-webkit-scrollbar {
  display: none;
} /* Chrome/Edge */

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  background: #171717;
}

/* Sur mobile/tablette : un peu plus compact */
@media (max-width: 900px) {
  .site-header {
    padding: 10px 12px;
  }
  .brand span {
    display: none; /* garde juste l’icône, plus clean en petit écran */
  }
  .container {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .nav a {
    padding: 10px 12px;
  }
  .nav {
    gap: 8px;
  }
}
