:root {
  --ink: #171515;
  --muted: #625a57;
  --paper: #ffffff;
  --soft: #f7f2ee;
  --soft-2: #eee5df;
  --line: #ded3cd;
  --line-strong: #c8bab2;
  --coral: #a93a34;
  --coral-dark: #84251f;
  --rose: #ead8d3;
  --teal: #4e625b;
  --mint: #e7eee8;
  --gold: #7c6549;
  --shadow: 0 16px 38px rgba(29, 22, 20, 0.1);
  --shadow-soft: 0 8px 18px rgba(29, 22, 20, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--paper);
  letter-spacing: 0;
}

::selection {
  color: var(--ink);
  background: #e6ded8;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
a,
summary,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-color: rgba(169, 58, 52, 0.38);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--coral-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.7rem 0.9rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(234, 223, 218, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.section-inner,
.hero-content {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2.2rem;
  place-items: center;
  background: transparent;
  border-radius: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.menu-button {
  flex-direction: column;
  gap: 0.24rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-links a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.75rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--soft-2);
}

.nav-links .nav-cta {
  margin-left: 0.25rem;
  color: var(--paper);
  background: var(--ink);
}

.nav-links .nav-cta:hover {
  color: var(--paper);
  background: var(--coral-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--soft);
}

.help-hero {
  min-height: 520px;
  display: grid;
  align-items: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 245, 0.92)),
    url("../img/hero-connection.png") center / cover no-repeat;
  opacity: 0.86;
}

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 0 5rem;
}

.hero-content.centered,
.centered-head {
  text-align: center;
}

.hero-icon {
  display: inline-grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  margin-bottom: 1.2rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
}

.hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 4rem;
  line-height: 1;
}

.hero h1,
.page-hero h1,
.plan-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.18em 0.28em;
}

.hero-content.centered h1 {
  justify-content: center;
}

.kiro-wordmark {
  display: inline-block;
  flex: 0 0 auto;
  width: 2.4em;
  height: 0.72em;
  background: url("../img/kiro-wordmark.svg") center / contain no-repeat;
  vertical-align: -0.08em;
}

.kiro-wordmark--hero {
  width: 2.45em;
  height: 0.74em;
}

.kiro-wordmark--heading {
  width: 2.32em;
  height: 0.7em;
}

.kiro-wordmark--inline {
  width: 2.12em;
  height: 0.64em;
  margin-inline: 0.06em;
}

.kiro-wordmark--plan {
  width: 2.18em;
  height: 0.66em;
}

.kiro-wordmark--footer {
  width: 2.05em;
  height: 0.62em;
  vertical-align: -0.12em;
}

.kiro-text {
  color: var(--coral-dark);
  font-weight: 900;
}

