/*
Theme Name: Invitation.cd
Theme URI: https://www.invitation.cd
Author: SAAgency
Author URI: https://www.invitation.cd
Description: Thème officiel Invitation.cd — Plateforme événementielle digitale. Mariages, galas, conférences, festivals à Kinshasa et en Afrique francophone.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: invitation-cd
*/

/* ── RESET & BASE ─────────────────────────────────────────────────── */
:root {
  --red:   #E8000D;
  --red-dark: #A0000A;
  --black: #0A0A0A;
  --dark:  #111111;
  --dark2: #1A1A1A;
  --dark3: #222222;
  --gray:  #888888;
  --mgray: #BBBBBB;
  --lgray: #F5F5F5;
  --white: #FFFFFF;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }

/* ── UTILITY ──────────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.section-tag {
  font-size: 11px; font-weight: 700; color: var(--red);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.12; margin-bottom: 14px;
}
.section-sub {
  font-size: 15px; color: #777; max-width: 560px;
  line-height: 1.75; margin-bottom: 48px;
}
.btn-primary {
  display: inline-block; background: var(--red); color: var(--white);
  border: none; padding: 14px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); color: #fff; }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--white);
  border: 1px solid #333; padding: 14px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 500; transition: all .2s;
}
.btn-secondary:hover { border-color: #666; background: #111; }

/* ── NAVIGATION ───────────────────────────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(10,10,10,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid #1e1e1e;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding: 0 40px;
}
.site-logo {
  font-family: var(--font-head); font-size: 21px; font-weight: 700;
  letter-spacing: -.5px; color: var(--white);
}
.site-logo span { color: var(--red); }
.site-logo img { height: 36px; width: auto; }

#primary-menu { display: flex; gap: 30px; list-style: none; }
#primary-menu a {
  color: #aaa; font-size: 13px; font-weight: 500;
  transition: color .2s; padding: 4px 0;
}
#primary-menu a:hover { color: var(--white); }
.header-cta {
  background: var(--red); color: var(--white) !important; border: none;
  padding: 9px 20px; border-radius: 7px; font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.header-cta:hover { background: var(--red-dark) !important; }

/* Mobile hamburger */
.menu-toggle {
  display: none; background: none; border: 1px solid #333;
  color: var(--white); padding: 6px 10px; border-radius: 6px; font-size: 18px;
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  #primary-menu { display: none; flex-direction: column; gap: 0; position: absolute;
    top: 62px; left: 0; right: 0; background: var(--dark); padding: 12px 0; border-top: 1px solid #222; }
  #primary-menu.open { display: flex; }
  #primary-menu li { border-bottom: 1px solid #1a1a1a; }
  #primary-menu a { display: block; padding: 12px 24px; }
  .header-cta { display: none; }
}

/* ── HERO ─────────────────────────────────────────────────────────── */
#hero {
  min-height: 90vh; display: flex; align-items: center;
  padding: 80px 40px 60px; position: relative; overflow: hidden;
  background: var(--black);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(#ffffff07 1px,transparent 1px),
                    linear-gradient(90deg,#ffffff07 1px,transparent 1px);
  background-size: 52px 52px; pointer-events: none;
}
.hero-glow {
  position: absolute; right: -60px; top: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(232,0,13,.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 660px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1e0000; border: 1px solid rgba(232,0,13,.3);
  color: var(--red); font-size: 11px; font-weight: 600;
  padding: 5px 14px; border-radius: 99px; margin-bottom: 28px; letter-spacing: .05em;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
#hero h1 {
  font-family: var(--font-head); font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 900; line-height: 1.05; margin-bottom: 24px;
}
#hero h1 em { color: var(--red); font-style: italic; }
.hero-desc { font-size: 16px; color: #999; line-height: 1.75; margin-bottom: 36px; max-width: 500px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats {
  display: flex; gap: 44px; padding-top: 36px;
  border-top: 1px solid #1e1e1e; flex-wrap: wrap;
}
.stat-num { font-family: var(--font-head); font-size: 34px; font-weight: 700; }
.stat-label { font-size: 12px; color: #555; margin-top: 3px; }

/* ── SERVICES ─────────────────────────────────────────────────────── */
#services { padding: 90px 40px; background: var(--dark); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px;
}
.service-card {
  background: #161616; border: 1px solid #222; border-radius: var(--radius);
  padding: 22px 18px; transition: all .25s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { border-color: #333; background: #1c1c1c; transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card.is-new { border-color: rgba(232,0,13,.3); }
.svc-icon { font-size: 22px; margin-bottom: 14px; }
.new-badge {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 7px;
  border-radius: 99px; margin-bottom: 8px; letter-spacing: .05em;
}
.svc-name { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.svc-desc { font-size: 12px; color: #666; line-height: 1.6; }

/* ── PRICING ──────────────────────────────────────────────────────── */
#pricing { padding: 90px 40px; background: #0d0d0d; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 980px;
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }
.pkg-card {
  background: #161616; border: 1px solid #222;
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s;
}
.pkg-card:hover { transform: translateY(-4px); }
.pkg-card.featured { border-color: var(--red); border-width: 1.5px; }
.pkg-header { padding: 28px 24px 20px; background: #1a1a1a; }
.pkg-badge {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; margin-bottom: 10px;
}
.pkg-tier { font-size: 10px; color: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.pkg-name { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.pkg-sub { font-size: 12px; color: #666; margin-bottom: 18px; }
.pkg-price-row { display: flex; align-items: flex-end; gap: 3px; margin-bottom: 4px; }
.pkg-dollar { font-size: 16px; font-weight: 700; color: var(--red); margin-bottom: 5px; }
.pkg-amount { font-family: var(--font-head); font-size: 46px; font-weight: 900; line-height: 1; }
.pkg-meta { font-size: 11px; color: #555; margin-top: 4px; }
.pkg-body { padding: 20px 24px; }
.feat-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; }
.feat-check {
  width: 16px; height: 16px; border-radius: 4px; background: var(--red);
  flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center;
}
.feat-check svg { width: 9px; height: 9px; }
.feat-cross {
  width: 16px; height: 16px; border-radius: 4px;
  background: #1e1e1e; border: 1px solid #2a2a2a; flex-shrink: 0; margin-top: 1px;
}
.feat-text { font-size: 12px; color: #aaa; line-height: 1.5; }
.feat-text.on { color: #ddd; }
.app-tag {
  background: #1e0000; border: 1px solid rgba(232,0,13,.3);
  border-radius: 8px; padding: 12px; margin: 12px 0;
}
.app-tag-title { font-size: 12px; font-weight: 600; color: var(--red); margin-bottom: 4px; }
.app-tag-desc { font-size: 11px; color: #aaa; line-height: 1.5; }
.pkg-btn {
  display: block; width: 100%; margin-top: 16px; padding: 12px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid #333; background: transparent; color: var(--white); transition: all .2s;
}
.pkg-btn:hover { background: #222; }
.pkg-btn.primary { background: var(--red); border-color: var(--red); }
.pkg-btn.primary:hover { background: var(--red-dark); }

/* ── TESTIMONIALS ─────────────────────────────────────────────────── */
#testimonials { padding: 90px 40px; background: #0d0d0d; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.testi-card { background: #161616; border: 1px solid #1e1e1e; border-radius: var(--radius); padding: 26px; }
.testi-stars { color: var(--red); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-text { font-size: 13px; color: #aaa; font-style: italic; line-height: 1.75; margin-bottom: 18px; }
.testi-author { display: flex; align-items: center; gap: 11px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 600; }
.testi-role { font-size: 11px; color: #555; }

/* ── RESERVATION ──────────────────────────────────────────────────── */
#reservation { padding: 90px 40px; background: var(--dark); }
.reservation-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; max-width: 1060px; }
@media (max-width: 860px) { .reservation-wrap { grid-template-columns: 1fr; gap: 40px; } }
.res-info h2 { font-family: var(--font-head); font-size: clamp(28px,3.5vw,38px); margin-bottom: 16px; line-height: 1.2; }
.res-info h2 em { color: var(--red); font-style: italic; }
.res-info p { font-size: 14px; color: #777; line-height: 1.75; margin-bottom: 28px; }

/* Contact direct box */
.contact-box {
  background: #1a0000; border: 1px solid rgba(232,0,13,.3);
  border-radius: var(--radius); padding: 18px; margin-bottom: 24px;
}
.contact-box-title { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: #ccc; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line a { color: #ccc; transition: color .2s; }
.contact-line a:hover { color: var(--red); }

.res-perks { display: flex; flex-direction: column; gap: 12px; }
.perk { display: flex; align-items: center; gap: 11px; }
.perk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.perk-text { font-size: 13px; color: #888; }

/* Form card */
.res-form-card { background: #161616; border: 1px solid #222; border-radius: var(--radius-lg); padding: 34px; }
.res-form-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.res-form-sub { font-size: 12px; color: #666; margin-bottom: 24px; }
.step-bar { display: flex; gap: 8px; margin-bottom: 26px; }
.step-pip { flex: 1; height: 4px; border-radius: 2px; background: #222; transition: background .3s; }
.step-pip.active { background: var(--red); }

/* Form fields */
.field-wrap { margin-bottom: 16px; }
label.field-lbl { display: block; font-size: 12px; color: #888; font-weight: 500; margin-bottom: 6px; }
.field-input, .field-select, .field-textarea {
  width: 100%; background: #111; border: 1px solid #2a2a2a;
  border-radius: 8px; padding: 11px 14px; color: var(--white);
  font-size: 13px; font-family: var(--font-body); outline: none; transition: border-color .2s;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--red); }
.field-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field-textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Collection selector */
.coll-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.coll-pick {
  border: 1px solid #2a2a2a; border-radius: 8px; padding: 12px 8px;
  cursor: pointer; transition: all .2s; text-align: center; background: transparent;
}
.coll-pick:hover { border-color: #444; }
.coll-pick.selected { border-color: var(--red); background: #1e0000; }
.coll-pick-name { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.coll-pick-price { font-size: 11px; color: #555; }
.coll-pick.selected .coll-pick-price { color: var(--red); }

/* Form steps */
.form-step { display: none; }
.form-step.active { display: block; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.form-next {
  flex: 1; background: var(--red); color: #fff; border: none;
  padding: 13px; border-radius: 8px; font-size: 13px; font-weight: 600;
  font-family: var(--font-body); transition: background .2s;
}
.form-next:hover { background: var(--red-dark); }
.form-back {
  background: transparent; color: #888; border: 1px solid #2a2a2a;
  padding: 13px 16px; border-radius: 8px; font-size: 13px;
  font-family: var(--font-body); transition: all .2s;
}
.form-back:hover { color: #fff; border-color: #444; }

/* Addon checkboxes */
.addons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.addon-chk {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: 12px; color: #aaa; padding: 9px 11px;
  background: #111; border-radius: 7px; border: 1px solid #222; transition: all .2s;
}
.addon-chk input { accent-color: var(--red); width: 14px; height: 14px; }
.addon-chk:hover { border-color: #333; color: var(--white); }

/* Success */
.res-success { text-align: center; padding: 20px 0; }
.success-icon {
  width: 58px; height: 58px; background: #1a0000; border: 2px solid var(--red);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 24px;
}
.success-title { font-family: var(--font-head); font-size: 24px; margin-bottom: 8px; }
.success-sub { font-size: 13px; color: #777; margin-bottom: 20px; }
.recap-box {
  background: #111; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: 16px; font-size: 12px; color: #aaa; text-align: left;
}
.recap-row { display: flex; gap: 8px; margin-bottom: 7px; }
.recap-row:last-child { margin-bottom: 0; }
.recap-label { color: #555; min-width: 120px; }
.recap-val { color: var(--white); font-weight: 500; }

/* ── FOOTER ───────────────────────────────────────────────────────── */
#site-footer { background: #050505; border-top: 1px solid #111; padding: 60px 40px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-logo { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.footer-logo span { color: var(--red); }
.footer-desc { font-size: 13px; color: #444; line-height: 1.75; margin-bottom: 20px; }
.footer-contact-line { font-size: 13px; color: #555; margin-bottom: 7px; }
.footer-contact-line a { color: #555; transition: color .2s; }
.footer-contact-line a:hover { color: var(--red); }
.footer-col-title { font-size: 11px; font-weight: 700; color: var(--white); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-link { display: block; font-size: 13px; color: #444; margin-bottom: 9px; transition: color .2s; }
.footer-link:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid #111; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #333; flex-wrap: wrap; gap: 8px;
}

/* ── TOAST ────────────────────────────────────────────────────────── */
.inv-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--red); color: #fff; padding: 13px 22px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  animation: toastIn .3s ease; pointer-events: none;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #hero { padding: 60px 24px 48px; min-height: 80vh; }
  .hero-stats { gap: 28px; }
  #services, #pricing, #testimonials, #reservation { padding: 64px 24px; }
  .container { padding: 0 24px; }
  .field-row { grid-template-columns: 1fr; }
  .coll-grid { grid-template-columns: 1fr; }
  #site-footer { padding: 48px 24px 0; }
}
