/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: #1a1a2e; background: #ffffff; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Variables ────────────────────────────────────────────────── */
:root {
  --blue:      #1a56db;
  --blue-lt:   #dbeafe;
  --blue-dark: #1e3a8a;
  --orange:    #f97316;
  --orange-lt: #fff7ed;
  --green:     #0f9e6e;
  --text:      #0f172a;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --bg-soft:   #f8fafc;
  --radius:    12px;
  --radius-lg: 20px;
}

/* ── Layout helpers ───────────────────────────────────────────── */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin-bottom: 10px; font-weight: 700; }

/* ── NAV magazine ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--text);
}
.nav-top {
  border-bottom: 1px solid var(--border);
  padding: 6px 32px;
  display: flex; justify-content: flex-end;
  align-items: center;
}
.nav-top-cta {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  color: var(--blue); text-decoration: none; text-transform: uppercase;
}
.nav-main {
  padding: 14px 32px 10px; text-align: center;
  border-bottom: 1px solid var(--border); position: relative;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 5vw, 44px);
  color: var(--blue-dark); letter-spacing: -1px; text-decoration: none; display: inline-block;
}
.nav-burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); padding: 4px 8px; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.nav-cats {
  display: flex; justify-content: center;
  padding: 0 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cats a {
  font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); padding: 10px 18px; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: all .2s; text-decoration: none; flex-shrink: 0;
  border-radius: 4px 4px 0 0;
}
.nav-cats a:hover { color: var(--text); background: #fef9c3; }
.nav-cats a.nav-active { color: var(--text); background: #fef08a; border-bottom-color: var(--orange); font-weight: 800; }
.nav-links { display: none; }
.btn-nav { display: none; }
.nav-mobile {
  display: none; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-bottom: 2px solid var(--text);
  padding: 0 16px; scrollbar-width: none;
}
.nav-mobile::-webkit-scrollbar { display: none; }
.nav-mobile.open { display: flex; align-items: center; }
.nav-mobile a {
  font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); padding: 12px 14px; white-space: nowrap; flex-shrink: 0;
  border-bottom: 3px solid transparent; text-decoration: none;
}
.nav-mobile a:hover { color: var(--text); background: #fef9c3; }
.nav-mobile a.nav-active { color: var(--text); background: #fef08a; border-bottom-color: var(--orange); }
.nav-mobile-cta {
  font-size: 11px !important; font-weight: 700 !important; letter-spacing: 1px !important;
  text-transform: uppercase !important; color: var(--blue) !important;
  padding: 12px 14px !important; white-space: nowrap; flex-shrink: 0; margin-left: auto;
  border-bottom: 2px solid transparent !important; text-decoration: none;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--blue); color: #fff;
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  transition: background .2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary.btn-large { padding: 16px 36px; font-size: 16px; }
.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--text);
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 15px; border: 1.5px solid var(--border);
  transition: border-color .2s; cursor: pointer;
}
.btn-secondary:hover { border-color: #94a3b8; }

/* ── HERO magazine ────────────────────────────────────────────── */
.mag-hero {
  padding: 56px 32px 48px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.mag-hero-inner { max-width: 760px; margin: 0 auto; }
.mag-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.mag-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1; letter-spacing: -.5px; margin-bottom: 20px;
}
.mag-title em { font-style: italic; color: var(--orange); }
.mag-sub { font-size: 17px; color: var(--muted); line-height: 1.65; margin-bottom: 32px; }
.mag-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mag-divider { height: 1px; background: var(--border); margin: 0; }