.hero p {
  max-width: 650px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-search {
  width: min(620px, 100%);
  min-height: 3.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem auto 0;
  padding: 0.38rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font: inherit;
  background: transparent;
  border: 0;
  outline: 0;
}

.hero-search button {
  min-height: 2.8rem;
  padding: 0.68rem 1rem;
  color: var(--paper);
  font: inherit;
  font-weight: 850;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-search button:hover {
  background: var(--coral-dark);
}

.hero-actions,
.page-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.primary:hover {
  background: var(--coral-dark);
}

.button.secondary,
.button.light {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.button.secondary:hover,
.button.light:hover {
  border-color: var(--line-strong);
  background: var(--soft);
}

.band {
  padding: 5rem 0;
}

.band.compact {
  padding-top: 3rem;
}

.band.surface {
  background: var(--soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-head.centered-head {
  display: block;
}

.section-head h2,
.content h2,
.faq-panel h2,
.contact-panel h2,
.help-cta h2,
.story-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.15;
}

.section-head p,
.help-cta p,
.story-card p {
  max-width: 620px;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.section-inner.narrow {
  width: min(760px, calc(100% - 2rem));
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.resource-card,
.feature-card,
.contact-panel,
.faq-panel,
.legal-note,
.toc,
.callout,
.content,
.help-cta,
.story-card,
.contact-tile {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.resource-card {
  min-height: 205px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.resource-card:hover {
  border-color: var(--line-strong);
  background: #fffdfb;
  box-shadow: var(--shadow-soft);
}

.card-icon,
.feature-card .icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1.1rem;
  color: var(--coral-dark);
  font-weight: 900;
  background: var(--rose);
  border-radius: 8px;
}

.resource-card:nth-child(3n + 2) .card-icon {
  color: var(--teal);
  background: var(--mint);
}

.resource-card:nth-child(3n) .card-icon {
  color: var(--gold);
  background: #eee6dc;
}

.resource-card h2,
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
  line-height: 1.18;
}

.resource-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.card-arrow {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  align-self: end;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
}

.feature-card a {
  margin-top: auto;
  padding-top: 1.2rem;
  font-weight: 850;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.plan-card {
  min-height: 170px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.plan-card.is-featured {
  border-color: var(--ink);
}

.plan-carousel {
  position: relative;
}

/* Flèches du carrousel : visibles seulement sur mobile */
.plan-nav {
  display: none;
}

.plan-card span,
.support-email-card span {
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 0.6rem 0 0.45rem;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.15;
}

.plan-card p,
.support-email-card p {
  margin: 0;
  color: var(--muted);
}

.support-email-card {
  display: grid;
  gap: 0.45rem;
}

.help-cta .support-email-card {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.support-email-card a {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.form-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5.2rem 0 4.2rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 248, 245, 0.95)),
    url("../img/hero-connection.png") center / cover no-repeat;
}

.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.page-hero p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-hero h1 {
  margin: 0;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 1rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.75rem;
}

.toc a {
  display: block;
  padding: 0.48rem 0;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.toc a:first-of-type {
  border-top: 0;
}

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

.content {
  padding: 2rem;
}

.content section + section {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.content h2 {
  margin-bottom: 0.75rem;
}

.content h3 {
  margin: 1.2rem 0 0.45rem;
  font-size: 1.1rem;
}

.content p,
.content li {
  color: var(--muted);
}

.content ul {
  padding-left: 1.2rem;
}

.legal-note,
.callout {
  padding: 1rem;
}

.legal-note {
  margin-bottom: 1rem;
  color: var(--muted);
  background: var(--soft);
}

.key-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.key-point {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

.key-point strong {
  display: block;
  color: var(--ink);
  line-height: 1.18;
}

.key-point p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.callout {
  margin-top: 1.5rem;
  border-left: 5px solid var(--coral);
  background: var(--soft);
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.25rem;
  align-items: start;
}

.faq-panel,
.contact-panel {
  padding: 1.2rem;
}

.support-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 1.2rem 0;
}

.search-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-weight: 850;
}

.search-field input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  font: inherit;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

:where(a, button, input, summary):focus {
  outline: none;
}

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.hero-search input:focus {
  outline: none;
}

.hero-search input:focus-visible {
  outline-offset: -5px;
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-button {
  min-height: 2.4rem;
  padding: 0.5rem 0.7rem;
  color: var(--muted);
  font-weight: 850;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.filter-button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--soft-2);
}

.filter-button.is-active {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.result-count {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(102, 65, 56, 0.05);
}

.faq-item[hidden] {
  display: none;
}

/* Ancre invisible pour liens directs (#delete-account…) : point de defilement
   place juste au-dessus de la question, sous l'en-tete collant. */
.faq-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 96px;
}

/* La question ciblee par une ancre atterrit sous l'en-tete collant. */
.faq-item {
  scroll-margin-top: 96px;
}

/* Mise en evidence temporaire (~2,5 s) de la section ouverte via une ancre. */
.faq-item.faq-highlight {
  animation: faq-highlight 2.6s ease-out 1;
}

@keyframes faq-highlight {
  0% {
    background: color-mix(in srgb, var(--coral) 16%, var(--paper));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 40%, transparent);
  }
  70% {
    background: color-mix(in srgb, var(--coral) 8%, var(--paper));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 18%, transparent);
  }
  100% {
    background: var(--paper);
    box-shadow: 0 8px 18px rgba(102, 65, 56, 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item.faq-highlight {
    animation: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 35%, transparent);
  }
}

.faq-item summary {
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.95rem 1rem;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.faq-item summary::after {
  content: "+";
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--soft-2);
  border-radius: 6px;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.preview-faq {
  margin-top: 1.2rem;
}

.contact-panel {
  position: sticky;
  top: 96px;
}

.contact-panel p {
  color: var(--muted);
}

.contact-meta {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0;
}

.meta-row {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.meta-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.meta-row strong {
  overflow-wrap: anywhere;
}

.wide-button {
  width: 100%;
}

.help-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 2.6rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 245, 0.94)),
    url("../img/hero-connection.png") center / cover no-repeat;
}

.contact-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-tile {
  display: grid;
  gap: 0.18rem;
  min-height: 118px;
  padding: 1rem;
  text-decoration: none;
}

.contact-tile:hover {
  border-color: var(--line-strong);
}

.contact-tile span,
.badge {
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.contact-tile strong {
  line-height: 1.16;
}

.contact-tile small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 0.8fr 1fr;
  grid-template-areas:
    "image image trust trust"
    "soft wide wide wide";
  gap: 1rem;
}

.story-card {
  min-height: 180px;
  display: flex;
  align-items: end;
  padding: 1.35rem;
  overflow: hidden;
}

.story-image {
  grid-area: image;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(33, 31, 32, 0.08), rgba(33, 31, 32, 0.62)),
    url("../img/hero-connection.png") center / cover no-repeat;
}

.story-image h2 {
  color: var(--paper);
}

.trust-card {
  grid-area: trust;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: var(--paper);
}

.trust-icon {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 0.8rem;
  color: var(--coral-dark);
  background: var(--rose);
  border-radius: 10px;
}

.soft-card {
  grid-area: soft;
  display: block;
  background: var(--mint);
}

.story-wide {
  grid-area: wide;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 245, 0.40)),
    url("../img/hero-connection.png") center / cover no-repeat;
}

.footer {
  padding: 2rem 0;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer .section-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer a {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 960px) {
  .resource-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-cta,
  .support-grid,
  .layout {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "image image"
      "trust soft"
      "wide wide";
  }

  .toc,
  .contact-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header {
    backdrop-filter: blur(12px);
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3rem;
  }

  .hero p,
  .page-hero p {
    font-size: 1rem;
  }

  .section-head,
  .help-cta {
    display: block;
  }

  .help-cta .support-email-card {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-tile-grid {
    margin-top: 1.5rem;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 15.5px;
    line-height: 1.58;
  }

  .nav-wrap,
  .section-inner,
  .hero-content,
  .section-inner.narrow {
    width: min(100% - 1.35rem, 1120px);
  }

  .nav-wrap {
    min-height: 58px;
  }

  .brand-mark {
    width: 1.55rem;
    height: 1.8rem;
  }

  .menu-button {
    width: 2.35rem;
    height: 2.35rem;
  }

  .nav-links {
    inset: 58px 0 auto;
    padding: 0.8rem;
  }

  .help-hero {
    min-height: 430px;
  }

  .hero-content {
    padding: 3.4rem 0 3rem;
  }

  .hero-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.9rem;
  }

  .page-hero {
    padding: 2.5rem 0 2.2rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 242, 238, 0.98)),
      url("../img/hero-connection.png") center / cover no-repeat;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.05rem;
    line-height: 1.08;
    gap: 0.12em 0.22em;
  }

  .hero p,
  .page-hero p {
    margin-top: 0.8rem;
    line-height: 1.55;
  }

  .page-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 1.25rem;
  }

  .button {
    min-height: 2.75rem;
    padding: 0.7rem 0.7rem;
    font-size: 0.94rem;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .hero-search button {
    width: 100%;
    border-radius: 10px;
  }

  .band {
    padding: 2.25rem 0;
  }

  .band.compact {
    padding-top: 2rem;
  }

  .section-head {
    margin-bottom: 1.15rem;
  }

  .section-head h2,
  .content h2,
  .faq-panel h2,
  .contact-panel h2,
  .help-cta h2,
  .story-card h2 {
    font-size: 1.55rem;
    line-height: 1.18;
  }

  .resource-grid,
  .plan-grid,
  .contact-tile-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-areas:
      "image"
      "trust"
      "soft"
      "wide";
  }

  .help-cta,
  .faq-panel,
  .contact-panel {
    padding: 1rem;
  }

  .content {
    padding: 1rem;
  }

  .content section + section {
    margin-top: 1.45rem;
    padding-top: 1.45rem;
  }

  .content h2 {
    font-size: 1.28rem;
  }

  .content h3 {
    font-size: 1rem;
  }

  .content ul {
    padding-left: 1rem;
  }

  .legal-note,
  .callout {
    padding: 0.85rem;
  }

  .key-points {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
  }

  .key-point {
    padding: 0.85rem;
  }

  .toc {
    position: sticky;
    top: 58px;
    z-index: 20;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    overflow-x: auto;
    margin: -0.25rem -0.675rem 0;
    padding: 0.65rem 0.675rem;
    background: rgba(255, 255, 255, 0.96);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    scrollbar-width: none;
  }

  .toc::-webkit-scrollbar {
    display: none;
  }

  .toc strong {
    flex: 0 0 auto;
    margin: 0 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
  }

  .toc a,
  .toc a:first-of-type {
    flex: 0 0 auto;
    padding: 0.45rem 0.64rem;
    color: var(--ink);
    font-size: 0.84rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
  }

  .support-grid {
    gap: 1rem;
  }

  .support-tools {
    gap: 0.8rem;
    margin: 1rem 0;
  }

  .filter-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -0.2rem;
    padding: 0 0.2rem 0.2rem;
    scrollbar-width: none;
  }

  .filter-list::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .faq-list {
    gap: 0.6rem;
  }

  .faq-item {
    box-shadow: none;
  }

  .faq-item summary {
    min-height: 3.2rem;
    gap: 0.55rem;
    padding: 0.86rem 0.88rem;
    font-size: 0.96rem;
    line-height: 1.25;
  }

  .faq-item summary::after {
    width: 1.65rem;
    height: 1.65rem;
  }

  .faq-item p {
    padding: 0 0.88rem 0.95rem;
  }

  .plan-card {
    min-height: auto;
    padding: 1rem;
    box-shadow: none;
  }

  .plan-card h3 {
    font-size: 1.18rem;
  }

  .resource-card {
    min-height: 170px;
    box-shadow: none;
  }

  .footer .section-inner {
    display: grid;
  }
}

