/* ===========================================================
   Papero — Site vitrine gestion de paperasse administrative
   Police système Apple (SF Pro)
   =========================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --blue: #0071e3;
  --blue-dark: #0058b8;
  --ink: #1d1d1f;
  --ink-soft: #48484a;
  --grey: #86868b;
  --line: #e6e6e8;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-card: #ffffff;
  --green: #34c759;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --maxw: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand span {
  color: var(--blue);
}
.nav__links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}
.nav__links a {
  color: var(--ink);
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav__links a:hover {
  opacity: 1;
  text-decoration: none;
}
.nav__links a.active {
  color: var(--blue);
  opacity: 1;
}
.nav__cta {
  background: var(--blue);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 980px;
  font-size: 14px;
}
.nav__cta:hover {
  background: var(--blue-dark);
  text-decoration: none !important;
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 980px;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-dark);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn--ghost:hover {
  background: rgba(0, 113, 227, 0.06);
  text-decoration: none;
}
.btn--lg {
  padding: 14px 30px;
  font-size: 18px;
}
.btn:active {
  transform: scale(0.97);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 88px 0 72px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--grey);
}

/* ---------- Section ---------- */
.section {
  padding: 80px 0;
}
.section--soft {
  background: var(--bg-soft);
}
.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section__head h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section__head p {
  font-size: 19px;
  color: var(--ink-soft);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ---------- Grid of features ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  text-align: center;
}
.step__num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.step p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Products ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter button {
  font-family: var(--font);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.filter button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.product__cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue);
  margin-bottom: 10px;
}
.product h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.product p {
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 16px;
}
.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.product__price {
  font-size: 20px;
  font-weight: 600;
}
.product__price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--grey);
}
.product__btn {
  font-size: 14px;
  background: var(--bg-soft);
  padding: 8px 14px;
  border-radius: 980px;
  color: var(--ink);
}
.product__btn:hover {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
}
.plan--featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 980px;
}
.plan h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.plan__sub {
  color: var(--grey);
  font-size: 14px;
  margin-bottom: 20px;
  min-height: 40px;
}
.plan__price {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.plan__price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--grey);
}
.plan__from {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 24px;
}
.plan ul {
  list-style: none;
  margin-bottom: 28px;
}
.plan li {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 9px 0 9px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--green);
  font-weight: 700;
}
.plan .btn {
  width: 100%;
  text-align: center;
}

/* ---------- Price table ---------- */
.ptable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ptable th,
.ptable td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.ptable th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--grey);
}
.ptable tr:last-child td {
  border-bottom: none;
}
.ptable td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
}

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  padding: 76px 0;
  background: var(--ink);
  color: #fff;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta p {
  font-size: 19px;
  opacity: 0.8;
  margin-bottom: 30px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta .btn--primary {
  background: #fff;
  color: var(--ink);
}
.cta .btn--primary:hover {
  background: #e8e8ed;
}

/* ---------- Contact / Form ---------- */
.form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border 0.2s, background 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.form .btn {
  width: 100%;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
}
.contact-info .card {
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 24px;
  color: var(--grey);
  font-weight: 300;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 46px 0 30px;
  font-size: 13px;
  color: var(--grey);
}
.footer__cols {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 32px;
}
.footer__col h4 {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer__col a {
  display: block;
  color: var(--grey);
  margin-bottom: 8px;
  font-size: 13px;
}
.footer__col a:hover {
  color: var(--ink);
  text-decoration: none;
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Callout ---------- */
.callout {
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.15);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
}

/* ---------- Utility ---------- */
.center {
  text-align: center;
}
.mt-40 {
  margin-top: 40px;
}
.hidden {
  display: none !important;
}

/* ---------- Formulaire : messages ---------- */
.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
}
.form-message--success {
  background: rgba(52, 199, 89, 0.1);
  color: #1c7a34;
  border: 1px solid rgba(52, 199, 89, 0.25);
}
.form-message--error {
  background: rgba(255, 59, 48, 0.08);
  color: #b0271e;
  border: 1px solid rgba(255, 59, 48, 0.2);
}
.form-message--info {
  background: rgba(0, 113, 227, 0.06);
  color: var(--ink-soft);
  border: 1px solid rgba(0, 113, 227, 0.18);
  text-align: left;
  line-height: 1.5;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Toolbar : recherche ---------- */
.toolbar {
  max-width: 560px;
  margin: 0 auto 26px;
}
.search {
  position: relative;
}
.search input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 13px 16px 13px 44px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border 0.2s, background 0.2s;
}
.search input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.search::before {
  content: "🔎";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.6;
}
.empty-state {
  text-align: center;
  color: var(--grey);
  font-size: 16px;
  padding: 50px 0;
}

/* ---------- Product : méta, actions, source ---------- */
.product__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 14px;
}
.product__actions {
  display: flex;
  gap: 8px;
}
.product__btn--primary {
  background: var(--blue);
  color: #fff;
}
.product__btn--primary:hover {
  background: var(--blue-dark);
  color: #fff;
}
.product__source {
  display: block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--grey);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.product__source:hover {
  color: var(--blue);
  text-decoration: none;
}

/* ---------- Documents : accordéons ---------- */
#documents-list {
  max-width: 820px;
  margin: 0 auto;
}
.doc-item details {
  border-bottom: 1px solid var(--line);
}
.doc-item summary {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}
.doc-item summary::-webkit-details-marker {
  display: none;
}
.doc-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 24px;
  font-weight: 300;
  color: var(--grey);
}
.doc-item details[open] summary::after {
  content: "–";
}
.doc-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
  padding: 3px 9px;
  border-radius: 980px;
}
.doc-body {
  padding: 0 0 22px;
}
.doc-list {
  list-style: none;
  margin-bottom: 16px;
}
.doc-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 15px;
  color: var(--ink-soft);
}
.doc-list li::before {
  content: "📎";
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 13px;
}
.doc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  padding-top: 8px;
}
.doc-item details[open] {
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.02), transparent);
}

/* ---------- Bandeau chiffres ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}
.stat__num {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.stat__label {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Avis clients ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.quote__stars {
  color: #ff9f0a;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.quote p {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.55;
}
.quote__author {
  font-size: 14px;
  color: var(--grey);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--3,
  .products,
  .pricing,
  .steps,
  .contact-info,
  .stats,
  .quotes {
    grid-template-columns: 1fr 1fr;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .nav__links {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 10px 22px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .nav__links.open {
    transform: translateY(0);
  }
  .nav__links li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__toggle {
    display: block;
  }
}

@media (max-width: 560px) {
  .grid--3,
  .products,
  .pricing,
  .steps,
  .contact-info,
  .quotes {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .product__actions {
    flex-direction: column;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .form {
    padding: 26px 20px;
  }
  .section {
    padding: 56px 0;
  }
}
