/* ─── DESIGN TOKENS ─────────────────────────────── */
:root {
  /* Colors */
  --primary:               #4A2C3F;
  --primary-dark:          #321729;
  --secondary:             #F4A384;
  --tertiary:              #4F6465;
  --neutral:               #E2D5C2;
  --surface:               #fff8f2;
  --surface-container:     #faecd8;
  --surface-container-low: #eee1cd;
  --on-surface:            #211b0f;

  /* Typography */
  --font:        'Manrope', sans-serif;
  --weight-light: 300;
  --weight-reg:   400;
  --weight-med:   500;
  --weight-semi:  600;
  --weight-bold:  700;
  --weight-black: 800;

  /* Spacing */
  --section-padding-v: 5.5rem;
  --section-padding-h: 3.5rem;

  /* Radius */
  --radius-sm:   0.5rem;
  --radius-md:   1rem;
  --radius-card: 1.25rem;
  --radius-pill: 2rem;
  --radius-btn:  1.5rem;
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--neutral);
  color: var(--on-surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── PAGE WRAPPER (large screen) ───────────────── */
.nav,
.hero,
.section-probleme,
.section-manifeste,
.section-ecosysteme,
.section-nami-narrative,
.section-installation,
.section-feedback,
.footer {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── TRANSITIONS GLOBALES ───────────────────────── */
a, button {
  transition: all 0.15s ease;
}

/* ─── NAV ────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--section-padding-h);
  background: var(--surface);
  box-shadow: 0 2px 16px rgba(74, 44, 63, 0.06), 0 1px 0 rgba(74, 44, 63, 0.04);
}

.nav__logo-img {
  height: 36px;
  width: auto;
  /* Logo SVG est noir — on le teinte en primary via CSS filter */
  filter: brightness(0) saturate(100%) invert(14%) sepia(30%) saturate(800%) hue-rotate(280deg) brightness(60%);
}

.nav__link {
  font-size: 0.78rem;
  font-weight: var(--weight-med);
  color: var(--secondary);
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem var(--section-padding-h) 4rem;
  background: var(--surface);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.hero .eyebrow,
.hero__headline,
.hero__sub,
.hero__ctas {
  position: relative;
  z-index: 1;
}

/* ─── EYEBROW BADGE ─────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--surface-container);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  margin-bottom: 1.2rem;
}

/* ─── HEADLINE ───────────────────────────────────── */
.hero__headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: var(--weight-black);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--primary);
  max-width: 720px;
  margin-bottom: 1rem;
}

.hero__headline em {
  font-style: normal;
  color: var(--secondary);
}

/* ─── SOUS-TITRE ─────────────────────────────────── */
.hero__sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--on-surface);
  max-width: 680px;
  margin-bottom: 2rem;
}

/* ─── BOUTONS ────────────────────────────────────── */
.hero__ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: var(--weight-bold);
  border-radius: var(--radius-btn);
  padding: 0.8rem 1.6rem;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--surface);
  box-shadow:
    0 8px 24px rgba(74, 44, 63, 0.28),
    0 2px 6px rgba(74, 44, 63, 0.16);
}