@media (max-width: 380px) {
  .page-actions {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.92rem;
  }
}


/* ============================================================
   Héros : cercle animé autour du wordmark + filigrane Kiro
   ============================================================ */

/* Trait dessiné à la main autour de « Kiro » */
.wordmark-ring {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}

.wordmark-ring-svg {
  position: absolute;
  inset: -38% -14% -34% -12%;
  width: auto;
  height: auto;
  overflow: visible;
  pointer-events: none;
  /* Visible uniquement en grand écran : masqué sur tablette, iPad, téléphone et pliables */
  display: none;
}

@media (min-width: 1200px) {
  .wordmark-ring-svg {
    display: block;
  }
}

.wordmark-ring-svg path {
  stroke: var(--coral);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: ring-draw 1.1s cubic-bezier(0.5, 0, 0.2, 1) 0.55s forwards;
}

@keyframes ring-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-ring-svg path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Filigrane : symbole Kiro tourné, très léger, coupé par le bord du héros */
.hero-watermark {
  position: absolute;
  bottom: -150px;
  right: 36px;
  z-index: 0;
  width: 470px;
  height: 520px;
  background: url("../img/kiro-symbol.svg") center / contain no-repeat;
  opacity: 0.06;
  transform: rotate(14deg);
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero-watermark {
    bottom: -52px;
    right: 26px;
    width: 250px;
    height: 280px;
    opacity: 0.05;
  }
}