/* ── GRILLE magazine ───────────────────────────────────────────── */
.mag-grid-section { padding: 48px 0 64px; }
.mag-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--orange);
  padding-bottom: 16px; margin-bottom: 24px;
  border-bottom: 2px solid var(--orange);
}
.mag-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; margin-bottom: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.mag-col-right { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.mag-card { display: block; padding: 28px; text-decoration: none; color: inherit; transition: background .15s; }
.mag-card:hover { background: var(--bg-soft); }
.mag-card-featured { border-bottom: 1px solid var(--border); }
.mag-card-sm { flex: 1; }
.mag-card-sm:first-child { border-bottom: 1px solid var(--border); }
.mag-grid-bottom { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
.mag-card-third { border-right: 1px solid var(--border); }
.mag-card-third:last-child { border-right: none; }
.mag-card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 10px;
}
.mag-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.2;
  margin-bottom: 12px; font-weight: 400;
}
.mag-card-title-sm { font-size: 16px; font-weight: 500; line-height: 1.3; margin-bottom: 8px; }
.mag-card-sub { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.mag-card-sub-sm { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.mag-card-link { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--blue); text-decoration: underline; }
.mag-card-cta-box { background: var(--bg-soft); }

/* ── FEATURES ─────────────────────────────────────────────────── */
.features { padding: 80px 24px; }
.features h2 { font-family: 'DM Serif Display', serif; font-size: clamp(26px, 4vw, 36px); margin-bottom: 48px; line-height: 1.2; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: box-shadow .2s; }
.feat-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.feat-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── CTA SECTION ──────────────────────────────────────────────── */
.cta-section { padding: 80px 24px; background: var(--bg-soft); text-align: center; }
.cta-section h2 { font-family: 'DM Serif Display', serif; font-size: 32px; margin-bottom: 12px; }
.cta-section p { color: var(--muted); margin-bottom: 32px; }

/* ── PAGE HERO ────────────────────────────────────────────────── */
.page-hero { padding: 60px 24px 40px; background: linear-gradient(160deg, #f0f4ff 0%, #fff 70%); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(28px, 4vw, 42px); margin: 8px 0 12px; }
.page-hero p { color: var(--muted); font-size: 16px; }

/* ── PRICING ──────────────────────────────────────────────────── */
.pricing-section { padding: 60px 24px 80px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.plan-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--blue); }
.plan-badge { display: inline-block; background: var(--blue-lt); color: var(--blue); font-size: 11px; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; width: fit-content; }
.plan-name { font-size: 12px; font-weight: 500; letter-spacing: 1px; color: var(--muted); }
.plan-price { font-size: 38px; font-weight: 500; margin: 10px 0 4px; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.plan-credits { background: var(--bg-soft); border-radius: var(--radius); padding: 14px; text-align: center; margin-bottom: 10px; }
.credits-big { font-size: 30px; font-weight: 500; }
.credits-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.plan-audio { font-size: 12px; color: var(--muted); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.plan-features { list-style: none; flex: 1; margin-bottom: 20px; }
.plan-features li { font-size: 13px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.plan-features li:last-child { border: none; }
.plan-features li.ok::before { content: '✓'; color: var(--green); font-weight: 600; }
.plan-features li.no::before { content: '–'; color: #ccc; }
.plan-btn { display: block; text-align: center; padding: 11px; border-radius: var(--radius); font-size: 14px; font-weight: 500; border: 1.5px solid var(--border); color: var(--text); transition: background .2s; margin-top: auto; }
.plan-btn:hover { background: var(--bg-soft); }
.plan-btn-featured { background: var(--text); color: #fff; border-color: var(--text); }
.plan-btn-featured:hover { opacity: .85; background: var(--text); }
.credits-bareme { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 28px; }
.credits-bareme h3 { font-size: 15px; font-weight: 500; margin-bottom: 20px; }
.bareme-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.bareme-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.bareme-val { font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.bareme-label { font-size: 12px; color: var(--muted); line-height: 1.4; }
.bareme-note { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ── BLOG ─────────────────────────────────────────────────────── */
.blog-section { padding: 60px 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.blog-cover { height: 180px; background-size: cover; background-position: center; background-color: var(--bg-soft); }
.blog-cover-placeholder { display: flex; align-items: center; justify-content: center; color: #ccc; }
.blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-cat { display: inline-block; background: var(--blue-lt); color: var(--blue); font-size: 11px; padding: 2px 8px; border-radius: 99px; margin-bottom: 10px; }
.blog-body h2 { font-size: 16px; font-weight: 500; margin-bottom: 8px; line-height: 1.4; }
.blog-body p { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 12px; }
.blog-meta { font-size: 12px; color: #aaa; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 0; font-size: 16px; }

/* ── REVIEWS ──────────────────────────────────────────────────── */
.reviews-section { padding: 60px 24px; background: var(--bg-soft); }
.reviews-section h2 { font-family: 'DM Serif Display', serif; font-size: 30px; margin-bottom: 32px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.review-stars { color: #f59e0b; font-size: 16px; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.review-author { font-size: 13px; font-weight: 500; }
.review-author span { font-weight: 400; color: var(--muted); }
.review-form-wrap { max-width: 600px; }
.review-form-wrap h3 { font-size: 18px; font-weight: 500; margin-bottom: 20px; }
.star-picker { font-size: 28px; color: #f59e0b; cursor: pointer; letter-spacing: 4px; margin-bottom: 8px; user-select: none; }

/* ── ARTICLE ──────────────────────────────────────────────────── */
.article-header { padding: 60px 24px 40px; background: linear-gradient(160deg, #f0f4ff 0%, #fff 70%); }
.article-header h1 { font-family: 'DM Serif Display', serif; font-size: clamp(26px, 4vw, 42px); margin: 10px 0 12px; line-height: 1.2; }
.article-meta { font-size: 13px; color: var(--muted); }
.article-cover { max-height: 420px; overflow: hidden; }
.article-cover img { width: 100%; object-fit: cover; }
.article-body { padding: 48px 24px; font-size: 16px; line-height: 1.8; color: #2d3748; max-width: 760px; }
.article-body h2,.article-body h3 { font-family: 'DM Serif Display', serif; margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body img { max-width: 100%; height: auto; object-fit: contain; border-radius: var(--radius); margin: 20px 0; display: block; }
.article-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.article-images figure { border-radius: var(--radius); overflow: hidden; }
.article-images figcaption { font-size: 12px; color: var(--muted); padding: 8px 0; }
.article-footer { padding: 32px 24px 60px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── CONTACT ──────────────────────────────────────────────────── */
.contact-section { padding: 60px 24px 80px; }
.contact-box { max-width: 600px; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── FORMS ────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 13px; font-weight: 500; color: var(--text); }
input, select, textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { resize: vertical; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 28px 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner p { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-cats { display: none; }
  .nav-burger { display: block; }
  .nav-top { padding: 6px 16px; }
  .nav-main { padding: 10px 48px 8px; }
  .features-grid, .pricing-grid, .blog-grid, .reviews-grid { grid-template-columns: 1fr; }
  .bareme-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .mag-hero { padding: 40px 20px 36px; }
  .mag-grid { grid-template-columns: 1fr; }
  .mag-col-right { border-left: none; border-top: 1px solid var(--border); }
  .mag-grid-bottom { grid-template-columns: 1fr; }
  .mag-card-third { border-right: none; border-bottom: 1px solid var(--border); }
  .mag-card-third:last-child { border-bottom: none; }
  .mag-grid-section { padding: 32px 0 48px; }
}
