/* ═══════════════════════════════════════════════
 * AME Custom Theme - pages.css
 * 13-section service page template styles.
 * ═══════════════════════════════════════════════ */

/* ── Shared utility ──────────────────────────── */
.sp-bg-clair {
  background: var(--ame-fond-clair);
}

.hl {
  background: linear-gradient(transparent 50%, rgba(193, 255, 114, 0.4) 50%);
  padding: 0 2px;
}


/* ═══════════════════════════════════════════════
 * SECTION 1: HERO (Option B)
 * ═══════════════════════════════════════════════ */
.sp-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Offset for topbar + header */
  padding: calc(var(--topbar-height) + var(--header-height) + 60px) 40px 80px;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 33, 67, 0.88) 0%, rgba(28, 33, 67, 0.4) 100%);
  z-index: 1;
}

.sp-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}


/* ── Hero Breadcrumb ─────────────────────────── */
.sp-breadcrumb {
  margin-bottom: 24px;
}

.sp-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
}

.sp-breadcrumb__item a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.sp-breadcrumb__item a:hover {
  color: var(--ame-lime);
}

.sp-breadcrumb__sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.sp-breadcrumb__item--current span[aria-current] {
  color: #fff;
  font-weight: 600;
}


/* ── Hero Content (left) ─────────────────────── */
.sp-hero__content {
  color: #fff;
}

.sp-hero__title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 20px;
}

.sp-hero__price-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--ame-lime);
  font-weight: 600;
  margin-bottom: 16px;
}

.sp-hero__price-pill strong {
  color: var(--ame-lime);
  font-weight: 800;
}

.sp-hero__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  max-width: 520px;
}

.sp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}


/* ── Hero Glass Badges ───────────────────────── */
.sp-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: background 0.3s var(--ease-out);
}

.sp-hero__badge:hover {
  background: rgba(255, 255, 255, 0.14);
}

.sp-hero__badge-icon {
  font-size: 16px;
  line-height: 1;
}


/* ── Hero Form Card (right) ──────────────────── */
.sp-hero__form-wrap {
  position: relative;
}

.sp-hero__form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 32px 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.sp-hero__form-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ame-bleu-nuit);
  margin-bottom: 24px;
  text-align: center;
}

.sp-hero__form-field {
  margin-bottom: 14px;
}

.sp-hero__form-field input,
.sp-hero__form-field select {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  border: 1px solid #e0e0dd;
  border-radius: var(--radius-sm);
  background: var(--ame-fond-card);
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: var(--font-stack);
}

.sp-hero__form-field input:focus,
.sp-hero__form-field select:focus {
  border-color: var(--ame-lime);
}

.sp-hero__form-btn {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 14px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
}

.sp-hero__form-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  cursor: pointer;
  line-height: 1.4;
}

.sp-hero__form-rgpd input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--ame-lime);
}

.sp-hero__form-rgpd a {
  color: var(--ame-lavande);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sp-hero__form-legal {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
  margin-bottom: 16px;
}

.sp-hero__form-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ame-border);
  font-size: 13px;
  color: #666;
}

.sp-hero__form-google img {
  height: 14px;
  width: auto;
}

.sp-hero__form-google strong {
  color: var(--ame-bleu-nuit);
  font-weight: 800;
}

.sp-hero__form-stars {
  color: #fbbc04;
  font-size: 14px;
  letter-spacing: 1px;
}


/* ═══════════════════════════════════════════════
 * SECTION 2: POURQUOI AME
 * ═══════════════════════════════════════════════ */
.sp-pourquoi__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.sp-pourquoi__card {
  background: var(--ame-blanc);
  border: 1px solid var(--ame-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.sp-pourquoi__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sp-pourquoi__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.sp-pourquoi__icon--lime {
  background: rgba(193, 255, 114, 0.2);
}

.sp-pourquoi__icon--lavande {
  background: rgba(153, 143, 199, 0.15);
}

.sp-pourquoi__card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ame-bleu-nuit);
  margin-bottom: 8px;
}

.sp-pourquoi__card p {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin: 0;
}


/* ═══════════════════════════════════════════════
 * SECTION 3: LES BASES
 * ═══════════════════════════════════════════════ */
.sp-bases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.sp-bases__content .page-content__prose {
  max-width: none;
  margin: 0;
}