@media (max-width: 620px) {
  .hero-watermark {
    bottom: -40px;
    right: 14px;
    width: 185px;
    height: 210px;
  }

  .wordmark-ring-svg path {
    stroke-width: 6;
  }
}

/* Sur téléphone, « Kiro » reprend la même police que « Help Center » */
.kiro-hero-text {
  display: none;
}

@media (max-width: 620px) {
  .hero h1 .kiro-wordmark--hero {
    display: none;
  }

  .kiro-hero-text {
    display: inline;
    padding-inline: 0.06em;
  }

}


/* Icônes SVG des cartes ressources */
.card-icon svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   Raffinements — mobile-first & micro-interactions
   (restauré — thème clair conservé, base inchangée)
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  color-scheme: light;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.site-header {
  -webkit-backdrop-filter: blur(18px);
}

main [id] {
  scroll-margin-top: 92px;
}

.hero-search input,
.search-field input {
  font-size: max(1rem, 16px);
}

.button,
.filter-button,
.hero-search button,
.nav-links a,
.toc a,
.contact-tile,
.plan-card,
.faq-item,
.faq-item summary::after {
  transition:
    background-color 170ms ease,
    border-color 170ms ease,
    color 170ms ease,
    box-shadow 200ms ease,
    transform 200ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.button:active,
.filter-button:active,
.hero-search button:active,
.back-to-top:active {
  transform: scale(0.96);
}

@media (hover: hover) {
  .resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .plan-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
  }

  .contact-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
}

