@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #060b0d;
  --bg-panel: #0b1518;
  --ink: #f6ede2;
  --ink-soft: rgba(246, 237, 226, 0.68);
  --ink-faint: rgba(246, 237, 226, 0.45);
  --ember: #ff5a2e;
  --ember-soft: #ff8a4c;
  --gold: #ffcf7a;
  --teal: #123138;
  --palm: #2f8f6f;
  --card: #0d1a1e;
  --border: rgba(246, 237, 226, 0.14);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 13, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
}
.site-header .wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: "Fredoka", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}
.logo .pam { color: var(--ink); }
.logo .ia { color: var(--ember); }
.logo-img { height: 26px; width: auto; display: block; }
.site-footer .logo-img { height: 30px; }

/* ---------- Intro animation ---------- */
.intro-screen {
  position: fixed;
  inset: 0;
  height: 100dvh;
  width: 100vw;
  z-index: 300;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
.intro-screen.hide { opacity: 0; pointer-events: none; }
.intro-screen video {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 700px) {
  .intro-screen video {
    object-fit: contain;
    min-width: 0;
    min-height: 0;
  }
}
.intro-skip {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: none;
  border: 2px solid var(--border);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: "Fredoka", sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.intro-skip:hover { border-color: var(--gold); color: var(--gold); }

.main-nav { display: flex; gap: 8px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background-color 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--teal); color: var(--ink); }
.main-nav a.active { background: var(--ember); color: #fff; }

.header-socials { display: flex; gap: 14px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-bottle { flex-shrink: 0; }
.header-socials a {
  width: 38px; height: 38px;
  border: 2px solid var(--border);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.header-socials a:hover { background: var(--gold); border-color: var(--gold); color: #1a1006; }

.menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 78px 0 0 0;
  z-index: 40;
  background: var(--bg);
  padding: 30px 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.mobile-nav .header-socials {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.mobile-nav .header-socials a {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

@media (max-width: 860px) {
  .main-nav, .header-right { display: none; }
  .menu-btn { display: flex; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-bottom: 2px solid var(--border);
  background: linear-gradient(90deg, var(--teal), #1a0f08 60%, var(--teal));
  color: var(--gold);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}
.marquee-track {
  display: inline-flex;
  animation: scroll-left 26s linear infinite;
}
.marquee-track span {
  font-family: "Fredoka", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0 22px;
  text-transform: uppercase;
}
.marquee-track span.dot { color: var(--ember); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-flower {
  position: absolute;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}
.hero-bottle {
  position: absolute;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #241505;
}
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  max-width: 760px;
  color: var(--ink);
}
.hero h1 .accent {
  background: linear-gradient(95deg, var(--ember) 10%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin: 20px 0 0;
  max-width: 560px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
}
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Wave divider ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--teal); }
.btn.solid { background: var(--ember); color: #fff; }
.btn.solid2 { background: var(--gold); color: #241505; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--gold); }

/* ---------- About block ---------- */
.about-block {
  padding: 70px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  background: var(--bg-panel);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

.tag {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ember-soft);
}
.about-block h2 { margin: 10px 0 0; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--ink); }
.about-body p { color: var(--ink-soft); line-height: 1.75; font-size: 1.02rem; }
.about-body strong { color: var(--gold); }

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.credential-pill {
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1006;
  background: var(--gold);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.credential-pill:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.credential-pill:nth-child(2) { background: var(--ember-soft); color: #24090a; }
.credential-pill:nth-child(3) { background: var(--palm); color: #06140f; }

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-head h1, .section-head h2 { margin: 10px 0 0; font-size: clamp(1.8rem, 4vw, 2.3rem); color: var(--ink); }
.section-head p { color: var(--ink-soft); max-width: 420px; margin: 10px 0 0; }

.center { text-align: center; }

.portfolio-section { margin-bottom: 60px; }
.portfolio-section:last-child { margin-bottom: 0; }

.portfolio-subgroup { margin-bottom: 34px; }
.portfolio-subgroup:last-child { margin-bottom: 0; }
.subgroup-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.subgroup-head .subtag {
  font-family: "Fredoka", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Portfolio grid ---------- */
.filters { display: flex; gap: 10px; margin-bottom: 28px; }
.filters button {
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}
.filters button.active { background: var(--ember); color: #fff; border-color: transparent; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid var(--border);
  padding: 0;
  aspect-ratio: 4 / 3;
  display: block;
  width: 100%;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.tile:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--teal); border-color: var(--ember); }
.tile.vertical { aspect-ratio: 3 / 4; }
.tile.tall { grid-row: span 2; }
.tile img, .tile video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.tile .badge {
  position: absolute; top: 12px; left: 12px;
  font-family: "Fredoka", sans-serif;
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  background: var(--gold);
  color: #241505;
  padding: 4px 10px;
  border-radius: 999px;
}
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.tile .tool-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--gold);
  padding: 5px 11px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s;
  z-index: 2;
}
.tile:hover .tool-badge { opacity: 1; transform: translateY(0); }
.tile .tool-badge:hover { background: var(--ember); color: #fff; }

.tile.placeholder {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 20px;
  background: repeating-linear-gradient(135deg, var(--card), var(--card) 10px, var(--bg-panel) 10px, var(--bg-panel) 20px);
  border: 2px dashed var(--border);
  color: var(--ink-faint);
  font-size: 0.82rem;
}
.tile.placeholder .ph-title { color: var(--ink-soft); font-weight: 600; font-size: 1rem; margin-bottom: 6px; }

/* ---------- Tools ---------- */
.tools-category {
  margin-bottom: 54px;
}
.tools-category:last-child { margin-bottom: 0; }
.tools-category-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.tools-category-head .dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.tools-category-head h3 {
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0;
}
.tools-category-head .count {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
}
.tools-category[data-cat="Image"] .tools-category-head .dot { background: var(--ember); }
.tools-category[data-cat="Vidéo"] .tools-category-head .dot { background: var(--gold); }
.tools-category[data-cat="Musique"] .tools-category-head .dot { background: var(--palm); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  border: 2px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}
.tool-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--teal); border-color: var(--ember); }
.tool-card-top { display: flex; align-items: center; gap: 12px; }
.tool-card img { width: 30px; height: 30px; object-fit: contain; opacity: 0.9; flex-shrink: 0; }
.tool-card .name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.tool-card .opinion {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin: 0;
}
.tool-card .opinion::before { content: "“ "; color: var(--gold); font-style: normal; }
.tool-card .opinion::after { content: " ”"; color: var(--gold); font-style: normal; }

/* ---------- Créateurs à suivre ---------- */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 780px) { .creators-grid { grid-template-columns: 1fr; } }

.creator-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}
.creator-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--teal); border-color: var(--ember); }
.creator-card-top { display: flex; align-items: center; gap: 12px; }
.creator-card-top img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; opacity: 0.9; }
.creator-card .name { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.creator-card .desc { color: var(--ink-soft); font-size: 0.85rem; line-height: 1.5; margin: 0; }
.creator-card .link-arrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; margin-top: auto; padding-top: 6px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 6, 7, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.lightbox.open { display: flex; }
.lightbox-panel {
  width: 100%; max-width: 1080px; max-height: 90dvh; overflow-y: auto;
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.4);
}
@media (max-width: 800px) { .lightbox-panel { grid-template-columns: 1fr; } }
.lightbox-media { background: #000; display: flex; align-items: center; }
.lightbox-media img, .lightbox-media video { width: 100%; max-height: 80dvh; object-fit: contain; }
.lightbox-info { padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.lightbox-info h3 { margin: 6px 0 0; font-size: 1.6rem; color: var(--ink); }
.lightbox-info p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 999px;
  border: 2px solid #fff; background: none; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--gold);
  color: #241505;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--border); background: #030607; color: var(--ink); }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 30px;
  justify-content: space-between; align-items: flex-end;
  padding: 50px 0;
}
.site-footer .logo .pam { color: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-turtle { flex-shrink: 0; }
.footer-bottle { flex-shrink: 0; }
.footer-tagline { font-size: 0.72rem; letter-spacing: 0.15em; color: var(--ink-faint); margin-top: 12px; text-transform: uppercase; }
.footer-nav { display: flex; gap: 22px; font-weight: 600; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--gold); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-socials a {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  border: 2px solid var(--border);
  border-radius: 999px; padding: 6px 14px;
  color: var(--ink-soft);
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0; text-align: center; font-size: 0.72rem;
  color: var(--ink-faint);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.note-box {
  margin-top: 40px;
  padding: 16px 20px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  color: var(--ink-faint);
  font-size: 0.85rem;
  background: var(--card);
}
