.guide-hero {
  text-align: center;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0;
}

/* Layout */
.guide-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 110px;
  padding: 22px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
}

.guide-toc strong {
  display: block;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.guide-toc a {
  display: block;
  padding: 9px 0;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.guide-toc a:last-child {
  border-bottom: 0;
}

.guide-toc a:hover {
  color: var(--primary);
}

/* Editorial content */
.guide-content {
  max-width: 920px;
}

.guide-content section {
  padding: 40px 24px;
}

.guide-content h2 {
  max-width: 860px;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.12;
  margin: 12px 0 24px;
  letter-spacing: -0.035em;
  color: var(--gray-900);
}

.guide-content h3 {
  max-width: 780px;
  margin: 44px 0 14px;
  font-size: 1.24rem;
  line-height: 1.3;
  color: var(--gray-900);
}

.guide-content p {
  max-width: 780px;
  font-size: 1.03rem;
  line-height: 1.85;
  color: var(--gray-600);
}

.guide-content ul,
.guide-content ol {
  max-width: 780px;
  margin: 18px 0 30px;
  padding-left: 1.15rem;
}

.guide-content li {
  margin-bottom: 11px;
  line-height: 1.75;
  color: var(--gray-600);
}

.guide-section-kicker {
  display: block;
  margin: 22px 0 10px;
  color: var(--gray-900);
  font-weight: 800;
}

/* Replacement for old card grids: editorial rows, not cards */
.editorial-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 820px;
  margin: 34px 0 44px;
  border-top: 1px solid var(--gray-200);
}

.editorial-list--two {
  grid-template-columns: 1fr;
}

.editorial-item {
  display: grid;
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-200);
  background: transparent;
  box-shadow: none;
}

.editorial-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(181, 63, 63, 0.08);
  font-size: 1.2rem;
}

.editorial-item h3,
.editorial-item h4 {
  margin: 0 0 6px;
  font-size: 1.03rem;
  line-height: 1.35;
  color: var(--gray-900);
}

.editorial-item p {
  margin: 0;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Tables */
.city-comparison-table-wrapper {
  max-width: 900px;
  margin: 30px 0 44px;
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.city-comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.city-comparison-table th {
  padding: 16px;
  text-align: left;
  color: #fff;
  background: var(--primary);
}

.city-comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.city-comparison-table tr:last-child td {
  border-bottom: 0;
}

/* CTAs */
.guide-cta,
.lead-magnet {
  max-width: 820px;
  padding: 34px;
  margin-top: 34px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    #f8fbff 0%,
    #eef5ff 55%,
    #ffffff 100%
  );
  border: 1px solid rgba(37, 89, 211, 0.12);
  box-shadow:
    0 16px 45px rgba(37, 89, 211, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.guide-cta h3,
.lead-magnet h2 {
  margin-top: 0;
}

.guide-cta.danger {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.08),
    rgba(220, 38, 38, 0.03)
  );
  border-color: rgba(220, 38, 38, 0.2);
}

.guide-warning {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  max-width: 820px;
  padding: 28px;
  margin: 30px 0;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.guide-warning-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.14);
  font-size: 1.3rem;
}

.guide-warning h3 {
  margin-top: 0;
}

/* Timeline */
.timeline-guide {
  display: grid;
  gap: 0;
  max-width: 820px;
  margin: 32px 0 44px;
  border-left: 2px solid rgba(181, 63, 63, 0.22);
}

.timeline-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 28px 22px;
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-left: -44px;
}

.timeline-step h3 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
}

.timeline-step p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Tool grid can remain visually distinct because those are navigation CTAs */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tool-card {
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

/* FAQ spacing */
.faq {
  margin-top: 34px;
}

/* Sources */
.guide-sources {
  max-width: 920px;
  margin: 48px auto 0;
  padding: 0 20px;
  font-size: 0.82rem;
  color: var(--gray-400);
}

.guide-sources a {
  color: var(--gray-400);
}

/* Responsive */
@media (max-width: 960px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
  }
}

@media (max-width: 700px) {
  .guide-content section {
    margin-bottom: 76px;
  }

  .editorial-item,
  .guide-warning,
  .timeline-step {
    grid-template-columns: 1fr;
  }

  .timeline-guide {
    border-left: 0;
  }

  .timeline-step {
    padding-left: 0;
  }

  .timeline-step span {
    margin-left: 0;
  }

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

  .guide-cta,
  .lead-magnet {
    padding: 24px;
  }

  .guide-content p {
    font-size: 1rem;
  }
}

