/* SignalNids — Accueil V2.11
   Patch visuel PC + PWA chargé APRÈS /assets/home-v210.css
   Objectif : enrichir la home sans casser les styles V2.10 existants. */

.sn-home-v210 {
  --h211-green: var(--sn-green, #0d5b49);
  --h211-green-dark: #093d33;
  --h211-green-soft: #eef7f3;
  --h211-ink: #17342d;
  --h211-muted: #66756f;
  --h211-border: rgba(16, 65, 53, .13);
  --h211-shadow: 0 18px 55px rgba(18, 52, 43, .10);
  --h211-radius: 24px;
  overflow: clip;
}

.sn-home-v210 .h26-wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.sn-home-v210 .h26-hero {
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(34px, 5vw, 78px);
  padding-bottom: clamp(28px, 4vw, 58px);
}

.sn-home-v210 .h26-hero-copy {
  min-width: 0;
}

.sn-home-v210 .h26-hero h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 4.55vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.sn-home-v210 .h26-hero h1 em {
  display: inline-block;
  margin-top: .14em;
}

.sn-home-v210 .h26-lead {
  max-width: 780px;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.72;
}

.sn-home-v210 .h26-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 4px;
}

.sn-home-v210 .h26-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--h211-border);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--h211-ink);
  font-size: .78rem;
  font-weight: 750;
}

.sn-home-v210 .h26-main-actions {
  gap: 10px 12px;
}

.sn-home-v210 .h26-main-actions .button,
.sn-home-v210 .h26-final-actions .button,
.sn-home-v210 .h26-map-actions .button,
.sn-home-v210 .h26-seo-links .button {
  min-height: 48px;
}

.sn-home-v210 .h26-trust {
  row-gap: 8px;
}

.sn-home-v210 .h26-observation-card {
  box-shadow: var(--h211-shadow);
  border-radius: var(--h211-radius);
}

/* Raccourcis PWA : invisibles sur PC. */
.sn-home-v210 .h26-pwa-actions {
  display: none;
}

/* Navigation interne : meilleure lecture desktop et scroll horizontal sur PWA. */
.sn-home-v210 .h26-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.sn-home-v210 .h26-jump::-webkit-scrollbar {
  display: none;
}

.sn-home-v210 .h26-jump a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.sn-home-v210 #signalement,
.sn-home-v210 #comprendre,
.sn-home-v210 #territoire,
.sn-home-v210 #pres-de-chez-vous,
.sn-home-v210 #reconnaitre,
.sn-home-v210 #nid-frelon-asiatique,
.sn-home-v210 #questions {
  scroll-margin-top: 110px;
}

/* Bloc SEO principal */
.sn-home-v210 .h26-seo-intro {
  padding-top: clamp(54px, 7vw, 96px);
}

.sn-home-v210 .h26-seo-answer {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(26px, 4vw, 54px);
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--h211-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 0 0, rgba(39, 142, 108, .10), transparent 34%),
    linear-gradient(145deg, #ffffff, #f7fbf9);
  box-shadow: 0 22px 65px rgba(11, 67, 52, .08);
}

.sn-home-v210 .h26-seo-copy h2 {
  margin: 8px 0 18px;
  font-size: clamp(2rem, 3.15vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.sn-home-v210 .h26-seo-copy > p {
  margin: 0 0 14px;
  color: var(--h211-muted);
  line-height: 1.75;
}

.sn-home-v210 .h26-seo-copy > p strong {
  color: var(--h211-ink);
}

.sn-home-v210 .h26-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sn-home-v210 .h26-seo-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.sn-home-v210 .h26-seo-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--h211-border);
  border-radius: 17px;
  background: #fff;
}

.sn-home-v210 .h26-seo-steps li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--h211-green-soft);
  color: var(--h211-green-dark);
  font-weight: 900;
}

.sn-home-v210 .h26-seo-steps strong {
  display: block;
  margin: 2px 0 4px;
  color: var(--h211-ink);
  font-size: .98rem;
}

.sn-home-v210 .h26-seo-steps p {
  margin: 0;
  color: var(--h211-muted);
  line-height: 1.48;
  font-size: .9rem;
}

.sn-home-v210 .h26-seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.sn-home-v210 .h26-seo-grid article {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--h211-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(18, 52, 43, .055);
}

.sn-home-v210 .h26-seo-grid article > span {
  font-size: 1.45rem;
}

.sn-home-v210 .h26-seo-grid h3 {
  margin: 14px 0 8px;
  color: var(--h211-ink);
  font-size: 1.16rem;
}

.sn-home-v210 .h26-seo-grid p {
  margin: 0 0 16px;
  color: var(--h211-muted);
  line-height: 1.58;
}

.sn-home-v210 .h26-seo-grid a {
  margin-top: auto;
  font-weight: 800;
}

/* Bloc nid primaire / secondaire */
.sn-home-v210 .h26-nest-guide {
  padding-top: clamp(48px, 7vw, 92px);
}

.sn-home-v210 .h26-nest-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sn-home-v210 .h26-nest-type {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--h211-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(18, 52, 43, .06);
}

.sn-home-v210 .h26-nest-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 17px;
  background: var(--h211-green-soft);
  font-size: 1.55rem;
}

.sn-home-v210 .h26-nest-type small {
  display: block;
  color: var(--h211-green);
  font-weight: 900;
  letter-spacing: .08em;
}

