/* ============ DJAM v2 brand · STYLE 1 : Festif & Vibrant — DJAM en mode énergique (gold/orange flame) ============ */
:root {
  /* DJAM v2 — palette brand evenementsdjam.com */
  --accent:       #eebc4a;
  --accent2:      #f77f00;
  --bg:           #1a1410;
  --card:         #282018;
  --text:         #faf8f5;
  --text-muted:   #fde1a7;
  --border:       #3c3120;
  --danger:       #b5483a;
  --success:      #4d7c5a;
  --gold:         #eebc4a;
  --gold-pale:    #fde1a7;
  --orange:       #f77f00;
  --amber-brown:  #a37f4d;
  --dark-deep:    #110904;
  --dark-warm:    #282018;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --radius:       10px;
  --shadow:       0 4px 16px rgba(40, 32, 24, .08);
  --maxw:         1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 8px; }
.skip:focus { left: 8px; top: 8px; z-index: 10000; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: var(--maxw); margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--text);
  letter-spacing: 1px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: none; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-cta {
  padding: 10px 18px; background: var(--accent); color: #fff;
  border-radius: 6px; border: none; font-weight: 600;
}
.nav-burger {
  background: none; border: 1px solid var(--border);
  width: 40px; height: 40px; border-radius: 6px; color: var(--text);
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

/* Hero */
.hero {
  position: relative; padding: 60px 0;
  min-height: 480px; display: flex; align-items: center;
  overflow: hidden;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05; margin: 0 0 18px;
}
.hero p { font-size: 1.1rem; max-width: 540px; color: var(--text-muted); margin-bottom: 24px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px;
  border: none; font-weight: 600; cursor: pointer;
  border-radius: 6px; font-size: 1rem;
  text-align: center; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border: 2px solid var(--accent); }
.btn-primary:hover { transform: translateY(-2px); }

/* Section */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}
.section-head p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase;
  letter-spacing: 2px; font-size: .8rem; color: var(--accent);
  font-weight: 700; margin-bottom: 10px;
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-family: var(--font-display); }
.card p { color: var(--text-muted); margin: 0; }
.icon-box {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--accent); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.4rem;
  margin-bottom: 14px;
}

/* Service cards */
.service-card {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  padding: 28px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-card img { border-radius: var(--radius); object-fit: cover; aspect-ratio: 16/10; }
@media (min-width: 768px) { .service-card { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Portfolio */
.portfolio-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.portfolio-filters button {
  padding: 8px 16px; background: transparent; border: 1px solid var(--border);
  color: var(--text); border-radius: 20px; font-size: .9rem;
}
.portfolio-filters button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.portfolio-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(5, 1fr); } }
.portfolio-item {
  position: relative; cursor: pointer; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 1/1;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item .pcap {
  position: absolute; inset: auto 0 0 0; padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  color: #fff; font-size: .75rem;
}

/* Team */
.team-card { text-align: center; }
.team-card img {
  width: 180px; height: 180px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 18px;
}

/* Testimonials */
.testimonial { padding: 24px; background: var(--card); border-radius: var(--radius); }
.stars { color: var(--accent); margin-bottom: 8px; font-size: 1.1rem; }
.testimonial p { font-style: italic; color: var(--text); }
.testimonial .who { margin-top: 14px; font-size: .9rem; color: var(--text-muted); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%; text-align: left; padding: 18px 0;
  background: transparent; border: none; color: var(--text);
  font-size: 1.05rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--accent); }
.faq-item.open .faq-q::after { content: "-"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 18px; }

/* Booking calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 380px; margin: 0 auto; }
.cal-day {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  background: var(--card); border-radius: 6px; font-size: .85rem;
  border: 1px solid var(--border);
}
.cal-day.taken { background: var(--danger); color: #fff; opacity: .8; }
.cal-day.head { background: transparent; border: none; color: var(--text-muted); font-weight: 600; }

/* Newsletter */
.newsletter form { display: flex; gap: 10px; max-width: 500px; margin: 20px auto 0; }
.newsletter input { flex: 1; padding: 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--card); color: var(--text); }