.btn--primary:hover {
  box-shadow:
    0 14px 36px rgba(74, 44, 63, 0.35),
    0 3px 8px rgba(74, 44, 63, 0.20);
  transform: translateY(-2px);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.btn--secondary {
  background: transparent;
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 0;
  padding-right: 0;
}

.btn--secondary:hover {
  opacity: 0.75;
}

.btn--secondary:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── SECTION PROBLÈME ───────────────────────────── */
.section-probleme {
  position: relative;
  padding: var(--section-padding-v) var(--section-padding-h);
  background: var(--surface);
}

.probleme__inner {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 3rem;
  align-items: center;
}

.probleme__text {}

/* ─── SIGNUP BOX ─────────────────────────────────── */
.probleme__signup {
  background: var(--primary);
  border-radius: var(--radius-card);
  padding: 2.5rem;

  box-shadow:
    0 16px 40px rgba(74, 44, 63, 0.22),
    0 4px 10px rgba(74, 44, 63, 0.12);
}

.signup__prompt {
  font-size: 1.05rem;
  font-weight: var(--weight-med);
  color: rgba(255, 248, 242, 0.85);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.signup__form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.signup__input {
  flex: 1;
  min-width: 180px;
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.75rem 1rem 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 248, 242, 0.30);
  border-radius: 0;
  color: var(--surface);
  outline: none;
  transition: border-color 0.15s ease;
}

.signup__input::placeholder {
  color: rgba(255, 248, 242, 0.35);
}

.signup__input:focus {
  border-bottom-color: var(--secondary);
}

.signup__btn {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: var(--weight-bold);
  color: var(--primary);
  background: var(--surface);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.signup__btn:hover {
  background: var(--surface-container);
  transform: translateY(-1px);
}

.signup__btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.probleme__text p {
  font-size: 1.45rem;
  font-weight: var(--weight-light);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin-bottom: 2rem;
}

.probleme__text p:last-child {
  margin-bottom: 0;
}

.probleme__text strong {
  font-weight: var(--weight-black);
}

.probleme__aside {
  position: absolute;
  right: var(--section-padding-h);
  bottom: 4rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.72rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  opacity: 0.5;
}

/* ─── TAG (réutilisable) ─────────────────────────── */
.tag {
  display: block;
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* ─── SECTION MANIFESTE ──────────────────────────── */
.section-manifeste {
  padding: var(--section-padding-v) var(--section-padding-h);
  background: var(--surface-container);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.manifeste__headline {
  font-size: 2rem;
  font-weight: var(--weight-black);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--primary);
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.manifeste__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--on-surface);
  max-width: 480px;
  margin-bottom: 3rem;
}

/* ─── PILIERS ────────────────────────────────────── */
.piliers {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pilier {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  text-align: left;
  min-width: 140px;
  flex: 1;
  max-width: 200px;
  box-shadow:
    5px 5px 14px rgba(74, 44, 63, 0.10),
    -4px -4px 10px rgba(255, 255, 255, 0.80);
}

.pilier__icon {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  display: block;
}

.pilier__title {
  font-size: 0.85rem;
  font-weight: var(--weight-bold);
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.pilier__desc {
  font-size: 0.75rem;
  color: var(--secondary);
  line-height: 1.4;
}

/* ─── SECTION ÉCOSYSTÈME ─────────────────────────── */
.section-ecosysteme {
  background: var(--surface);
}

.ecosysteme__header {
  padding: 5rem var(--section-padding-h) 3rem;
}

.ecosysteme__headline {
  font-size: 2rem;
  font-weight: var(--weight-black);
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.1;
  max-width: 380px;
}

/* ─── BENTO GRID ─────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  padding: 0 var(--section-padding-h) 5rem;
}

/* ─── CARDS (base) ───────────────────────────────── */
.card {
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ─── CARD NAMI ──────────────────────────────────── */
.card--nami {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--tertiary);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(79, 100, 101, 0.35),
    0 4px 12px rgba(79, 100, 101, 0.20);
}

.card--nami::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.card--nami::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(20,40,40,0.2) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* ─── CARD HABITUDES ─────────────────────────────── */
.card--habitudes {
  grid-column: 2;
  grid-row: 1;
  background: var(--surface-container);
  min-height: 148px;
  box-shadow:
    6px 6px 18px rgba(74, 44, 63, 0.10),
    -4px -4px 12px rgba(255, 255, 255, 0.65);
}

/* ─── CARD DASHBOARD ─────────────────────────────── */
.card--dashboard {
  grid-column: 2;
  grid-row: 2;
  background: var(--surface-container-low);
  min-height: 148px;
  opacity: 0.65;
  box-shadow:
    4px 4px 12px rgba(74, 44, 63, 0.08),
    -3px -3px 10px rgba(255, 255, 255, 0.55);
}

/* ─── BADGES ─────────────────────────────────────── */
.card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: auto;
}

.card__badge--available {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.card__badge--dev {
  background: rgba(244, 163, 132, 0.15);
  color: var(--secondary);
}

.card__badge--soon {
  background: rgba(74, 44, 63, 0.08);
  color: var(--primary);
  font-size: 0.62rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8d4c8;
  flex-shrink: 0;
}

.badge-dot--dev {
  background: var(--secondary);
  opacity: 0.6;
}

/* ─── CARD BODY ──────────────────────────────────── */
.card__body {
  position: relative;
  z-index: 1;
}

.card__name {
  font-size: 2.4rem;
  font-weight: var(--weight-black);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: auto;
  padding-top: 3rem;
}

.card__name--light {
  font-size: 1.4rem;
  color: var(--primary);
  padding-top: 0.8rem;
}

.card__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  margin: 0.6rem 0 1.5rem;
}

.card__desc--light {
  font-size: 0.78rem;
  color: var(--on-surface);
  opacity: 0.85;
  margin: 0.4rem 0 0;
}

/* ─── CTA NAMI ───────────────────────────────────── */
.btn--nami {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--tertiary);
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-btn);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
  width: fit-content;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: none;
}

.btn--nami:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn--nami:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--primary);
  padding: 3rem var(--section-padding-h) 2rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Brand */
