/* ============================================================
   Joker Vidéo Productions — Feuille de style
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --surface: #131318;
  --surface-2: #1b1b22;
  --border: #2a2a33;
  --fg: #f4f2ee;
  --muted: #a2a2ad;
  --primary: #e11d2a;
  --primary-strong: #b3121d;
  --gold: #e8c468;
  --radius: 16px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.eyebrow-accent { color: var(--primary); }

.section-title { font-size: clamp(1.8rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.section-head { max-width: 42rem; margin-bottom: 2.8rem; }
.lead { color: var(--muted); font-size: 1.075rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--primary); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 30px -8px rgba(225, 29, 42, 0.55); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--fg); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled { background: rgba(10, 10, 12, 0.92); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { border-radius: 8px; }
.brand-text { font-size: 1.4rem; font-weight: 800; }
.brand-accent { color: var(--primary); }

.nav-list { list-style: none; display: flex; align-items: center; gap: 1.8rem; }
.nav-list a { font-size: 0.95rem; color: var(--muted); transition: color 0.2s ease; }
.nav-list a:hover { color: var(--fg); }
.nav-cta { color: var(--fg) !important; border: 1px solid var(--border); padding: 0.5rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: var(--primary); border-color: var(--primary); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.7) 55%, var(--bg) 100%);
}
.hero-gradient {
  position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0.55;
  background: radial-gradient(60% 80% at 15% 20%, rgba(225,29,42,0.45), transparent 60%),
              radial-gradient(50% 60% at 90% 80%, rgba(232,196,104,0.25), transparent 60%);
  background-size: 200% 200%;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }

.hero-content { position: relative; z-index: 1; max-width: 46rem; padding-block: 6rem; }
.hero-title { font-size: clamp(2.4rem, 6.5vw, 4.6rem); margin-bottom: 1.2rem; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d8d6d0; max-width: 38rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero-stats dt { font-family: "Bricolage Grotesque", sans-serif; font-size: 2rem; font-weight: 800; color: var(--fg); }
.hero-stats dd { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

/* ---------- Presentation ---------- */
.check-list { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.75rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: #d8d6d0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 7px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.presentation-media { position: relative; }
.presentation-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.media-badge {
  position: absolute; bottom: -1.2rem; left: -1.2rem; background: var(--primary); color: #fff;
  padding: 1rem 1.3rem; border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.2;
}
.media-badge-num { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.6rem; font-weight: 800; }
.media-badge-label { font-size: 0.75rem; opacity: 0.92; }

/* ---------- Slanted sections ---------- */
.skew-top { background: var(--surface); clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%); margin-top: -2vw; padding-top: clamp(5rem, 10vw, 8rem); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 3/2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.3rem; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-body p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 0.9rem; }
.review blockquote { font-size: 1.05rem; color: #e4e2dc; margin-bottom: 1.3rem; }
.review figcaption strong { display: block; }
.review figcaption span { color: var(--muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 60rem; margin-inline: auto; }
.faq-list { display: grid; gap: 0.8rem; }
.faq-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 1.5rem; transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { align-items: start; }
.contact-info { list-style: none; margin: 1.8rem 0; display: grid; gap: 1.1rem; }
.contact-info li { display: flex; flex-direction: column; }
.ci-label { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.2rem; }
.contact-info a:hover { color: var(--primary); }

.map-wrap { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }
.map-link { display: block; padding: 0.8rem 1rem; background: var(--surface-2); font-size: 0.9rem; color: var(--muted); }
.map-link:hover { color: var(--primary); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.75rem 0.9rem; color: var(--fg); font: inherit; font-size: 0.95rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225, 29, 42, 0.2);
}
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--primary); }
.error { display: block; color: var(--primary); font-size: 0.8rem; margin-top: 0.35rem; min-height: 1em; }

/* Honeypot — invisible aux humains */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; font-size: 0.95rem; font-weight: 500; min-height: 1.4em; }
.form-status.success { color: #4ade80; }
.form-status.error { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { color: var(--muted); margin-top: 1rem; max-width: 24rem; }
.site-footer h2 { font-family: "Inter", sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.footer-nav ul, .footer-contact ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; border-top: 1px solid var(--border); padding-block: 1.5rem; color: var(--muted); font-size: 0.85rem; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .presentation-media { order: -1; margin-bottom: 1.5rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,10,12,0.98); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-list.open { max-height: 360px; }
  .nav-list li { padding: 0.2rem 1.25rem; }
  .nav-list li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .media-badge { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
