/*
Theme Name: ZOT Base
Theme URI: https://jst6.fr
Author: Texer / ZOT SDK
Description: Minimal theme shell for ZOT SDK — look via theme_mods / presets (ADR 043).
Version: 0.3.0
Text Domain: zot-base
*/

:root {
  --zot-bg: #0f1419;
  --zot-surface: #1a222c;
  --zot-text: #e8eef4;
  --zot-muted: #8b9aab;
  --zot-accent: #3d9cf0;
  --zot-accent-soft: rgba(61, 156, 240, 0.18);
  --zot-border: rgba(232, 238, 244, 0.12);
  --zot-font: "DM Sans", system-ui, sans-serif;
  --zot-font-display: "DM Sans", system-ui, sans-serif;
  --zot-radius: 4px;
  --zot-max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--zot-accent-soft), transparent 55%),
    linear-gradient(180deg, #1a1512 0%, var(--zot-bg) 40%, #0e0c0b 100%);
  color: var(--zot-text);
  font-family: var(--zot-font);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

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

.site-header,
.site-footer,
.site-main {
  max-width: var(--zot-max);
  margin: 0 auto;
  padding: 28px 24px;
}

/* Page-builder pages: main full-bleed; header/footer stay max-width */
body.zot-has-pb .site-main,
.site-main.is-zot-pb {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--zot-border);
  padding-top: 32px;
  padding-bottom: 20px;
}

.site-title {
  font-family: var(--zot-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  text-decoration: none;
  color: var(--zot-text);
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--zot-muted);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-menu a:hover { color: var(--zot-text); }

.site-main h1,
.site-main h2,
.zot-pb-hero h1 {
  font-family: var(--zot-font-display);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.zot-pb-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin: 0 0 12px;
}

.zot-pb {
  margin: 0 0 28px;
}

.zot-pb-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--zot-border);
}

.zot-pb-text,
.zot-pb-cta,
.card {
  background: color-mix(in srgb, var(--zot-surface) 92%, transparent);
  border: 1px solid var(--zot-border);
  border-radius: var(--zot-radius);
  padding: 28px 26px;
  margin: 20px 0;
  backdrop-filter: blur(6px);
}

.zot-pb-button,
.button-primary {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  background: var(--zot-accent);
  color: #1a1410 !important;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zot-pb-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--zot-accent-soft);
}

.featured-hero {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--zot-radius);
  margin: 8px 0 28px;
  border: 1px solid var(--zot-border);
}

.site-footer {
  color: var(--zot-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--zot-border);
  margin-top: 40px;
}

/* ── Hero media ───────────────────────────────────────────────────────────── */

.zot-pb-hero {
  display: grid;
  gap: 28px;
  padding: 12px 0 36px;
  border-bottom: 1px solid var(--zot-border);
}

.zot-pb-hero-media img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--zot-radius);
  border: 1px solid var(--zot-border);
}

.zot-pb-lead {
  font-size: 1.1rem;
  color: var(--zot-muted);
  max-width: 42rem;
}

.zot-pb-actions { margin: 18px 0 0; }

/* ── Slider ───────────────────────────────────────────────────────────────── */

.zot-pb-slider {
  margin: 36px 0;
}

.zot-pb-slider-heading {
  margin: 0 0 16px;
}

.zot-pb-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--zot-radius);
  border: 1px solid var(--zot-border);
  background: var(--zot-surface);
  aspect-ratio: 16 / 9;
}

.zot-pb-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.zot-pb-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.zot-pb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zot-pb-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 28px 24px;
  background: linear-gradient(transparent, rgba(20, 18, 16, 0.72));
  color: #f7f4ef;
}

.zot-pb-slide h3 {
  font-family: var(--zot-font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 8px;
  color: #f7f4ef;
}

.zot-pb-slide-caption a.zot-pb-button {
  color: #1a1410 !important;
}

.zot-pb-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.zot-pb-slider-prev,
.zot-pb-slider-next {
  width: 40px;
  height: 40px;
  border: 1px solid var(--zot-border);
  background: var(--zot-surface);
  color: var(--zot-text);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.zot-pb-slider-dots {
  display: flex;
  gap: 8px;
}

.zot-pb-slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--zot-border);
  cursor: pointer;
}

.zot-pb-slider-dots button[aria-selected="true"] {
  background: var(--zot-accent);
  width: 22px;
}

/* ── Profile cards ────────────────────────────────────────────────────────── */

.zot-pb-profiles {
  margin: 40px 0;
}

.zot-pb-profiles-intro {
  margin-bottom: 22px;
}

.zot-pb-profiles-intro h2 {
  margin: 0 0 8px;
}

.zot-pb-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.zot-pb-profile-card {
  display: flex;
  flex-direction: column;
  background: var(--zot-surface);
  border: 1px solid var(--zot-border);
  border-radius: var(--zot-radius);
  overflow: hidden;
  min-height: 100%;
}

.zot-pb-profile-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: color-mix(in srgb, var(--zot-accent) 18%, var(--zot-surface));
}

.zot-pb-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zot-pb-profile-fallback {
  display: grid;
  place-items: center;
  font-family: var(--zot-font-display);
  font-size: 3rem;
  color: var(--zot-accent);
}

.zot-pb-profile-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.zot-pb-profile-name {
  font-family: var(--zot-font-display);
  font-size: 1.35rem;
  margin: 0;
}

.zot-pb-profile-role {
  margin: 0;
  color: var(--zot-accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.zot-pb-profile-meta {
  margin: 0;
  color: var(--zot-muted);
  font-size: 0.9rem;
}

.zot-pb-profile-bio {
  margin-top: 6px;
  color: var(--zot-muted);
  font-size: 0.95rem;
}

.zot-pb-profile-body .zot-pb-actions {
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .zot-pb-slider-viewport {
    aspect-ratio: 4 / 5;
  }
}