/* Prose typography (reused from old pages.css) */
.sp-bases__content .page-content__prose h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ame-bleu-nuit);
  margin-top: 48px;
  margin-bottom: 16px;
}

.sp-bases__content .page-content__prose h2:first-child {
  margin-top: 0;
}

.sp-bases__content .page-content__prose h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ame-bleu-nuit);
  margin-top: 36px;
  margin-bottom: 12px;
}

.sp-bases__content .page-content__prose h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ame-bleu-nuit);
  margin-top: 28px;
  margin-bottom: 10px;
}

.sp-bases__content .page-content__prose p {
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 20px;
}

.sp-bases__content .page-content__prose a {
  color: var(--ame-lavande);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.sp-bases__content .page-content__prose a:hover {
  color: var(--ame-bleu-nuit);
}

.sp-bases__content .page-content__prose strong {
  font-weight: 700;
  color: var(--ame-bleu-nuit);
}

.sp-bases__content .page-content__prose ul,
.sp-bases__content .page-content__prose ol {
  margin: 0 0 24px 0;
  padding-left: 0;
}

.sp-bases__content .page-content__prose ul {
  list-style: none;
}

.sp-bases__content .page-content__prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.sp-bases__content .page-content__prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--ame-lime);
  border-radius: 50%;
}

.sp-bases__content .page-content__prose ol {
  list-style: none;
  counter-reset: ol-counter;
}

.sp-bases__content .page-content__prose ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  counter-increment: ol-counter;
}

.sp-bases__content .page-content__prose ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ame-fond-clair);
  color: var(--ame-bleu-nuit);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}

.sp-bases__content .page-content__prose blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: #fff;
  border-left: 4px solid var(--ame-lavande);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  color: #555;
}

.sp-bases__content .page-content__prose blockquote p {
  margin-bottom: 0;
}

.sp-bases__content .page-content__prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.sp-bases__content .page-content__prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.sp-bases__content .page-content__prose table th,
.sp-bases__content .page-content__prose table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ame-border);
}

.sp-bases__content .page-content__prose table th {
  background: #fff;
  font-weight: 700;
  color: var(--ame-bleu-nuit);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sp-bases__content .page-content__prose hr {
  border: none;
  height: 1px;
  background: var(--ame-border);
  margin: 40px 0;
}


/* ── Mini Cards ──────────────────────────────── */
.sp-bases__minicards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.sp-bases__minicard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ame-border);
}

.sp-bases__minicard--lime {
  background: rgba(193, 255, 114, 0.1);
  border-color: rgba(193, 255, 114, 0.3);
}

.sp-bases__minicard--lavande {
  background: rgba(153, 143, 199, 0.08);
  border-color: rgba(153, 143, 199, 0.2);
}

.sp-bases__minicard--dark {
  background: rgba(28, 33, 67, 0.04);
  border-color: rgba(28, 33, 67, 0.1);
}

.sp-bases__minicard-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.sp-bases__minicard strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ame-bleu-nuit);
  margin-bottom: 2px;
}

.sp-bases__minicard p {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 0;
}


/* ── Aside: Image + Table ────────────────────── */
.sp-bases__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 24px;
}

.sp-bases__table-wrap {
  background: var(--ame-blanc);
  border: 1px solid var(--ame-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sp-bases__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.sp-bases__table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ame-bleu-nuit);
  background: var(--ame-fond-clair);
  border-bottom: 1px solid var(--ame-border);
}

.sp-bases__table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ame-border);
  color: #444;
}

.sp-bases__table tbody tr:last-child td {
  border-bottom: none;
}

.sp-bases__table tbody td strong {
  color: var(--ame-bleu-nuit);
  font-weight: 700;
}


/* ═══════════════════════════════════════════════
 * SECTION 4: PROFILS
 * ═══════════════════════════════════════════════ */
.sp-profils__banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px 0 36px;
  height: 200px;
}

.sp-profils__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-profils__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 33, 67, 0.75) 0%, rgba(28, 33, 67, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-profils__banner-overlay span {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.sp-profils__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sp-profils__card {
  background: var(--ame-blanc);
  border: 1px solid var(--ame-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.sp-profils__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sp-profils__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(153, 143, 199, 0.12);
  color: var(--ame-lavande);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.sp-profils__card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ame-bleu-nuit);
  margin-bottom: 8px;
}

.sp-profils__card p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 16px;
}

.sp-profils__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: transparent;
  color: var(--ame-lavande);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--ame-lavande);
  border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.sp-profils__cta:hover {
  background: var(--ame-lavande);
  color: #fff;
}