/* =========================
   Responsive improvements
   ========================= */

.guide-layout,
.guide-content,
.guide-section,
.editorial-block,
.guide-cta,
.lead-magnet,
.guide-warning,
.timeline-guide,
.city-comparison-table-wrapper {
  min-width: 0;
}

/* Tablette */
@media (max-width: 1100px) {
  .guide-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }

  .guide-toc {
    top: 90px;
  }

  .guide-content {
    max-width: 100%;
  }
}

/* Mobile large */
@media (max-width: 900px) {
  .guide-layout {
    display: block;
  }

  .guide-toc {
    position: relative;
    top: auto;
    margin-bottom: 40px;
    padding: 18px;
  }

  .guide-toc a {
    padding: 10px 0;
  }

  .guide-content section {
    margin-bottom: 72px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .tool-meta {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .tool-hero.guide-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .guide-content h2 {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .guide-content h3 {
    font-size: 1.18rem;
  }

  .guide-content p,
  .guide-content li {
    font-size: 1rem;
    line-height: 1.75;
  }

  .editorial-block,
  .guide-cta,
  .lead-magnet,
  .guide-warning,
  .timeline-step {
    padding: 22px;
    border-radius: 18px;
  }

  .guide-warning,
  .timeline-step {
    flex-direction: column;
  }

  .guide-warning-icon,
  .timeline-step span {
    margin-bottom: 8px;
  }

  .city-comparison-table-wrapper {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .city-comparison-table {
    min-width: 720px;
  }

  .tools-grid,
  .hidden-costs-grid,
  .editorial-grid {
    grid-template-columns: 1fr !important;
  }

  .guide-sources {
    padding: 0 18px;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .guide-content section {
    margin-bottom: 58px;
  }

  .guide-content h2 {
    font-size: 1.6rem;
  }

  .guide-content p,
  .guide-content li {
    font-size: 0.97rem;
  }

  .tool-badge {
    font-size: 0.78rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .guide-toc {
    border-radius: 16px;
  }

  .guide-cta .btn,
  .lead-magnet .btn {
    width: 100%;
    justify-content: center;
  }
}

.editorial-stack {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 860px;
}

.mistake-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--gray-200);
}

.mistake-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mistake-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  background: var(--primary);
  flex-shrink: 0;
}

.mistake-row h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.mistake-row p {
  margin: 0 0 10px;
}

@media (max-width: 700px) {
  .mistake-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mistake-number {
    width: 40px;
    height: 40px;
  }
}

.glossary-table-wrapper {
  max-width: 900px;
  margin: 32px 0 40px;
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: white;
}

.glossary-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.glossary-table th {
  background: var(--primary);
  color: white;
  padding: 16px;
  text-align: left;
}

.glossary-table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  line-height: 1.6;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 860px;
}

.glossary-item {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
}

.glossary-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.glossary-item p {
  margin: 0;
}

@media (max-width: 700px) {
  .glossary-grid {
    grid-template-columns: 1fr;
  }
}

.lead-magnet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 26px 0 30px;
  color: var(--gray-700);
  font-size: 0.98rem;
  line-height: 1.6;
}

.lead-magnet-form {
  display: flex;
  gap: 12px;
  max-width: 620px;
  margin-top: 20px;
}

.lead-magnet-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  font-size: 1rem;
}

.lead-magnet-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(181, 63, 63, 0.12);
}

.lead-magnet-note {
  margin-top: 14px;
  font-size: 0.9rem !important;
  color: var(--gray-500) !important;
}

@media (max-width: 700px) {
  .lead-magnet-list {
    grid-template-columns: 1fr;
  }

  .lead-magnet-form {
    flex-direction: column;
  }

  .lead-magnet-form .btn {
    width: 100%;
    justify-content: center;
  }
}

.neighborhood-list {
  max-width: 860px;
  margin-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.neighborhood-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.neighborhood-row h4 {
  margin: 0;
  color: var(--gray-900);
  font-size: 1.05rem;
}

.neighborhood-row p {
  margin: 0;
}

@media (max-width: 700px) {
  .neighborhood-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}