/* Page SEO (listing) — styles dédiés */
@media screen and (min-width: 1025px) {
  header#headerPage.has-arrow{
    height: 120px !important;
  }
}
.seo-page {
  /* Même fond léger que les fiches annonces (Figma brand-subtle) */
  background: var(--brand-subtle, #F4F8FF);
  color: #1d3253;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  margin: 0;
}

.seo-page * {
  font-family: inherit;
}

.seo-page *,
.seo-page *::before,
.seo-page *::after {
  box-sizing: border-box;
}

.seo-main {
  display: block;
  /* Le padding-top est déjà géré globalement par #AllSite (styleHeader.css) */
  padding-top: 0;
}

.seo-container {
  margin: 0 auto;
  /* Maquette Figma: frame 1440 avec padding 100 => contenu 1240 */
  max-width: 1440px;
  padding: 0 100px;
}

/* Hero sans bande colorée : contenu conservé, fond page (brand-subtle) */
.seo-hero {
  background: transparent;
  color: #1d3253;
  padding: 16px 0 24px;
}

/* Fil d'Ariane : mêmes marges que les autres pages (kiwi-breadcrumb.css) */
.seo-hero .kiwi-breadcrumb {
  margin: 10px 0 8px 0;
}

.seo-title {
  font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  margin: 0 0 8px;
  color: #1d3253;
}

.seo-subtitle {
  color: #1d3253;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0 0 12px;
  max-width: 610px;
  font-family: "Roboto";
}

.seo-kpis {
  display: flex;
  gap: 32px;
}

.seo-kpis__item {
  align-items: baseline;
  display: inline-flex;
  gap: 8px;
}

.seo-kpis__value,
.seo-kpis__label {
  background-image: linear-gradient(45deg, #F907FC 0%, #0779FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.seo-section {
  background: transparent;
  padding: 40px 0;
}

/* Exception: si une section est placée dans le hero */
.seo-hero .seo-section {
  padding: 0;
}

.seo-section--gray {
  background: #f5f5f5;
}

.seo-section--border {
  border-top: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
}

.seo-h2 {
  color: #1d3253;
  font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin: 0 0 24px;
}

/* Grille rubriques — tuiles portrait type Funbooker (190×275 PC) */
.seo-grid {
  display: grid;
  column-gap: 20px;
  row-gap: 24px;
  /* 190px + gaps : ~6 colonnes sur contenu 1240 */
  grid-template-columns: repeat(auto-fill, 190px);
  justify-content: start;
}

/* Carte portrait : photo full-bleed + titre blanc en bas */
.seo-card {
  position: relative;
  display: block;
  width: 190px;
  height: 275px;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: transparent;
  text-decoration: none;
  color: #fff;
  outline: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.seo-card:hover,
.seo-card:focus,
.seo-card:active,
.seo-card:focus-visible {
  text-decoration: none;
  color: #fff;
  border: none;
  outline: none;
}

.seo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(25, 46, 81, 0.18);
}

.seo-card__img {
  position: absolute;
  /* +1px : évite le filet anti-aliasing sur les coins arrondis */
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
  pointer-events: none;
  transition: transform 220ms ease;
}

.seo-card:hover .seo-card__img {
  transform: scale(1.04);
}

/* Fallback icône si photo absente */
.seo-card__img--icon {
  object-fit: contain;
  padding: 48px 36px 80px;
  background: #e8eef8;
  box-sizing: border-box;
}

/* Dégradé bas + textes (lisibilité type Funbooker) */
.seo-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 48px 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  text-align: center;
  box-sizing: border-box;
}

.seo-page .seo-card__title {
  color: #ffffff;
  font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  width: 100%;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.seo-card__count {
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 14px;
  font-weight: normal;
  gap: 4px;
  justify-content: center;
  line-height: 18px;
  width: 100%;
}

.seo-card__count-value {
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  color: #ffffff;
  font-size: 14px;
  font-weight: normal;
  line-height: 18px;
}

.seo-card__count-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: normal;
}

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

.neighbor-card {
  background: #ffffff;
  border: 1px solid #e3eaf2;
  border-radius: 32px;
  box-shadow: 0 8px 7.5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 324px;
  justify-content: center;
  min-width: 300px;
  padding: 32px;
}

.neighbor-card__avatar {
  align-items: center;
  border: 4px solid #fafafa;
  border-radius: 60px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  height: 120px;
  justify-content: center;
  margin: 0 auto;
  width: 120px;
}

.neighbor-card__avatar img {
  border-radius: 999px;
  height: 112px;
  object-fit: cover;
  width: 112px;
}

.neighbor-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}