/* Contact form */
.contact-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 12px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--card); color: var(--text); font-family: inherit; font-size: 1rem;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* Process timeline */
.timeline { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.step-num {
  font-family: var(--font-display); font-size: 2.5rem; color: var(--accent);
  line-height: 1;
}

/* Footer */
footer {
  background: var(--card); padding: 50px 0 24px; margin-top: 60px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; gap: 30px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: var(--text-muted);
}
.pgrg-badge {
  display: inline-block; padding: 4px 10px; background: var(--accent);
  color: #fff; border-radius: 4px; font-weight: 600; font-size: .8rem;
}

/* Demo banner */
.demo-banner {
  background: var(--accent); color: #fff; text-align: center;
  padding: 10px; font-weight: 600; font-size: .9rem;
}

/* Client / admin layout */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 768px) { .app-shell { grid-template-columns: 1fr; } .app-side { display: none; } }
.app-side {
  background: var(--card); border-right: 1px solid var(--border);
  padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.app-side-logo { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 24px; }
.app-side nav a {
  display: block; padding: 10px 12px; color: var(--text); border-radius: 6px;
  margin-bottom: 4px; font-size: .95rem;
}
.app-side nav a.current, .app-side nav a:hover { background: var(--accent); color: #fff; }
.app-main { padding: 24px; }
.app-main h1 { font-family: var(--font-display); margin: 0 0 24px; }
.kpi-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-bottom: 30px; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 18px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); }
.kpi .v { font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.kpi .l { color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }

/* Tables */
table.data { width: 100%; border-collapse: collapse; background: var(--card); }
table.data th, table.data td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); font-size: .9rem; }
table.data th { background: var(--bg); font-weight: 600; }
.badge { padding: 3px 10px; border-radius: 12px; font-size: .75rem; font-weight: 600; }
.badge-ok { background: var(--success); color: #fff; }
.badge-pending { background: var(--accent2); color: #000; }
.badge-warning { background: var(--accent); color: #fff; }
.badge-late { background: var(--danger); color: #fff; }

/* Login */
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { max-width: 420px; width: 100%; background: var(--card); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card h1 { font-family: var(--font-display); margin: 0 0 8px; }
.login-card p.note { color: var(--text-muted); font-size: .85rem; margin-top: 18px; text-align: center; }

/* Toast */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 12px 20px;
  border-radius: 6px; z-index: 9000; opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* Diagnostic */
.diag-box {
  background: var(--card); padding: 30px; border-radius: var(--radius);
  border: 2px dashed var(--accent); text-align: center;
}

/* Decoration helpers */
.deco-dots { position: absolute; pointer-events: none; opacity: .25; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; z-index: 9500;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 8px; }
.lightbox .close {
  position: absolute; top: 16px; right: 16px; background: var(--accent);
  border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.4rem;
}

/* DJAM Festif (v2) — Gold glow + flame gradient sur dark warm */
body { background: var(--bg); position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(238,188,74,.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(247,127,0,.11), transparent 45%);
}
.nav { background: rgba(26,20,16,.92); border-bottom-color: rgba(238,188,74,.18); }
.nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--dark-deep);
  border-radius: 30px;
  box-shadow: 0 0 22px rgba(238,188,74,.45);
}
.hero { background: linear-gradient(135deg, rgba(247,127,0,.12), rgba(238,188,74,.06)); }
.hero h1 { color: var(--gold); letter-spacing: 1px; }
.btn-primary {
  border-radius: 30px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--dark-deep);
  box-shadow: 0 0 25px rgba(238,188,74,.45);
}
.btn-primary:hover { transform: scale(1.04); box-shadow: 0 0 40px rgba(238,188,74,.7); }
.btn-secondary { border-radius: 30px; border-color: var(--gold); color: var(--gold); }
.card { border-left: 3px solid var(--gold); background: var(--card); }
.icon-box {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--dark-deep);
}
.section-head h2 { text-transform: uppercase; letter-spacing: 3px; color: var(--gold); }
.eyebrow { color: var(--orange); font-weight: 700; }
.cal-day { background: var(--card); border-color: var(--border); color: var(--text); }
.cal-day.taken { background: rgba(181,72,58,.6); color: #fff; }
table.data th { background: var(--card); color: var(--gold); }
.testimonial { background: var(--card); border-left: 3px solid var(--gold); }
.nav-logo img { filter: brightness(0) invert(1); }   /* logo blanc sur fond foncé */
footer .nav-logo img { filter: brightness(0) invert(1); }

/* ============================================================
   DJAM v3 — STYLE 1 FESTIF — WOW FACTOR overrides
   ============================================================ */
.djam-festif .hero {
  min-height: 78vh;
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(247,127,0,0.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(238,188,74,0.14), transparent 60%),
    linear-gradient(135deg, rgba(247,127,0,0.10), rgba(238,188,74,0.04));
}
.djam-festif .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(247,127,0,0.20), transparent 50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  animation: djam-gradient-shift 10s ease-in-out infinite alternate;
  background-size: 200% 200%;
}
.djam-festif .hero .container { position: relative; z-index: 2; }
.djam-festif .hero h1 {
  font-weight: 900;
  background: linear-gradient(135deg, #f77f00 0%, #eebc4a 50%, #fde1a7 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: djam-gradient-shift 6s ease infinite, djam-slide-up 0.85s var(--wow-ease-out) 0.25s both;
}
.djam-festif .hero img {
  border: 2px solid rgba(238,188,74,0.35);
  box-shadow: 0 20px 60px rgba(247,127,0,0.30), 0 0 0 1px rgba(238,188,74,0.15);
}
.djam-festif .card:hover {
  border-left-color: var(--orange);
  box-shadow: 0 20px 44px rgba(0,0,0,0.32), 0 6px 16px rgba(247,127,0,0.30);
}
.djam-festif .icon-box {
  box-shadow: 0 6px 18px rgba(247,127,0,0.45);
}
.djam-festif .card:hover .icon-box {
  transform: rotate(-6deg) scale(1.12);
  box-shadow: 0 8px 22px rgba(247,127,0,0.65);
}
/* CTA finale section avec gradient animé */
.djam-festif #contact { position: relative; }
.djam-festif #contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247,127,0,0.06), rgba(238,188,74,0.08), rgba(247,127,0,0.06));
  background-size: 300% 300%;
  animation: djam-gradient-shift 14s ease infinite;
  pointer-events: none;
  z-index: 0;
}
.djam-festif #contact > .container { position: relative; z-index: 1; }
