/* Site vitrine — feuille unique, sans police ni ressource externe. */

:root {
  color-scheme: light;
  --ink: #17211b;
  --ink-soft: #33413a;
  --muted: #5b675f;
  --line: #dfe5df;
  --paper: #f7f8f4;
  --paper-alt: #eef3ec;
  --white: #ffffff;
  --green: #1f6b48;
  --green-dark: #164f35;
  --green-soft: #e3f0e8;
  --amber: #8a5a06;
  --amber-soft: #fff3d9;
  --radius: 18px;
  --radius-small: 10px;
  --shadow: 0 18px 50px rgba(28, 48, 35, 0.09);
  --shadow-small: 0 6px 18px rgba(28, 48, 35, 0.07);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --header-height: 72px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

mark.todo {
  background: var(--amber-soft);
  color: var(--amber);
  outline: 1px dashed var(--amber);
  border-radius: 4px;
  padding: 0 0.25em;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  max-width: 640px;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Accessibilité */

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-small);
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

main:focus {
  outline: none;
}

section[id],
[id].data-card {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
}

.btn-ghost:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.btn-small {
  min-height: 40px;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
}

.text-link {
  font-weight: 650;
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22ch;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}

.main-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 0.97rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-switch {
  font-size: 0.92rem;
  font-weight: 600;
}

/* Hero */

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 12% 0%, #e2efe6 0, transparent 30rem),
    radial-gradient(circle at 100% 100%, #eef5e8 0, transparent 26rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 1.6rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "✓";
  margin-right: 0.45rem;
  color: var(--green);
  font-weight: 800;
}

/* Carte en haut à droite, support NFC remonté sur la zone vide en bas à
   gauche de la carte : aucun contenu de la carte n'est masqué. */
.hero-visual {
  --overlap: 104px;
  display: grid;
  grid-template-columns: 1fr;
}

.sticker {
  position: relative;
  justify-self: start;
  width: min(210px, 44%);
  margin-top: calc(-1 * var(--overlap));
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: rotate(-4deg);
  z-index: 2;
}

.sticker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nfc-icon {
  width: 40px;
  height: 40px;
}

.qr {
  width: 100%;
  height: auto;
  color: var(--ink);
  border-radius: 8px;
}

.sticker-text {
  margin: 0.8rem 0 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.preview-card {
  position: relative;
  justify-self: end;
  width: min(380px, 80%);
  padding: 1.3rem 1.3rem calc(var(--overlap) + 0.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Placé dans la zone basse de la carte, à droite du support NFC. */
.preview-badge {
  position: absolute;
  right: 1.3rem;
  bottom: 1.2rem;
  margin: 0;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.preview-badge::before {
  content: "●";
  margin-right: 0.4rem;
  color: var(--green);
  font-size: 0.7rem;
  vertical-align: 0.1em;
}

.preview-label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.preview-kpis div {
  padding: 0.7rem;
  background: var(--paper);
  border-radius: var(--radius-small);
}

.preview-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.preview-kpis strong {
  font-size: 1.25rem;
}

.preview-chart-label {
  margin: 1.1rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.preview-chart {
  width: 100%;
  height: 64px;
  fill: var(--green);
  opacity: 0.85;
}

.preview-rows {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.preview-rows li {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background: var(--paper-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.4rem;
}

.section-head > p:last-child {
  color: var(--ink-soft);
}

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

.card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.card-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.7rem;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.card h3 {
  font-size: 1.4rem;
}

.checklist {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.8rem;
  border-top: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.95rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

.card-note {
  margin: 1.2rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--green-soft);
  border-radius: var(--radius-small);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.feature-list div {
  padding: 1.2rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-small);
}

.feature-list dt {
  font-weight: 750;
  margin-bottom: 0.25rem;
}

.feature-list dd {
  margin: 0;
  color: var(--ink-soft);
}

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

.data-card {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.limited-use {
  margin: 2rem 0 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: var(--radius-small);
}

.commitments {
  display: grid;
  gap: 0.9rem;
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.commitments li {
  padding: 1.1rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--ink-soft);
}

.commitments strong {
  color: var(--ink);
}

.contact-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.contact-main {
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Pages légales */

.legal {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  max-width: 860px;
}

.legal-head {
  margin-bottom: 2rem;
}

.toc {
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc ol {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.2rem;
}

.toc li {
  break-inside: avoid;
  padding: 0.15rem 0;
}

.prose section {
  padding-top: 1.6rem;
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.prose section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.6rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.callout {
  padding: 1rem 1.2rem;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-small);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--paper-alt);
  font-weight: 700;
}

.facts {
  display: grid;
  gap: 0;
  margin: 0 0 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.facts div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) 1fr;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  font-weight: 650;
  color: var(--ink-soft);
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Pied de page */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--ink);
  color: #d9e1db;
  font-size: 0.95rem;
}

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

.site-footer a:hover {
  color: #bfe3cd;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 750;
  font-size: 1.1rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  padding: 0.25rem 0;
}

.disclaimer {
  margin: 1.5rem 0 0.6rem;
  color: #aebbb2;
  font-size: 0.85rem;
}

.copyright {
  margin: 0;
  color: #aebbb2;
  font-size: 0.85rem;
}

.site-footer mark.todo {
  background: #4a3a14;
  color: #ffe1a1;
}

/* Responsive */

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

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

@media (max-width: 860px) {
  .hero-grid,
  .split,
  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 520px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0 1rem;
    padding-top: 0.6rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0 0.7rem;
    gap: 1.2rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

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

  .hero-visual {
    --overlap: 84px;
  }

  .sticker {
    width: 42%;
    padding: 0.7rem;
  }

  .preview-card {
    width: 86%;
    padding: 1rem 1rem calc(var(--overlap) + 0.4rem);
  }

  .preview-badge {
    right: 1rem;
    bottom: 1rem;
  }

  .preview-kpis strong {
    font-size: 1.05rem;
  }

  .toc ol {
    columns: 1;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .btn {
    width: 100%;
  }
}

@media print {
  .site-header,
  .hero-visual,
  .skip-link {
    display: none;
  }

  .site-footer {
    background: none;
    color: var(--ink);
  }
}
