/* Apiclic — page d'accueil SEO. CSS minimal, mobile-first, palette miel. */

:root {
  --honey: #b45309;
  --honey-light: #fbbf24;
  --honey-bg: #fffbeb;
  --ink: #1c1917;
  --slate: #44403c;
  --white: #ffffff;
  --border: #fde68a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: var(--honey-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--honey);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 .accent {
  color: var(--honey);
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ──────────────────────────────────────── Header / Hero ───────── */
.hero {
  background:
    radial-gradient(ellipse at top right, #fde68a 0%, transparent 60%),
    linear-gradient(180deg, var(--honey-bg) 0%, #fef3c7 100%);
  padding: 1rem 1.25rem 4rem;
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
}
.brand-logo {
  font-size: 1.5rem;
}

.nav-cta {
  background: var(--honey);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: 0.625rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--slate);
  margin: 1rem 0 2rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  background: var(--honey);
  color: var(--white);
  padding: 1rem 1.75rem;
  border-radius: 0.875rem;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
  transition: transform 0.15s ease;
}
.cta-primary:hover {
  transform: translateY(-1px);
}

.cta-secondary {
  background: transparent;
  color: var(--honey);
  padding: 1rem 1.5rem;
  border-radius: 0.875rem;
  border: 2px solid var(--honey-light);
  font-weight: 700;
  text-decoration: none;
}

/* ──────────────────────────────────────── Sections ────────────── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 3.5rem 0;
}

.origin p,
.frelon p,
.final-cta p {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 720px;
}

/* Comment ça marche : 3 étapes */
.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--honey);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* Fonctionnalités */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature-grid li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem;
}
.feature-grid p {
  color: var(--slate);
  margin: 0.5rem 0 0;
}

/* Frelon — engagement */
.frelon {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin: 3.5rem 0;
}

/* CTA finale */
.final-cta {
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, #fef3c7 100%);
  border-radius: 1rem;
}
.final-cta p {
  margin: 1rem auto 1.75rem;
}

/* FAQ */
.faq {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.25rem 1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 0.85rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  float: right;
  color: var(--honey);
  font-weight: 800;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 0 0 0.85rem;
  color: var(--slate);
}

/* Contenu d'article / page de contenu */
.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
.content section {
  padding: 1.25rem 0;
}
.content p,
.content li {
  color: var(--slate);
}
.content .cta-primary {
  display: inline-block;
  margin-top: 1rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--slate);
  padding: 1rem 0 0;
}

/* Liste d'articles de blog */
.post-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.post-list a {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}
.post-list a:hover {
  border-color: var(--honey-light);
}
.post-list h3 {
  margin: 0 0 0.4rem;
  color: var(--honey);
}
.post-list p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  color: var(--slate);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* Tableau comparatif (pages SEO) */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.98rem;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--honey-bg);
  color: var(--ink);
  font-weight: 700;
}
.compare-table td:last-child {
  font-weight: 600;
  color: var(--honey);
}