.sn-home-v210 .h26-nest-type h3 {
  margin: 8px 0 12px;
  color: var(--h211-ink);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.sn-home-v210 .h26-nest-type p {
  color: var(--h211-muted);
  line-height: 1.68;
}

.sn-home-v210 .h26-nest-type > strong {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--h211-border);
  color: var(--h211-ink);
  line-height: 1.45;
}

.sn-home-v210 .h26-source-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--h211-green-soft);
}

.sn-home-v210 .h26-source-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--h211-green-dark);
}

.sn-home-v210 .h26-source-note p {
  margin: 0;
  color: #506760;
  line-height: 1.55;
}

/* Uniformise les cartes sur grand écran. */
@media (min-width: 901px) {
  .sn-home-v210 .h26-map-cards,
  .sn-home-v210 .h26-understand-grid,
  .sn-home-v210 .h26-data-grid {
    align-items: stretch;
  }

  .sn-home-v210 .h26-map-card,
  .sn-home-v210 .h26-understand-grid > article,
  .sn-home-v210 .h26-data-grid > article {
    height: 100%;
  }

  .sn-home-v210 .h26-roles {
    align-items: stretch;
  }

  .sn-home-v210 .h26-role {
    height: 100%;
  }
}

/* Tablette / PWA large */
@media (max-width: 1024px) {
  .sn-home-v210 .h26-wrap {
    width: min(100% - 36px, 980px);
  }

  .sn-home-v210 .h26-seo-answer {
    grid-template-columns: 1fr;
  }

  .sn-home-v210 .h26-seo-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* PWA / mobile */
@media (max-width: 760px) {
  .sn-home-v210 {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sn-home-v210 .h26-wrap {
    width: calc(100% - 28px);
  }

  .sn-home-v210 .h26-hero {
    gap: 22px;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .sn-home-v210 .h26-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.35rem);
    line-height: 1.01;
    letter-spacing: -.04em;
  }

  .sn-home-v210 .h26-lead {
    font-size: .98rem;
    line-height: 1.62;
  }

  .sn-home-v210 .h26-keywords {
    margin-top: 16px;
    gap: 6px;
  }

  .sn-home-v210 .h26-keywords span {
    font-size: .72rem;
    min-height: 29px;
    padding: 5px 9px;
  }

  .sn-home-v210 .h26-main-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sn-home-v210 .h26-main-actions .button,
  .sn-home-v210 .h26-main-actions .h26-text-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .sn-home-v210 .h26-observation-card {
    border-radius: 21px;
  }

  .sn-home-v210 .h26-choice {
    min-height: 82px;
  }

  .sn-home-v210 .h26-pwa-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 12px;
  }

  .sn-home-v210 .h26-pwa-actions a {
    min-width: 0;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 10px 5px;
    border: 1px solid var(--h211-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(18, 52, 43, .06);
    text-decoration: none;
    text-align: center;
  }

  .sn-home-v210 .h26-pwa-actions span {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--h211-green-soft);
    color: var(--h211-green-dark);
    font-size: 1.08rem;
    font-weight: 900;
  }

  .sn-home-v210 .h26-pwa-actions strong {
    color: var(--h211-ink);
    font-size: .83rem;
  }

  .sn-home-v210 .h26-pwa-actions small {
    max-width: 100%;
    overflow: hidden;
    color: var(--h211-muted);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sn-home-v210 .h26-jump {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    margin-bottom: 2px;
  }

  .sn-home-v210 .h26-jump a {
    min-height: 36px;
    padding-inline: 12px;
    font-size: .82rem;
  }

  .sn-home-v210 .h26-seo-intro {
    padding-top: 38px;
  }

  .sn-home-v210 .h26-seo-answer {
    gap: 24px;
    padding: 20px;
    border-radius: 22px;
  }

  .sn-home-v210 .h26-seo-copy h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .sn-home-v210 .h26-seo-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sn-home-v210 .h26-seo-links .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .sn-home-v210 .h26-seo-steps,
  .sn-home-v210 .h26-seo-grid,
  .sn-home-v210 .h26-nest-types {
    grid-template-columns: 1fr;
  }

  .sn-home-v210 .h26-seo-grid article {
    min-height: auto;
  }

  .sn-home-v210 .h26-seo-steps li {
    grid-template-columns: 38px 1fr;
    padding: 14px;
  }

  .sn-home-v210 .h26-seo-steps li > span {
    width: 38px;
    height: 38px;
  }

  .sn-home-v210 .h26-source-note {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }

  .sn-home-v210 .h26-source-note .button {
    width: 100%;
    justify-content: center;
  }

  .sn-home-v210 .h26-map-actions,
  .sn-home-v210 .h26-final-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sn-home-v210 .h26-map-actions .button,
  .sn-home-v210 .h26-final-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .sn-home-v210 .h26-species figure img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 390px) {
  .sn-home-v210 .h26-wrap {
    width: calc(100% - 22px);
  }

  .sn-home-v210 .h26-pwa-actions {
    gap: 6px;
  }

  .sn-home-v210 .h26-pwa-actions a {
    min-height: 82px;
    padding-inline: 3px;
  }

  .sn-home-v210 .h26-pwa-actions strong {
    font-size: .78rem;
  }
}