/* ═══════════════════════════════════════════════
 * SECTION 5: FORMULES (pricing cards)
 * ═══════════════════════════════════════════════ */
.sp-formules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sp-formules__card {
  background: var(--ame-blanc);
  border: 1px solid var(--ame-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.sp-formules__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sp-formules__card--featured {
  border-color: var(--ame-lime);
  border-width: 2px;
  box-shadow: 0 4px 20px rgba(193, 255, 114, 0.15);
}

.sp-formules__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--ame-lime);
  color: var(--ame-bleu-nuit);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.sp-formules__card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ame-bleu-nuit);
  margin-bottom: 8px;
}

.sp-formules__price {
  font-size: 42px;
  font-weight: 900;
  color: var(--ame-bleu-nuit);
  margin-bottom: 4px;
  line-height: 1.1;
}

.sp-formules__price small {
  font-size: 16px;
  font-weight: 500;
  color: #888;
}

.sp-formules__desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
  line-height: 1.5;
}

.sp-formules__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.sp-formules__feature {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid var(--ame-border);
}

.sp-formules__feature:last-child {
  border-bottom: none;
}

.sp-formules__feature--yes::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  background: var(--ame-lime);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231C2143' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.sp-formules__feature--no {
  color: #bbb;
}

.sp-formules__feature--no::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  background: #f0efed;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.sp-formules__btn {
  width: 100%;
}

/* btn-dark for Tous Risques card */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--ame-bleu-nuit);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn-dark:hover {
  background: #2a3060;
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════
 * SECTION 6: TARIFS
 * ═══════════════════════════════════════════════ */
.sp-tarifs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.sp-tarifs__examples {
  background: var(--ame-blanc);
  border: 1px solid var(--ame-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sp-tarifs__examples h3,
.sp-tarifs__tips h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ame-bleu-nuit);
  margin-bottom: 24px;
}

.sp-tarifs__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--ame-border);
}

.sp-tarifs__row:last-child {
  border-bottom: none;
}

.sp-tarifs__row-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ame-bleu-nuit);
}

.sp-tarifs__row-info span {
  font-size: 13px;
  color: #888;
}

.sp-tarifs__row-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--ame-bleu-nuit);
  white-space: nowrap;
}

.sp-tarifs__row-price small {
  font-size: 13px;
  font-weight: 500;
  color: #888;
}

.sp-tarifs__tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ame-border);
}

.sp-tarifs__tip:last-child {
  border-bottom: none;
}

.sp-tarifs__tip-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-tarifs__tip strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ame-bleu-nuit);
  margin-bottom: 4px;
}

.sp-tarifs__tip p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}


/* ═══════════════════════════════════════════════
 * SECTION 7: COURTIER VS DIRECT
 * ═══════════════════════════════════════════════ */
.sp-courtier__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.sp-courtier__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.sp-courtier__table-wrap {
  background: var(--ame-blanc);
  border: 1px solid var(--ame-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sp-courtier__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.sp-courtier__table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ame-bleu-nuit);
  background: var(--ame-fond-clair);
  border-bottom: 1px solid var(--ame-border);
}

.sp-courtier__table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--ame-border);
  color: #666;
}

.sp-courtier__table tbody tr:last-child td {
  border-bottom: none;
}

.sp-courtier__td--good {
  color: var(--ame-bleu-nuit) !important;
  font-weight: 700;
}

.sp-courtier__td--good::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ame-lime);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}


/* ═══════════════════════════════════════════════
 * SECTION 8: PROCESSUS (5 steps)
 * ═══════════════════════════════════════════════ */
.sp-processus__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.sp-processus__step {
  flex: 0 0 180px;
  text-align: center;
}

.sp-processus__number {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ame-bleu-nuit);
  color: var(--ame-lime);
  font-size: 20px;
  font-weight: 900;
  border-radius: 50%;
  margin: 0 auto 16px;
  transition: transform 0.3s var(--ease-out);
}

