/* NocesPlan French Wedding Portal — Zero-CLS, HBAgency & AdSense Safe Stylesheet */
:root {
  --np-sage: #234236;
  --np-sage-dark: #182E25;
  --np-sage-soft: #EEF3F0;
  --np-gold: #9A6E3A;
  --np-gold-dark: #7D572B;
  --np-ivory: #FCFAF6;
  --np-bg: #F7F6F2;
  --np-ink: #1E293B;
  --np-muted: #57606F;
  --np-border: #E2DFD7;
}

.np-shell *, .np-shell *::before, .np-shell *::after {
  box-sizing: border-box;
}

body.np-shell {
  margin: 0;
  padding: 0;
  background: var(--np-bg);
  color: var(--np-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.np-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.np-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Header */
.np-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--np-border);
  position: sticky;
  top: 0;
  z-index: 90;
}

.np-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.np-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--np-sage);
}

.np-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--np-sage);
  color: #FDE68A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Playfair Display', Georgia, serif;
}

.np-brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
  display: block;
  color: var(--np-sage);
}

.np-brand-sub {
  font-size: 11.5px;
  color: var(--np-muted);
  display: block;
}

.np-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.np-nav a {
  text-decoration: none;
  color: var(--np-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.np-nav a:hover {
  background: var(--np-sage-soft);
  color: var(--np-sage);
}

.np-btn-pack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--np-gold);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.np-btn-pack:hover {
  background: var(--np-gold-dark);
}

.np-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--np-sage);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.np-btn-primary:hover {
  background: var(--np-sage-dark);
}

.np-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  color: var(--np-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  text-decoration: none;
}

.np-btn-outline:hover {
  background: #F8FAFC;
}

/* Hero Banner */
.np-hero {
  background: var(--np-ivory);
  border-bottom: 1px solid var(--np-border);
  padding: 28px 0;
}

.np-hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 28px;
  align-items: center;
}

.np-badge {
  display: inline-block;
  background: var(--np-sage-soft);
  color: var(--np-sage);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.np-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--np-sage);
  line-height: 1.24;
  margin: 0 0 10px 0;
}

.np-hero p {
  margin: 0 0 14px 0;
  color: var(--np-muted);
  font-size: 15.5px;
}

.np-hero-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--np-border);
  display: block;
}

/* Tool Switcher Tabs */
.np-tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
  background: #FFFFFF;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--np-border);
}

.np-tab-btn {
  flex: 1 1 auto;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--np-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.np-tab-btn.active {
  background: var(--np-sage);
  color: #FFFFFF;
}

.np-tab-btn:not(.active):hover {
  background: var(--np-sage-soft);
}

/* Cards & Panels */
.np-card {
  background: #FFFFFF;
  border: 1px solid var(--np-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.np-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.np-kpi {
  background: #FFFFFF;
  border: 1px solid var(--np-border);
  border-radius: 12px;
  padding: 13px 15px;
}

.np-kpi-label {
  font-size: 12px;
  color: var(--np-muted);
  display: block;
}

.np-kpi-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--np-sage);
}

.np-grid-8-4 {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 20px;
}

.np-grid-5-7 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 20px;
}

.np-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.np-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Inputs */
.np-field {
  margin-bottom: 12px;
}

.np-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.np-input, .np-select {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 14px;
  background: #FFFFFF;
  color: var(--np-ink);
}

.np-range {
  width: 100%;
  accent-color: var(--np-sage);
}

/* Tables */
.np-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.np-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.np-table th {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 2px solid var(--np-border);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--np-muted);
}

.np-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

/* Zero-CLS Ad Placement Container (HBAgency / AdSense Compliant) */
.np-ad-slot {
  margin: 26px 0;
  padding: 10px;
  background: #FAF9F6;
  border: 1px dashed #D6D3CD;
  border-radius: 10px;
  min-height: 268px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.np-ad-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  margin-bottom: 6px;
}

/* Pack Upsell Banner */
.np-pack-cta {
  background: linear-gradient(135deg, #234236 0%, #193027 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 24px;
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.np-pack-cta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  margin: 4px 0 8px;
  color: #FFFFFF;
}

.np-pack-cta p {
  margin: 0;
  color: #D1FAE5;
  font-size: 14.5px;
  max-width: 620px;
}

/* Editorial Content on Programmatic SEO Pages */
.np-article {
  background: #FFFFFF;
  border: 1px solid var(--np-border);
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
}

.np-article h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--np-sage);
  font-size: 24px;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--np-border);
}

.np-article h3 {
  color: var(--np-sage);
  font-size: 18px;
  margin: 18px 0 8px;
}

/* Footer with mandatory 112px mobile clearance for sticky Floor Ad */
.np-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--np-border);
  margin-top: 48px;
  padding: 36px 0 116px;
  font-size: 13.5px;
  color: var(--np-muted);
}

.np-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  gap: 24px;
}

.np-footer h4 {
  color: var(--np-sage);
  font-size: 14px;
  margin: 0 0 10px 0;
}

.np-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.np-footer li {
  margin-bottom: 6px;
}

.np-footer a {
  color: var(--np-muted);
  text-decoration: none;
}

.np-footer a:hover {
  color: var(--np-sage);
  text-decoration: underline;
}

/* Toast (Top-right so ZERO bottom viewport collision!) */
.np-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 200;
  background: var(--np-sage);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  display: none;
}

.np-hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .np-hero-grid, .np-grid-8-4, .np-grid-5-7, .np-footer-grid {
    grid-template-columns: 1fr;
  }
  .np-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .np-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .np-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media print {
  .np-header, .np-hero, .np-tool-tabs, .np-pack-cta, .np-footer, .np-no-print, .np-ad-slot {
    display: none !important;
  }
  body.np-shell {
    background: #FFFFFF !important;
  }
}
