/* ============================================================
   Pop Factory — cakepop.be
   Direction artistique : noir profond · ivoire · or champagne
   Typographie premium
   ============================================================ */

:root {
  --bg: #070707;
  --bg-elevated: #0e0e0e;
  --bg-card: #121212;
  --ivory: #f7f3eb;
  --ivory-muted: #a89f8f;
  --gold: #c9a86c;
  --gold-light: #e4d0a0;
  --gold-dim: rgba(201, 168, 108, 0.35);
  --biscuit: #c4a574;
  --ruby: #8b2942;
  --border: rgba(201, 168, 108, 0.18);
  --border-strong: rgba(201, 168, 108, 0.4);
  --radius: 2px;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ivory);
  line-height: 1.7;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #070707;
  background-image:
    radial-gradient(ellipse 120% 80% at 20% -10%, rgba(201, 168, 108, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 90% 10%, rgba(180, 180, 190, 0.05) 0%, transparent 45%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(201, 168, 108, 0.04) 0%, transparent 50%),
    linear-gradient(165deg, #0c0c0c 0%, #070707 40%, #0a0a0c 70%, #080808 100%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--ivory);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7, 7, 7, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  height: 34px;
  width: auto;
  filter: brightness(1.15);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch a {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--ivory-muted);
  padding: 4px 5px;
  font-weight: 400;
}

.lang-switch a.active { color: var(--gold); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 108, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(247, 243, 235, 0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 108, 0.06);
}

.btn-pro {
  background: var(--gold);
  color: #0a0a0a !important;
  padding: 11px 20px;
}

.btn-pro:hover { background: var(--gold-light) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.4rem;
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 130px 5% 90px;
}

.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 400;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin-bottom: 28px;
  font-weight: 400;
}

.hero h1 span {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  color: var(--ivory-muted);
  font-size: 1.08rem;
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 1.75;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual video {
  pointer-events: none;

  width: 100%;
  max-width: 500px;
  border-radius: 2px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--border);
  background: #050505;
}

/* --- Trust bar --- */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 5%;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  font-weight: 400;
}

.trust-bar span {
  color: var(--gold);
  margin: 0 10px;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 400;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--ivory-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.7;
}

/* --- Cards --- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 42px 28px;
  text-align: center;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  font-family: var(--font-display);
}

.card h3 {
  color: var(--gold-light);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.card p {
  color: var(--ivory-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  font-weight: 300;
}

/* --- Products --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #0a0a0a;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55);
}

.product-img {
  aspect-ratio: 1;
  background: radial-gradient(ellipse at 50% 35%, #161616 0%, #050505 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.product-img img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  filter:
    drop-shadow(0 20px 32px rgba(0, 0, 0, 0.7))
    contrast(1.06)
    saturate(1.05);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
  position: relative;
  z-index: 1;
}

.product-card:hover .product-img img {
  transform: scale(1.07) translateY(-4px);
  filter:
    drop-shadow(0 28px 40px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 20px rgba(201, 168, 108, 0.15))
    contrast(1.08)
    saturate(1.08)
    brightness(1.04);
}

/* Dynamic light sweep on product cards */
.product-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 48%,
    rgba(201, 168, 108, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 52%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: productLight 6s ease-in-out infinite;
  opacity: 0.85;
}

.product-card:hover .product-img::before {
  animation-duration: 2.5s;
  opacity: 1;
}

@keyframes productLight {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

.product-img.placeholder {
  color: var(--ivory-muted);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.product-info {
  padding: 24px 20px 28px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.product-info h3 {
  color: var(--gold-light);
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.product-info p {
  font-size: 0.86rem;
  color: var(--ivory-muted);
  margin-bottom: 14px;
  line-height: 1.55;
  font-weight: 300;
}

.product-price {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 400;
}

.product-info .btn {
  width: 100%;
  padding: 12px;
}

/* --- Two columns --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col ul li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: var(--ivory);
  font-weight: 300;
  font-size: 0.98rem;
}

.two-col ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* --- Quote --- */
.quote-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
  position: relative;
}

.quote-block::before {
  content: '“';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold-dim);
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 18px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.quote-block cite {
  color: var(--gold);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* --- Form --- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  margin-bottom: 8px;
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ivory);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  border-radius: var(--radius);
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--ivory-muted);
  margin-top: 16px;
  font-weight: 300;
}

.alert {
  padding: 18px 22px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.alert-success {
  background: rgba(201, 168, 108, 0.08);
  color: var(--gold-light);
}

.alert-error {
  background: rgba(139, 41, 66, 0.12);
  color: #e8a0b0;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 5% 36px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo img { height: 26px; }

.footer-meta {
  font-size: 0.78rem;
  color: var(--ivory-muted);
  margin-bottom: 18px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.68rem;
  color: rgba(168, 159, 143, 0.45);
  letter-spacing: 0.04em;
  line-height: 1.6;
}


/* Hide native video controls */
video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }
.hero-visual video {
  pointer-events: none;
}

/* Metallic sheen overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      125deg,
      transparent 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.015) 45%,
      rgba(201, 168, 108, 0.03) 50%,
      rgba(255, 255, 255, 0.012) 55%,
      transparent 60%,
      transparent 100%
    );
  background-size: 200% 200%;
  animation: metallicSheen 18s ease-in-out infinite;
}

@keyframes metallicSheen {
  0%, 100% { background-position: 0% 50%; opacity: 0.7; }
  50% { background-position: 100% 50%; opacity: 1; }
}

main, .site-header, .site-footer {
  position: relative;
  z-index: 1;
}

/* --- Admin --- */
.admin-body { background: #0a0a0a; }
.admin-wrap { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.admin-nav { display: flex; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.admin-table th {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* —— Or pur brillant sur les textes dorés —— */
.hero h1 span,
.logo-sub,
.hero-eyebrow,
.section-eyebrow,
.product-info h3,
.product-price,
.card h3,
.nav-links a.active,
.nav-links a:hover,
.lang-switch a.active,
.quote-block cite,
.trust-bar span {
  background: linear-gradient(
    110deg,
    #8a7038 0%,
    #c9a86c 18%,
    #f0e0b0 32%,
    #ffe9a8 42%,
    #e4d0a0 52%,
    #c9a86c 68%,
    #a88b4a 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShine 5s linear infinite;
  filter: drop-shadow(0 0 12px rgba(201, 168, 108, 0.25));
}

@keyframes goldShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Titres principaux : or plus intense */
.hero h1 span {
  filter: drop-shadow(0 0 18px rgba(201, 168, 108, 0.35));
  animation-duration: 4s;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 110px;
    gap: 40px;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-eyebrow::before { display: none; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .cards-3, .products-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: rgba(7, 7, 7, 0.98);
    padding: 28px 5%;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .mobile-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
}

@media (max-width: 560px) {
  .cards-3, .products-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
}
