/* ===== Pages de contenu (référencement) : guides « logiciel de caisse »,
   métiers, besoins… Mise en page commune, préfixe .gd ===== */
.gd {
  width: calc(100vw / var(--z));
  position: relative;
  left: 50%;
  margin-left: calc(-50vw / var(--z));
  background: #f7f8fa;
  color: var(--navy);
  font-family: Inter, system-ui, sans-serif;
}
.gd * {
  box-sizing: border-box;
}
.gd h1,
.gd h2,
.gd h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}
.gd p,
.gd ul,
.gd ol {
  margin: 0;
}
.gd-w {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- En-tête (badge : .pastille de base.css) ---------- */
.gd-head {
  padding: 40px 0 56px;
  background:
    radial-gradient(circle at 85% 10%, rgba(90, 219, 203, 0.18), transparent 45%),
    linear-gradient(180deg, #eef6fa 0%, #f7f8fa 100%);
}
.gd .gd-ariane {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-soft);
}
.gd-ariane li + li::before {
  content: "›";
  margin-right: 6px;
  color: #9db5c4;
}
.gd-ariane a {
  color: var(--blue);
  text-decoration: none;
}
.gd-ariane a:hover {
  text-decoration: underline;
}
.gd-head .pastille {
  margin-bottom: 18px;
}
.gd-head h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  max-width: 880px;
}
.gd-head h1 .hl {
  color: var(--blue);
}
.gd .gd-lead {
  margin-top: 20px;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-soft);
}
.gd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.gd-b {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
}
.gd-b1 {
  background: var(--grad);
  color: #fff;
}
.gd-b1:hover {
  filter: brightness(1.1);
}
.gd-b2 {
  background: #fff;
  color: var(--navy);
  border-color: #9db5c4;
}
.gd-b2:hover {
  border-color: var(--blue);
}

/* ---------- Corps : sommaire + article ---------- */
.gd-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 56px 32px 72px;
}
.gd-toc {
  position: sticky;
  top: 110px;
  align-self: start;
  font-size: 15px;
}
.gd-toc p {
  font-weight: 700;
  margin-bottom: 12px;
}
.gd-toc ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 2px solid var(--line);
}
.gd-toc a {
  display: block;
  padding-left: 14px;
  color: var(--text-soft);
  text-decoration: none;
  line-height: 1.4;
}
.gd-toc a:hover {
  color: var(--blue);
}
.gd-art {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: #24485d;
}
.gd-art h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--navy);
  margin-top: 30px;
  scroll-margin-top: 110px;
}
.gd-art h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 10px;
}
.gd-art ul,
.gd-art ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gd-art strong {
  color: var(--navy);
}
.gd-art a {
  color: var(--blue);
  font-weight: 600;
}

/* Encadrés */
.gd-box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.gd-box p + p {
  margin-top: 8px;
}
.gd-box-t {
  font-weight: 700;
  color: var(--navy);
}

/* Capture du logiciel */
.gd-shot {
  margin: 12px 0;
}
.gd-shot img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-shot);
}
.gd-shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-soft);
  text-align: center;
}

/* Tableau comparatif */
.gd-table {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.gd-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.gd-table th,
.gd-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.gd-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.gd-table tbody th {
  font-weight: 600;
  color: var(--navy);
}
.gd-table tr:last-child th,
.gd-table tr:last-child td {
  border-bottom: 0;
}

/* Liens vers les autres pages */
.gd-liens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.gd-liens a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.gd-liens a:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.gd-liens span {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------- Téléphone ---------- */
@media (max-width: 935px) {
  /* minmax(0, 1fr) : un tableau défile dans son cadre au lieu d'élargir la page */
  .gd .gd-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 20px 56px;
  }
  .gd-toc {
    position: static;
  }
}
@media (max-width: 700px) {
  .gd-w {
    padding: 0 20px;
  }
  .gd-head {
    padding: 28px 0 40px;
  }
  .gd-head h1 {
    font-size: 34px;
  }
  .gd-lead {
    font-size: 17px;
  }
  .gd-art {
    font-size: 16px;
  }
  .gd-art h2 {
    font-size: 26px;
  }
  .gd-b {
    flex: 1 1 auto;
    text-align: center;
  }
}
