@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --green: #2ECC9E;
  --green-dark: #1fa87d;
  --green-light: #e6faf4;
  --green-mid: #a8edda;
  --orange: #FF8C42;
  --orange-dark: #e06e25;
  --orange-light: #fff3eb;
  --dark: #2D3436;
  --dark2: #1a1f20;
  --white: #ffffff;
  --gray-bg: #F7F9FA;
  --gray-border: #e2e8f0;
  --gray-mid: #b2bec3;
  --text-muted: #636e72;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.1);
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray-bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { line-height: 1.7; }
a { color: inherit; text-decoration: none; }

/* ─── NAV ─── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 200;
  height: 64px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-pip { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.logo-pip.g { background: var(--green); }
.logo-pip.o { background: var(--orange); }

.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 600; transition: all var(--transition); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--green); color: #fff; padding: 10px 22px; border-radius: 50px; font-size: 0.9rem; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--dark); border: 2px solid var(--gray-border); padding: 10px 22px; border-radius: 50px; font-size: 0.9rem; }
.btn-secondary:hover { border-color: var(--dark); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-orange { background: var(--orange); color: #fff; padding: 10px 22px; border-radius: 50px; font-size: 0.9rem; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 3rem; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* ─── ANNONCE CARD ─── */
.ad-card { cursor: pointer; }
.ad-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.ad-card-body { padding: 1rem; }
.ad-card-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--green-light);
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
.ad-card-cat.orange { background: var(--orange-light); color: var(--orange-dark); }
.ad-card-cat.blue { background: #eef2ff; color: #4547b0; }
.ad-card-cat.pink { background: #fce4ec; color: #ad1457; }
.ad-card-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.ad-card-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; justify-content: space-between; }
.ad-card-premium { background: linear-gradient(90deg, #f9c74f, #f8a935); color: #7a4000; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 4px; }

/* ─── BADGE ─── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-orange { background: var(--orange-light); color: var(--orange-dark); }

/* ─── AD SLOTS (Google AdSense) ─── */
.ad-slot {
  background: var(--white);
  border: 1px dashed var(--gray-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ad-slot-banner { height: 90px; }
.ad-slot-rect { height: 250px; }
.ad-slot-leaderboard { height: 90px; width: 100%; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--dark); }
.form-label span { color: var(--orange); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,204,158,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.78rem; color: #e74c3c; margin-top: 0.3rem; display: none; }
.form-input.error { border-color: #e74c3c; }

/* ─── GRID SYSTEMS ─── */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }

/* ─── FOOTER ─── */
.footer { background: var(--dark2); color: rgba(255,255,255,0.65); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand-text { font-size: 0.85rem; line-height: 1.7; margin-top: 0.75rem; max-width: 280px; }
.footer-col-title { font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.8);
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--green); color: white; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