.sp-processus__step:hover .sp-processus__number {
  transform: scale(1.1);
}

.sp-processus__step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ame-bleu-nuit);
  margin-bottom: 6px;
}

.sp-processus__step p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  padding: 0 8px;
}

.sp-processus__arrow {
  display: flex;
  align-items: center;
  padding-top: 14px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
 * SECTION 9: FAQ
 * ═══════════════════════════════════════════════ */
.sp-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.sp-faq__image-wrap {
  position: sticky;
  top: 100px;
}

.sp-faq__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}


/* ── FAQ Accordion items (shared with faq.js) ── */
.sp-faq__accordion .faq__item {
  border-bottom: 1px solid var(--ame-border);
}

.sp-faq__accordion .faq__item:last-child {
  border-bottom: none;
}

.sp-faq__accordion .faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-stack);
  font-size: 16px;
  font-weight: 600;
  color: var(--ame-bleu-nuit);
  transition: color 0.2s ease;
}

.sp-faq__accordion .faq__question:hover {
  color: var(--ame-lavande);
}

.sp-faq__accordion .faq__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(153, 143, 199, 0.1);
  color: var(--ame-lavande);
  font-size: 20px;
  font-weight: 600;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.sp-faq__accordion .faq__item.is-open .faq__toggle {
  transform: rotate(45deg);
  background: var(--ame-lavande);
  color: #fff;
}

.sp-faq__accordion .faq__answer {
  padding: 0 0 20px;
}

.sp-faq__accordion .faq__answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}


/* ═══════════════════════════════════════════════
 * SECTION 10: TEMOIGNAGES
 * ═══════════════════════════════════════════════ */
.sp-temoignages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.sp-temoignages__card {
  background: var(--ame-blanc);
  border: 1px solid var(--ame-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.sp-temoignages__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.sp-temoignages__stars {
  color: #fbbc04;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.sp-temoignages__text {
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  color: #555;
  margin: 0 0 20px;
  border: none;
  padding: 0;
}

.sp-temoignages__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-temoignages__avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(153, 143, 199, 0.12);
  color: var(--ame-lavande);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.sp-temoignages__author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ame-bleu-nuit);
}

.sp-temoignages__author span {
  font-size: 13px;
  color: #888;
}


/* ═══════════════════════════════════════════════
 * SECTION 11: CROSS-SELL
 * ═══════════════════════════════════════════════ */
.sp-crosssell__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sp-crosssell__card {
  display: flex;
  flex-direction: column;
  background: var(--ame-blanc);
  border: 1px solid var(--ame-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.sp-crosssell__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--ame-lavande);
}

.sp-crosssell__emoji {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.sp-crosssell__card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ame-bleu-nuit);
  margin-bottom: 8px;
}

.sp-crosssell__card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.sp-crosssell__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ame-lavande);
  transition: color 0.2s ease;
}

.sp-crosssell__card:hover .sp-crosssell__link {
  color: var(--ame-bleu-nuit);
}


/* ═══════════════════════════════════════════════
 * SECTION 12: LOCALISATION
 * ═══════════════════════════════════════════════ */
.sp-localisation__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.sp-localisation__map img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  min-height: 300px;
  background: var(--ame-fond-clair);
}

.sp-localisation__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-localisation__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ame-border);
}

.sp-localisation__row:last-child {
  border-bottom: none;
}

.sp-localisation__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(153, 143, 199, 0.1);
  color: var(--ame-lavande);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sp-localisation__icon svg {
  stroke: var(--ame-lavande);
}

.sp-localisation__row strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ame-bleu-nuit);
  margin-bottom: 4px;
}

.sp-localisation__row p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.sp-localisation__row a {
  color: var(--ame-lavande);
  transition: color 0.2s ease;
}

.sp-localisation__row a:hover {
  color: var(--ame-bleu-nuit);
}


