/* ============================================================
   CarePet — Main CSS  (public site)
   ============================================================ */

:root {
  --green:       #2d7a3a;
  --green-dark:  #245f2e;
  --green-mid:   #3a9447;
  --green-light: #f0fdf4;
  --orange:      #e8701a;
  --orange-dark: #c45c10;
  --orange-light:#fff7ed;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-600:    #6b7280;
  --gray-700:    #374151;
  --gray-900:    #1f2937;
  --white:       #ffffff;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 1px 4px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.25;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ── Nav ──────────────────────────────────────────────────── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
}

.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: all .12s;
}

.nav-links a:hover,
.nav-links a.active { background: var(--green-light); color: var(--green); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: .2s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-light) 0%, #ecfdf5 50%, #fff7ed 100%);
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,122,58,.08) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 780px;
  margin: 0 auto 16px;
}

.hero h1 span { color: var(--green); }

.hero-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 32px;
}

.hero-trust-item { display: flex; align-items: center; gap: 6px; }

/* ── Simulator ────────────────────────────────────────────── */
.simulator-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  padding: 32px;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.sim-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.sim-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.sim-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  cursor: pointer;
  transition: .12s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.sim-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,122,58,.12);
}

.sim-btn {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sim-btn:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,112,26,.3); }

.sim-disclaimer { text-align: center; font-size: 12px; color: var(--gray-400); margin-top: 12px; }

/* ── Animal pills ─────────────────────────────────────────── */
.animal-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.animal-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all .12s;
  background: var(--white);
  flex: 1;
  min-width: 110px;
  justify-content: center;
}

.animal-pill:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.animal-pill.active { border-color: var(--green); color: var(--green); background: var(--green-light); font-weight: 600; }
.animal-pill .pill-emoji { font-size: 20px; }

/* ── Comparison ───────────────────────────────────────────── */
.comparison-section { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--gray-600); max-width: 560px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.partner-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .15s;
  position: relative;
}

.partner-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.partner-card.featured { border-color: var(--orange); }

.partner-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.partner-logo {
  width: 80px;
  height: 40px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.partner-name {
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.partner-tagline {
  text-align: center;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.partner-features {
  list-style: none;
  margin-bottom: 20px;
}

.partner-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}

.partner-features li:last-child { border-bottom: none; }

.feat-icon { flex-shrink: 0; margin-top: 2px; }
.feat-green { color: #0e9f6e; }
.feat-orange { color: var(--orange); }
.feat-gray { color: var(--gray-400); }

.partner-price {
  text-align: center;
  margin-bottom: 16px;
}

.price-from { font-size: 12px; color: var(--gray-400); }
.price-val { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 700; color: var(--gray-900); }
.price-period { font-size: 13px; color: var(--gray-600); }

.partner-cta {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all .12s;
  text-decoration: none;
}

.partner-cta:hover { background: var(--green-dark); color: var(--white); }
.featured .partner-cta { background: var(--orange); }
.featured .partner-cta:hover { background: var(--orange-dark); }

.partner-disclaimer {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
}

/* ── Guide 4 étapes ───────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 24px 16px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-icon { font-size: 32px; margin-bottom: 12px; }

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ── Categories ───────────────────────────────────────────── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
  display: block;
}

.cat-card:hover {
  border-color: var(--green);
  background: var(--green-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.cat-emoji { font-size: 40px; margin-bottom: 12px; }

.cat-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.cat-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}

.cat-arrow {
  margin-top: 12px;
  color: var(--green);
  font-size: 18px;
}

/* ── Articles list ────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .15s;
  display: flex;
  flex-direction: column;
}

.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gray-300); }

.article-img {
  height: 160px;
  background: linear-gradient(135deg, var(--green-light), #ecfdf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.article-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--green);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--gray-900);
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 12px;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-section { background: var(--gray-50); }

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  gap: 12px;
  user-select: none;
}

.faq-q:hover { background: var(--gray-50); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform .2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--green); color: var(--white); }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}

.faq-item.open .faq-a { display: block; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}

.cta-banner h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 17px; margin-bottom: 32px; }

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--green);
  padding: 16px 32px;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: all .15s;
  text-decoration: none;
}

.btn-cta-white:hover { background: var(--green-light); color: var(--green); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

.btn-cta-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: all .15s;
  text-decoration: none;
}

.btn-cta-orange:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-1px); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-desc { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

.footer-legal {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.5;
}

.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--gray-400); font-size: 14px; text-decoration: none; transition: color .12s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--gray-400); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--white); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400);
  padding: 12px 0;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--gray-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb span { color: var(--gray-600); }

/* ── Category hero ────────────────────────────────────────── */
.cat-hero {
  background: linear-gradient(135deg, var(--green-light) 0%, #ecfdf5 100%);
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}

.cat-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cat-hero-emoji { font-size: 64px; flex-shrink: 0; }

.cat-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 8px; }
.cat-hero p { font-size: 17px; color: var(--gray-600); max-width: 600px; line-height: 1.5; }

/* ── Partners strip ───────────────────────────────────────── */
.partners-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.partner-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  transition: all .12s;
}

.partner-mini:hover { border-color: var(--green); color: var(--green); }

/* ── Utility ──────────────────────────────────────────────── */
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-gray { color: var(--gray-600); }
.text-center { text-align: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.chip-orange {
  background: var(--orange-light);
  color: var(--orange);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .comparison-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: flex; }

  .sim-grid { grid-template-columns: 1fr 1fr; }

  .steps-grid { grid-template-columns: 1fr 1fr; }
  .cats-grid  { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }

  .cat-hero-inner { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .sim-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .cats-grid  { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .animal-pills { display: grid; grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
}