@media (hover: none) {
  .resource-card:active,
  .contact-tile:active,
  .faq-item summary:active {
    background: var(--soft);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.eyebrow::before {
  content: "";
  width: 1.1rem;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--coral);
}

.plan-card {
  position: relative;
  overflow: hidden;
}

.plan-card.is-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--coral-dark));
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-item[open] summary::after {
  content: "+";
  color: var(--coral-dark);
  background: var(--rose);
  transform: rotate(45deg);
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    opacity: 0;
    block-size: 0;
    overflow-y: clip;
    transition:
      content-visibility 240ms allow-discrete,
      opacity 240ms ease,
      block-size 240ms ease;
  }

  .faq-item[open]::details-content {
    opacity: 1;
    block-size: auto;
  }
}

.back-to-top {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  z-index: 40;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 900;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 200ms ease,
    visibility 200ms,
    transform 220ms cubic-bezier(0.2, 0.8, 0.3, 1),
    background-color 170ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--coral-dark);
}

@media (max-width: 860px) {
  .site-header {
    background: rgba(255, 255, 255, 0.96);
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(23, 21, 21, 0.34);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .nav-links {
    border-radius: 0 0 16px 16px;
  }

  body.menu-open .nav-links {
    animation: nav-drop 220ms cubic-bezier(0.2, 0.8, 0.3, 1);
  }

  .nav-links a {
    min-height: 3.1rem;
    font-size: 1.02rem;
    border-radius: 10px;
  }
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Questions FAQ : texte fluide, indicateur positionné à droite */
.faq-item summary {
  display: block;
  position: relative;
  padding-right: 3.2rem;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  margin-left: 0;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

/* ============================================================
   Mobile ≤ 620px : rendu « application »
   ============================================================ */
@media (max-width: 620px) {
  main [id] {
    scroll-margin-top: 122px;
  }

  .button {
    min-height: 3.15rem;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .hero-search {
    padding: 0.45rem;
    border-radius: 18px;
  }

  .hero-search input {
    min-height: 2.9rem;
    padding: 0.8rem 0.95rem;
  }

  .hero-search button {
    min-height: 3.05rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .help-hero {
    min-height: 0;
  }

  .hero-content {
    padding: 2.7rem 0 2.5rem;
  }

  .resource-grid {
    gap: 0.65rem;
  }

  .resource-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "icon title arrow"
      "icon desc arrow";
    align-items: center;
    column-gap: 0.9rem;
    row-gap: 0.2rem;
    min-height: 0;
    padding: 0.95rem 1rem;
  }

  .resource-card .card-icon {
    grid-area: icon;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 0;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .resource-card h2 {
    grid-area: title;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.22;
  }

  .resource-card p {
    grid-area: desc;
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .resource-card .card-arrow {
    grid-area: arrow;
    align-self: center;
    margin: 0;
    padding: 0;
    color: var(--muted);
  }

  .plan-grid {
    display: flex;
    gap: 0.7rem;
    margin-inline: -0.675rem;
    padding: 0.2rem 0.675rem 0.55rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .plan-grid::-webkit-scrollbar {
    display: none;
  }

  .plan-card {
    flex: 0 0 min(78vw, 300px);
    min-height: 0;
    scroll-snap-align: center;
    box-shadow: var(--shadow-soft);
  }

  .plan-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: -1.25rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
  }

  .plan-nav.prev {
    left: -0.45rem;
  }

  .plan-nav.next {
    right: -0.45rem;
  }

  .plan-nav:disabled {
    opacity: 0.3;
    cursor: default;
  }

  .faq-item summary {
    min-height: 3.5rem;
    padding: 0.95rem 1rem;
    font-size: 1rem;
  }

  .faq-item summary::after {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 8px;
  }

  .faq-item p {
    padding: 0 1rem 1rem;
  }

  .support-email-card a {
    font-size: 1.3rem;
  }

  .story-card {
    min-height: 150px;
    padding: 1.15rem;
  }

  .footer {
    padding: 1.8rem 0 calc(1.8rem + env(safe-area-inset-bottom));
  }

  .footer .section-inner {
    justify-items: center;
    text-align: center;
    gap: 0.9rem;
  }

  .footer-links {
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-links a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .footer-links a:active {
    background: var(--soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
