.content-page {
  background: #f7f8fa;
}

.content-page .portal-nav {
  gap: clamp(10px, 1.8vw, 22px);
}

.content-page .portal-nav a {
  white-space: nowrap;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr);
  gap: 24px;
  align-items: stretch;
}

.page-hero .portal-hero {
  min-height: 100%;
}

.hero-card {
  display: grid;
  gap: 12px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-card strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.content-section {
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 32, .06);
}

.content-section h2,
.content-section h3 {
  margin: 0;
  color: var(--ink);
}

.content-section > p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.seo-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.seo-service-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.seo-service-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seo-service-card h3 {
  font-size: 1.1rem;
}

.seo-service-card p,
.partner-card p,
.faq-item p,
.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-dot {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff1e8;
  color: var(--orange);
  font-weight: 950;
}

.service-dot.large {
  width: 64px;
  height: 64px;
  font-size: 1.15rem;
}

.service-page-hero .portal-hero {
  display: grid;
  gap: 16px;
}

.service-page-hero .portal-hero h1 {
  max-width: 980px;
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.secondary-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.service-summary-card {
  align-content: start;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-detail-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.service-detail-card h3 {
  font-size: 1.05rem;
}

.service-detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-link-cloud a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.intervention-list-page {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intervention-list-page li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--text);
  font-size: .95rem;
}

.intervention-list-page strong {
  color: var(--ink);
}

.seo-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-check-list li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px 12px 42px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.seo-check-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--orange);
  font-weight: 950;
}

.seo-table-wrap {
  overflow-x: auto;
}

.seo-price-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seo-price-table th,
.seo-price-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
}

.seo-price-table th {
  background: #fff4ed;
  color: var(--ink);
  font-weight: 950;
}

.seo-price-table td:last-child {
  color: var(--orange);
  font-weight: 950;
}

.local-seo-page .hero-card,
.article-content {
  align-content: start;
}

.article-content {
  max-width: 980px;
  margin-inline: auto;
}

.article-content h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: .95;
}

.article-content h2 {
  margin-top: 12px;
}

.article-content p {
  max-width: 900px;
}

.card-link {
  justify-self: start;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.partner-grid,
.steps-page-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.partner-card,
.step-card,
.faq-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 950;
}

.wide-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ffd1ba;
  border-radius: var(--radius);
  padding: 22px;
  background: #fff7f1;
}

.wide-callout p {
  margin: 0;
  color: var(--muted);
}

.faq-item h3 {
  font-size: 1rem;
}

@media (max-width: 980px) {
  .page-hero,
  .seo-service-grid,
  .service-detail-grid,
  .seo-check-list,
  .partner-grid,
  .steps-page-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .content-page .portal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-page .portal-nav {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .content-page .portal-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    border: 1px solid var(--line);
    padding: 0 12px;
    background: #fff;
  }

  .portal-shell {
    padding-bottom: 34px;
  }

  body {
    padding-bottom: 0;
  }
}

/* Correctif global pages internes : garde un vrai rendu site web sur ordinateur et mobile. */
.content-page .portal-shell {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 70px);
}

.content-page .portal-header {
  width: 100%;
}

.page-hero,
.content-page .portal-hero,
.content-section,
.seo-service-card,
.hero-card,
.faq-item,
.partner-card,
.step-card,
.service-detail-card {
  min-width: 0;
}

.content-page .portal-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.content-page .portal-hero h1,
.article-content h1 {
  max-width: 1080px;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: normal;
}

.content-page .portal-hero p,
.content-section p,
.seo-service-card p,
.faq-item p {
  overflow-wrap: normal;
  word-break: normal;
}

.page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.seo-service-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.faq-grid,
.partner-grid,
.steps-page-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 980px) {
  .content-page .portal-shell {
    padding-inline: 14px;
  }

  .page-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .content-page .portal-hero,
  .content-section {
    padding: 20px;
  }

  .content-page .portal-hero h1,
  .article-content h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }
}
