/*
 * design-system/vitrine-sections.css : sections partagées par l'accueil et les pages
 * produit (/logiciel-devis-facture) : base, cadre violet « constat », étapes « how »,
 * bloc Réforme et carte partenaire, FAQ, appel final, et leurs paliers responsive.
 *
 * Règles DÉPLACÉES à l'identique depuis le <style> de index.html, dans le même ordre ;
 * la page /logiciel-devis-facture en portait une copie (PR #1288), retirée. Preuve du
 * déplacement pur : captures des deux pages identiques à l'octet avant/après.
 * Lié seulement par ces deux pages (les autres pages vitrine n'ont pas ces sections).
 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--pi-cream);
  color: var(--pi-ink);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--ff-display); font-weight: var(--fw-display);
  letter-spacing: -0.02em; line-height: 1.02; margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--ff-body); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pi-muted); font-weight: 600; display: inline-block;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--pi-ink); color: #fff;
  padding: 8px 16px; border-radius: var(--r-sm);
  z-index: 10000;
}
.skip-link:focus { left: 8px; top: 8px; }
.constat {
  margin-top: 96px;
  background: var(--pi-violet);
  border-radius: var(--r-xl);
  padding: 64px 56px;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 48px; align-items: center;
}
.constat-illu { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto; }
.constat .body h2 {
  font-size: 44px; line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance; max-width: 16ch;
}
.constat .body h2 .em {
  font-style: normal; display: inline-block;
  background: var(--pi-card); padding: 0 0.18em;
  border-radius: var(--r-md); line-height: 1.05;
}
.constat .body p {
  margin-top: 18px; color: var(--pi-ink-soft);
  font-size: 16px; max-width: 480px; line-height: 1.55;
}
.constat-pivot {
  margin-top: 24px; font-size: 16px; font-weight: 600; color: var(--pi-ink);
}
.constat-pivot em {
  font-style: normal; background: var(--pi-lime);
  padding: 0 0.18em; border-radius: var(--r-sm);
}
.how { padding: 120px 0 80px; text-align: center; }
.how h2 { font-size: 56px; line-height: 1; letter-spacing: -0.025em; max-width: 720px; margin: 14px auto 0; text-wrap: balance; }
.how .lede { max-width: 540px; margin: 18px auto 0; color: var(--pi-muted); font-size: 15px; line-height: 1.55; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 64px auto 0; position: relative; max-width: 900px;
}
.steps::before {
  content: ""; position: absolute; top: 38px; left: 18%; right: 18%;
  height: 2px; background: repeating-linear-gradient(to right, var(--pi-ink) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.step {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 18px; padding: 0 20px;
}
.step-circle {
  width: 76px; height: 76px; border-radius: var(--r-pill);
  background: var(--pi-purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: var(--fw-display); font-size: 36px;
  position: relative; z-index: 1;
  border: 8px solid var(--pi-cream);
  box-shadow: var(--sh-1);
}
.step h3 { font-size: 24px; line-height: 1.05; letter-spacing: -0.015em; }
.step p { font-size: 13.5px; color: var(--pi-muted); max-width: 220px; line-height: 1.55; }
.factel {
  background: var(--pi-violet);
  border-radius: var(--r-xl);
  padding: 56px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px;
  align-items: center;
}
.factel h2 { font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.factel-desc { margin-top: 18px; color: var(--pi-ink-soft); font-size: 15px; max-width: 520px; line-height: 1.55; }
.factel-partner-card {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  align-items: center;
  margin-top: 24px; padding: 22px 26px;
  background: var(--pi-card); border: 1px solid var(--pi-divider);
  border-radius: var(--r-md); box-shadow: var(--sh-1);
  max-width: 580px;
}
.factel-partner-logo {
  width: 168px; height: 110px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--pi-cream); border-radius: var(--r-md);
  padding: 12px;
}
.factel-partner-logo img {
  max-height: 86px; max-width: 100%;
  width: auto; height: auto; display: block;
}
.factel-partner-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.factel-partner-badge {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  background: rgba(15,133,80,0.10); color: var(--pi-success);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.factel-partner-badge .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--pi-success);
}
.factel-partner-msg {
  font-size: 13px; color: var(--pi-ink-soft); line-height: 1.5; margin: 0;
}
.factel-partner-msg strong { color: var(--pi-ink); font-weight: 600; }
@media (max-width: 600px) {
  .factel-partner-card { grid-template-columns: 1fr; }
  .factel-partner-logo { width: 100%; height: 120px; }
  .factel-partner-logo img { max-height: 96px; }
}
.factel ul { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.factel li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--pi-ink); font-weight: 500; }
.factel li::before {
  content: ""; width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--pi-ink); flex: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.4 L7 11 L12 5.5' fill='none' stroke='%23C9F03B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.factel-illu { width: 100%; max-width: 460px; display: block; margin-left: auto; }
.faq { padding: 80px 0 100px; }
.faq-head { text-align: center; max-width: 720px; margin: 0 auto; }
.faq h2 { font-size: 56px; line-height: 1; letter-spacing: -0.025em; margin-top: 14px; text-wrap: balance; }
.faq-desc { color: var(--pi-muted); font-size: 15px; margin: 18px auto 0; max-width: 540px; line-height: 1.55; }
.faq-list { margin: 56px auto 0; max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--pi-card); border: 1px solid var(--pi-divider);
  border-radius: var(--r-lg); padding: 4px 24px;
  transition: border-color .15s ease;
}
.faq-item[open] { border-color: var(--pi-ink); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0;
  font-family: var(--ff-display); font-weight: var(--fw-display);
  font-size: 19px; letter-spacing: -0.015em;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .ico {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  background: var(--pi-cream); display: inline-flex; align-items: center; justify-content: center;
  flex: none; transition: background .15s ease, transform .2s ease;
  position: relative;
}
.faq-item[open] .ico { background: var(--pi-lime); transform: rotate(45deg); }
.faq-item .ico::before, .faq-item .ico::after {
  content: ""; width: 12px; height: 2px; background: var(--pi-ink); position: absolute;
}
.faq-item .ico::after { transform: rotate(90deg); }
.faq-item .body { padding: 0 0 22px; font-size: 14.5px; color: var(--pi-ink-soft); line-height: 1.6; max-width: 680px; }
.faq-item .body a { color: var(--pi-purple); font-weight: 500; text-decoration: underline; }
.cta {
  background: var(--pi-ink); color: #fff;
  border-radius: var(--r-xl);
  padding: 80px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; top: -180px; right: -120px;
  width: 460px; height: 460px; border-radius: var(--r-pill);
  background: var(--pi-purple); opacity: 0.45; filter: blur(40px);
}
.cta::after {
  content: ""; position: absolute; bottom: -200px; left: -100px;
  width: 380px; height: 380px; border-radius: var(--r-pill);
  background: var(--pi-lime); opacity: 0.25; filter: blur(50px);
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta .eyebrow { color: var(--pi-lime); }
.cta h2 { font-size: 64px; line-height: 0.98; letter-spacing: -0.025em; margin-top: 14px; text-wrap: balance; }
.cta h2 .em {
  font-style: normal; display: inline-block;
  background: var(--pi-lime); color: var(--pi-ink);
  padding: 0 0.18em; border-radius: var(--r-md); line-height: 1.05;
}
.cta-desc { margin-top: 18px; color: rgba(255, 255, 255, 0.75); font-size: 16px; line-height: 1.55; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-ctas { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-alt { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.cta-alt a { text-decoration: underline; }
@media (max-width: 1024px) {
  .wrap { padding: 0 24px; }
  .constat { grid-template-columns: 1fr; gap: 32px; padding: 48px 36px; }
  .constat-illu { max-width: 360px; }
  .constat .body h2 { font-size: 38px; }
  .how { padding: 80px 0 56px; }
  .how h2 { font-size: 48px; }
  .steps { grid-template-columns: 1fr; gap: 36px; max-width: 480px; }
  .steps::before { display: none; }
  .step { padding: 0; }
  .faq { padding: 56px 0 80px; }
  .faq h2 { font-size: 48px; }
  .cta { padding: 64px 36px; }
  .cta h2 { font-size: 52px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .constat { margin-top: 64px; padding: 36px 24px; border-radius: var(--r-lg); }
  .constat .body h2 { font-size: 30px; max-width: none; }
  .how { padding: 56px 0 40px; }
  .how h2 { font-size: 36px; }
  .faq { padding: 40px 0 56px; }
  .faq h2 { font-size: 36px; }
  .faq-list { margin-top: 36px; }
  .faq-item summary { font-size: 16px; padding: 18px 0; }
  .faq-item { padding: 4px 18px; }
  .cta { padding: 48px 24px; border-radius: var(--r-lg); }
  .cta h2 { font-size: 36px; }
  .cta-desc { font-size: 15px; }
  .cta-ctas { gap: 10px; margin-top: 28px; }
  .cta-ctas .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .faq h2, .how h2 { font-size: 30px; }
  .cta h2 { font-size: 30px; }
  .constat .body h2 { font-size: 26px; }
}