/* ═══════════════════════════════════════════════
 * RESPONSIVE — TABLET (max-width: 1024px)
 * ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Hero */
  .sp-hero {
    padding: calc(var(--topbar-height) + var(--header-height) + 40px) 24px 60px;
  }

  .sp-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sp-hero__title {
    font-size: 38px;
  }

  .sp-hero__form-wrap {
    max-width: 440px;
  }

  /* Pourquoi: 3 then 2 */
  .sp-pourquoi__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Bases: stack */
  .sp-bases__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Profils: 2 cols */
  .sp-profils__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-profils__banner {
    height: 160px;
  }

  /* Formules: 3 cols stays but smaller */
  .sp-formules__grid {
    gap: 16px;
  }

  .sp-formules__card {
    padding: 28px 20px 24px;
  }

  /* Tarifs */
  .sp-tarifs__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Courtier */
  .sp-courtier__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Processus: wrap */
  .sp-processus__steps {
    flex-wrap: wrap;
    gap: 12px;
  }

  .sp-processus__arrow {
    display: none;
  }

  .sp-processus__step {
    flex: 0 0 calc(33.33% - 12px);
  }

  /* FAQ */
  .sp-faq__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sp-faq__image-wrap {
    position: static;
    max-width: 400px;
  }

  /* Temoignages: 2 cols */
  .sp-temoignages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cross-sell: 2 cols */
  .sp-crosssell__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Localisation */
  .sp-localisation__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ═══════════════════════════════════════════════
 * RESPONSIVE — MOBILE (max-width: 767px)
 * ═══════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Hero */
  .sp-hero {
    padding: calc(var(--topbar-height) + var(--header-height) + 32px) 16px 40px;
    min-height: auto;
  }

  .sp-hero__title {
    font-size: 28px;
    letter-spacing: -0.3px;
  }

  .sp-hero__subtitle {
    font-size: 15px;
  }

  .sp-hero__ctas {
    flex-direction: column;
  }

  .sp-hero__ctas .btn-lime,
  .sp-hero__ctas .btn-outline-w {
    width: 100%;
    justify-content: center;
  }

  .sp-hero__badges {
    gap: 8px;
  }

  .sp-hero__badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .sp-hero__form-card {
    padding: 24px 20px 20px;
  }

  .sp-hero__form-title {
    font-size: 18px;
  }

  /* Breadcrumb */
  .sp-breadcrumb__item {
    font-size: 12px;
  }

  .sp-breadcrumb__sep {
    margin: 0 6px;
  }

  /* Pourquoi: 2 cols */
  .sp-pourquoi__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sp-pourquoi__card {
    padding: 20px 16px;
  }

  .sp-pourquoi__card h3 {
    font-size: 14px;
  }

  .sp-pourquoi__card p {
    font-size: 12px;
  }

  /* Bases */
  .sp-bases__grid {
    gap: 32px;
  }

  .sp-bases__content .page-content__prose h2 {
    font-size: 22px;
    margin-top: 32px;
  }

  .sp-bases__content .page-content__prose h3 {
    font-size: 18px;
    margin-top: 24px;
  }

  .sp-bases__content .page-content__prose p {
    font-size: 15px;
  }

  /* Profils: 1 col */
  .sp-profils__grid {
    grid-template-columns: 1fr;
  }

  .sp-profils__banner {
    height: 120px;
  }

  .sp-profils__banner-overlay span {
    font-size: 20px;
  }

  /* Formules: 1 col */
  .sp-formules__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sp-formules__price {
    font-size: 36px;
  }

  /* Tarifs */
  .sp-tarifs__row-price {
    font-size: 20px;
  }

  /* Courtier table */
  .sp-courtier__table {
    font-size: 13px;
  }

  .sp-courtier__table thead th,
  .sp-courtier__table tbody td {
    padding: 10px 12px;
  }

  /* Processus: 1 col */
  .sp-processus__steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .sp-processus__step {
    flex: none;
    width: 100%;
    max-width: 280px;
  }

  /* FAQ */
  .sp-faq__accordion .faq__question {
    font-size: 15px;
    padding: 16px 0;
  }

  .sp-faq__accordion .faq__answer p {
    font-size: 14px;
  }

  /* Temoignages: 1 col */
  .sp-temoignages__grid {
    grid-template-columns: 1fr;
  }

  /* Cross-sell: 1 col */
  .sp-crosssell__grid {
    grid-template-columns: 1fr;
  }

  /* Localisation */
  .sp-localisation__map img {
    min-height: 200px;
  }

  /* Section label + title mobile tweaks */
  .section-title .highlight {
    display: inline;
  }

  /* btn-dark mobile */
  .btn-dark {
    padding: 12px 24px;
    font-size: 13px;
    width: 100%;
  }
}