.footer__logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-size: 0.78rem;
  color: rgba(255, 248, 242, 0.42);
  line-height: 1.5;
  max-width: 200px;
}

/* Links */
.footer__links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__col-title {
  font-size: 0.62rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 248, 242, 0.3);
  margin-bottom: 0.35rem;
}

.footer__link {
  font-size: 0.82rem;
  color: rgba(255, 248, 242, 0.62);
  font-weight: var(--weight-med);
}

.footer__link:hover {
  color: var(--secondary);
}

.footer__link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Bottom */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.footer__copy {
  font-size: 0.72rem;
  color: rgba(255, 248, 242, 0.28);
  font-weight: var(--weight-med);
}

.footer__copy span {
  color: rgba(255, 248, 242, 0.45);
}

/* Chips */
.footer__chips {
  display: flex;
  gap: 0.5rem;
}

.chip {
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.chip--nami {
  background: var(--tertiary);
  color: rgba(255, 255, 255, 0.85);
}

.chip--habitudes {
  background: rgba(255, 248, 242, 0.08);
  color: rgba(255, 248, 242, 0.42);
}

.chip--dashboard {
  background: rgba(255, 248, 242, 0.05);
  color: rgba(255, 248, 242, 0.28);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --section-padding-v: 3.5rem;
    --section-padding-h: 1.5rem;
  }

  /* Nav */
  .nav {
    padding: 1rem 1.5rem;
  }

  /* Hero */
  .hero__headline {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero__sub {
    margin-left: 0;
  }

  /* Problème */
  .probleme__inner {
    grid-template-columns: 1fr;
  }

  .probleme__text p {
    font-size: 1.15rem;
  }

  .probleme__aside {
    display: none;
  }

  /* Bento → colonne unique */
  .bento {
    grid-template-columns: 1fr;
  }

  .card--nami {
    grid-column: 1;
    grid-row: auto;
    min-height: 280px;
  }

  .card--habitudes {
    grid-column: 1;
    grid-row: auto;
  }

  .card--dashboard {
    grid-column: 1;
    grid-row: auto;
  }

  /* Footer */
  .footer__top {
    flex-direction: column;
  }

  .footer__links {
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ─── NAMI — Hero ─────────────────────────────── */
  .hero--nami .hero__sub {
    max-width: 100%;
  }

  /* ─── NAMI — Section narrative ────────────────── */
  .nami-narrative__inner {
    grid-template-columns: 1fr;
  }

  /* ─── NAMI — Accordéons ────────────────────────── */
  .accordion-grid {
    grid-template-columns: 1fr;
  }

  /* ─── NAMI — Formulaire ────────────────────────── */
  .feedback__inner {
    max-width: 100%;
  }

  /* ─── NAMI — Sources ────────────────────────────── */
  .feedback__layout {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   NAMI PAGE STYLES
   ═══════════════════════════════════════════════════ */

/* ─── NAV NAMI ───────────────────────────────────── */
.nav--nami {
  background: var(--tertiary);
  box-shadow: 0 2px 16px rgba(20, 40, 40, 0.18), 0 1px 0 rgba(20, 40, 40, 0.10);
}

.nav--nami .nav__logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.nav--nami .nav__link {
  color: rgba(255, 248, 242, 0.70);
}

.nav--nami .nav__link:hover {
  color: rgba(255, 248, 242, 1);
}

.nav--nami .nav__link:focus-visible {
  outline-color: rgba(255, 248, 242, 0.6);
}

/* ─── HERO NAMI ──────────────────────────────────── */
.hero--nami {
  background: var(--tertiary);
}

.hero--nami .eyebrow {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 248, 242, 0.85);
}

.hero--nami .hero__headline {
  color: rgba(255, 248, 242, 0.95);
  max-width: none;
}

.hero--nami .hero__headline em {
  color: var(--secondary);
  font-style: normal;
}

.hero--nami .hero__sub {
  color: rgba(255, 248, 242, 0.72);
  font-size: 1.2rem;
}

/* ─── BTN NAMI CTA ───────────────────────────────── */
/* Note: .btn--nami existe déjà dans ce fichier (carte bento landing).
   Cette classe est distincte — padding, ombres et hover différents. */
.btn--nami-cta {
  background: #fff;
  color: var(--tertiary);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 8px 24px rgba(20, 40, 40, 0.25);
  display: inline-flex;
  align-items: center;
}

.btn--nami-cta:hover {
  background: var(--surface-container);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(20, 40, 40, 0.30);
}

.btn--nami-cta:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* ─── SECTION NARRATIVE ──────────────────────────── */
.section-nami-narrative {
  background: var(--tertiary);
  padding: var(--section-padding-v) var(--section-padding-h);
}

.nami-narrative__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.section-nami-narrative .tag {
  color: rgba(255, 248, 242, 0.50);
}

.nami-narrative__text p {
  color: rgba(255, 248, 242, 0.82);
  font-size: 1.4rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.nami-narrative__text p:last-child {
  margin-bottom: 0;
}

.nami-narrative__process {
  background: rgba(20, 40, 40, 0.28);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  /* Ombre ambiante colorée (fond sombre — pas neumorphique, voir DESIGN.md) */
  box-shadow: 0 8px 24px rgba(20, 40, 40, 0.30);
}

.process-list {
  list-style: none;
}

.process-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  /* Exception No-Line Rule : fond sombre rend la séparation tonale impossible */
  border-bottom: 1px solid rgba(255, 248, 242, 0.08);
}

.process-item--last {
  border-bottom: none;
}

.process-item__icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.process-item__name {
  color: rgba(255, 248, 242, 0.88);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.process-item__desc {
  color: rgba(255, 248, 242, 0.50);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ─── SECTION INSTALLATION ───────────────────────── */
.section-installation {
  background: var(--surface);
  padding: var(--section-padding-v) var(--section-padding-h);
}

.installation__header {
  margin-bottom: 2.5rem;
}

.installation__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.installation__sub {
  font-size: 0.9rem;
  color: var(--on-surface);
  opacity: 0.65;
}

/* ─── ACCORDION GRID ─────────────────────────────── */
.accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ─── ACCORDION ──────────────────────────────────── */
.accordion {
  background: var(--surface-container);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow:
    6px 6px 18px rgba(74, 44, 63, 0.10),
    -4px -4px 12px rgba(255, 255, 255, 0.65);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  text-align: left;
}

.accordion__trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.accordion__icon {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.accordion[data-open="true"] .accordion__icon {
  transform: rotate(180deg);
}

/* État fermé géré par max-height — ne pas utiliser l'attribut hidden */
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.accordion[data-open="true"] .accordion__content {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.accordion__steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion__step {
  counter-increment: steps;
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--on-surface);
  line-height: 1.5;
}

.accordion__step::before {
  content: counter(steps);
  font-weight: 800;
  color: var(--secondary);
  min-width: 1.2rem;
  flex-shrink: 0; /* prevents number from shrinking on long lines */
}

/* ─── SECTION FEEDBACK ───────────────────────────── */
.section-feedback {
  background: var(--surface-container);
  padding: var(--section-padding-v) var(--section-padding-h);
}

.feedback__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ─── SOURCES SCIENTIFIQUES ──────────────────────── */
.feedback__sources {
  background: var(--primary);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(74, 44, 63, 0.22), 0 4px 10px rgba(74, 44, 63, 0.12);
}

.sources__title {
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255, 248, 242, 0.95);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.sources__intro {
  font-size: 0.78rem;
  color: rgba(255, 248, 242, 0.45);
  margin-bottom: 1.5rem;
}

.sources__group {
  margin-bottom: 1.5rem;
}

.sources__group:last-child {
  margin-bottom: 0;
}

.sources__group-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.sources__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sources__item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sources__authors {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 248, 242, 0.50);
}

.sources__link {
  font-size: 0.78rem;
  color: rgba(255, 248, 242, 0.80);
  line-height: 1.45;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 248, 242, 0.15);
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.sources__link:hover {
  color: rgba(255, 248, 242, 1);
  border-bottom-color: var(--secondary);
}

.feedback__inner {
  max-width: 600px;
}

.feedback__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.feedback__sub {
  font-size: 0.9rem;
  color: var(--on-surface);
  opacity: 0.65;
  margin-bottom: 2rem;
}

/* ─── FORM ───────────────────────────────────────── */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
}

/* Fond transparent — le fond de section est déjà --surface-container.
   Un fond identique rendrait le champ invisible. Voir DESIGN.md Input Fields. */
.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.9rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(74, 44, 63, 0.20);
  border-radius: 0;
  color: var(--on-surface);
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--primary);
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--on-surface);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox-field input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

/* ─── HERO NAMI — 2 colonnes avec mockup ─────────── */
.hero--nami {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero__text {
  min-width: 0;
}

.hero__text .eyebrow,
.hero__text .hero__headline,
.hero__text .hero__sub,
.hero__text .hero__ctas {
  position: relative;
  z-index: 1;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero__mockup {
  width: 220px;
  height: auto;
  border-radius: 2rem;
  box-shadow:
    0 24px 64px rgba(20, 40, 40, 0.35),
    0 8px 20px rgba(20, 40, 40, 0.20);
}

/* ─── INSTALLATION — CTA ─────────────────────────── */
.installation__cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ─── SECTION SÉQUOIA ────────────────────────────── */
.section-sequoia {
  background: var(--primary);
  padding: var(--section-padding-v) var(--section-padding-h);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.sequoia__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow--sequoia {
  background: rgba(255, 255, 255, 0.08);
  color: var(--secondary);
}

.sequoia__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: rgba(255, 248, 242, 0.96);
  margin-bottom: 1.5rem;
}

.sequoia__body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 248, 242, 0.68);
  margin-bottom: 1rem;
}

.sequoia__body:last-of-type {
  margin-bottom: 2rem;
}

.btn--sequoia-cta {
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 24px rgba(244, 163, 132, 0.30);
  transition: all 0.15s ease;
}

.btn--sequoia-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(244, 163, 132, 0.40);
}

.btn--sequoia-cta:focus-visible {
  outline: 2px solid rgba(255, 248, 242, 0.6);
  outline-offset: 3px;
}

/* ─── RESPONSIVE — Hero mockup ───────────────────── */
@media (max-width: 640px) {
  .hero--nami {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .hero__mockup {
    width: 160px;
  }
}