.neighbor-card__name-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.neighbor-card__name {
  color: #1d3253;
  font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.neighbor-card__verified {
  height: 24px;
  width: 24px;
}

.neighbor-card__meta {
  color: #6f7e95;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.neighbor-card__stats {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}

.neighbor-card__rating {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.neighbor-card__star {
  height: 24px;
  width: 24px;
}

.neighbor-card__rating span {
  color: #fdc700;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
}

.neighbor-card__reliability {
  align-items: flex-end;
  display: inline-flex;
  gap: 4px;
}

.neighbor-card__reliability-icon {
  display: block;
  height: 24px;
  width: 16px;
  object-fit: contain;
}

.neighbor-card__reliability-value {
  color: #6f7e95;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.neighbor-card__cta {
  align-items: center;
  background: #1d3253;
  border: 1px solid #1d3253;
  border-radius: 12px;
  color: #ecf1f8;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  line-height: 20px;
  padding: 8px 16px;
  text-decoration: none;
  width: 100%;
  max-width: 320px;
  margin: 16px auto 0;
  cursor: pointer;
  height: 36px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}

.neighbor-card__cta:hover {
  background: #203455;
  border-color: #203455;
  filter: none;
}

.neighbor-card__cta:focus,
.neighbor-card__cta:focus-visible {
  outline: 2px solid rgba(7, 121, 255, 0.6);
  outline-offset: 2px;
}

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

.seo-step {
  border-radius: 16px;
  padding: 16px 0;
  text-align: left;
}

.seo-step__icon {
  height: 40px;
  margin-bottom: 8px;
  width: 40px;
}

.seo-step__icon img {
  display: block;
  height: 40px;
  width: 40px;
}

.seo-step__title {
  color: #1d3253;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 4px;
}

.seo-step__desc {
  color: #1d3253;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  opacity: 0.9;
}

.seo-suggest {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-suggest__item {
  border-radius: 16px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  text-decoration: none;
  align-items: flex-start;
}

.seo-suggest__icon {
  display: block;
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.seo-suggest__title {
  color: #1d3253;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.seo-suggest__desc {
  color: #1d3253;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  opacity: 0.9;
}

.seo-reasons {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-reason {
  border-radius: 16px;
  padding: 16px 0;
}

.seo-reason__icon {
  display: block;
  height: 40px;
  margin-bottom: 8px;
  width: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
}

.seo-reason__title {
  color: #1d3253;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.seo-reason__desc {
  color: #1d3253;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  opacity: 0.9;
}

.seo-faq {
  display: grid;
  gap: 16px;
}

.seo-faq__item {
  background: #f5f5f5;
  border: 1px solid #d4d4d4;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.seo-faq__q {
  color: #1d3253;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  margin-bottom: 4px;
}

.seo-faq__a {
  color: #6f7e95;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

@media screen and (max-width: 1024px) {
  /* Compense le header fixe (styleHeader force 95/105px !important) */
  body.seo-page #AllSite,
  body.seo-page #AllSite:has(header#headerPage.has-arrow),
  body.seo-page #AllSite.has-header-arrow {
    padding-top: 140px !important;
  }
}

@media (max-width: 1200px) {
  .seo-container {
    padding: 0 32px;
  }

  .seo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    justify-content: stretch;
  }

  .seo-suggest,
  .seo-reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-neighbors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .seo-container {
    padding: 0 16px;
  }

  .seo-hero {
    padding: 8px 0 16px;
  }

  .seo-title {
    font-size: 28px;
    line-height: 32px;
  }

  .seo-section {
    padding: 28px 0;
  }

  .seo-kpis {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: flex-start;
  }

  .seo-kpis__item {
    white-space: nowrap;
  }

  /* Header mobile fami plus haut (search + padding) : battre styleHeader !important */
  body.seo-page #AllSite,
  body.seo-page #AllSite:has(header#headerPage.has-arrow),
  body.seo-page #AllSite.has-header-arrow {
    padding-top: 165px !important;
  }

  .seo-page header#headerPage {
    overflow-x: clip;
  }

  .seo-page header#headerPage #headerHolder,
  .seo-page header#headerPage #headerHolder.has-arrow {
    padding-bottom: 32px;
    gap: 14px;
  }

  .seo-hero {
    padding: 12px 0 16px;
  }

  .seo-hero .kiwi-breadcrumb {
    margin-top: 4px;
    margin-bottom: 10px;
  }

  .seo-page header#headerPage #SearchBarHolder {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  /* Mobile : 2 colonnes, ratio portrait conservé */
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 16px;
    justify-content: stretch;
  }

  .seo-card {
    width: 100%;
    height: auto;
    aspect-ratio: 190 / 275;
  }

  .seo-card:hover {
    transform: none;
  }

  .seo-card:hover .seo-card__img {
    transform: none;
  }

  .seo-card__overlay {
    padding: 40px 10px 14px;
  }

  .seo-page .seo-card__title {
    font-size: 20px;
    line-height: 1.25;
  }

  .seo-card__count {
    font-size: 14px;
    font-weight: normal;
    line-height: 18px;
    gap: 4px;
  }

  .seo-card__count-value,
  .seo-card__count-label {
    font-size: 14px;
    font-weight: normal;
    line-height: 18px;
  }

  .seo-card__img--icon {
    padding: 28px 20px 56px;
  }

  .seo-steps {
    grid-template-columns: 1fr;
  }

  .seo-suggest,
  .seo-reasons,
  .seo-neighbors {
    grid-template-columns: 1fr;
  }
}

