/* ══════════════════════════════════════════════════════════════════
   assoxia — feuille commune au site et à l'application
   Palette bleue : fond clair légèrement froid, bleu franc pour la
   marque, bleu nuit pour les textes, corail en accent unique.
   Police : Poppins. Feuille volontairement lisible plutôt que
   minifiée : elle se maintient à la main.
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* Fonds */
  --paper:      #F5F7FC;
  --sand:       #EBEEF8;
  --surface:    #FFFFFF;

  /* Encres — bleu nuit, jamais un noir pur */
  --ink:        #0A1D3D;
  --ink-2:      #5A5F72;
  --ink-3:      #7A8096;

  /* Bleu, couleur de marque. Les variables gardent leur nom d'origine
     (« green ») : elles servent dans toutes les feuilles, et c'est leur
     rôle, pas leur teinte, qui compte. */
  --green:      #2431B6;
  --green-2:    #3D53E3;
  --green-deep: #161E7A;
  --green-soft: #E9ECFD;
  --green-line: #C7CEF7;

  /* Corail, accent unique */
  --clay:       #E05A38;
  --clay-soft:  #FDEBE5;

  /* Traits et ombres */
  --line:       #E3E6F0;
  --line-2:     #D2D7E6;
  --shadow-sm:  0 2px 8px rgba(10, 29, 61, .05);
  --shadow:     0 14px 40px rgba(10, 29, 61, .08);
  --shadow-lg:  0 30px 70px rgba(10, 29, 61, .12);

  /* Rythme */
  --radius:     18px;
  --radius-lg:  28px;
  --radius-xl:  40px;

  --font-display: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

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

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: #fff;
  padding: 10px 18px; border-radius: 0 0 12px 12px;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 0; }

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* ── Typographie ────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-2);
  margin: 0 0 .9rem;
}
.eyebrow.light { color: var(--green-line); }

.lede {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 44ch;
  margin-bottom: 2rem;
}

.section-lede {
  color: var(--ink-2);
  max-width: 52ch;
  margin-top: .9rem;
}

.section-head { margin-bottom: 3rem; max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lede { margin-inline: auto; }

/* ── Boutons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease,
              border-color .18s ease, box-shadow .18s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(36, 49, 182, .25);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green-line);
}
.btn-ghost:hover { background: var(--green-soft); border-color: var(--green-2); }

.btn-small  { padding: 10px 18px; font-size: .88rem; }
.btn-large  { padding: 16px 30px; font-size: 1.02rem; }
.btn-block  { display: flex; width: 100%; }

/* ── En-tête ────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 247, 252, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header:has(~ main) { border-bottom-color: var(--line); }

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
}
.brand-mark { width: 30px; height: 30px; display: block; color: var(--green); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-2);
}
.desktop-nav a { position: relative; padding-block: 4px; }
.desktop-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--clay);
  transition: right .22s ease;
}
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.link-login { font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.link-login:hover { color: var(--green); }

.menu-button {
  display: none;
  width: 42px; height: 42px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.menu-button span,
.menu-button span::before,
.menu-button span::after {
  position: absolute;
  left: 50%; translate: -50% 0;
  width: 17px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}
.menu-button span { top: 50%; margin-top: -1px; }
.menu-button span::before { top: -6px; left: 0; translate: 0 0; }
.menu-button span::after  { top: 6px;  left: 0; translate: 0 0; }

.mobile-menu { display: none; }
.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 22px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.mobile-menu a {
  padding: 12px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border: 0; margin-top: 10px; }

/* ── Héros ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem);
}

/* Formes organiques, signature de la direction chaleureuse. */
.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(0.5px);
}
.blob-a {
  width: 520px; height: 520px;
  right: -190px; top: -160px;
  background: radial-gradient(circle at 35% 35%, var(--green-soft), transparent 68%);
  border-radius: 50%;
}
.blob-b {
  width: 340px; height: 340px;
  left: -150px; bottom: -130px;
  background: radial-gradient(circle at 60% 40%, var(--clay-soft), transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

h1 em {
  font-style: normal;
  color: var(--green);
  /* Surlignage posé en fond de l'inline : contrairement à une barre en
     pseudo-élément, il se répète correctement sur chaque ligne quand le
     titre passe à la ligne sur petit écran. */
  background: linear-gradient(transparent 58%, var(--clay-soft) 58%, var(--clay-soft) 92%, transparent 92%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2rem;
}

.hero-notes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
  font-size: .9rem;
  color: var(--ink-2);
}
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1.5px var(--green-2);
}
.hero-notes.light { color: var(--green-line); }
.hero-notes.light li::before {
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1.5px var(--green-line);
}

/* ── Illustration du cercle solidaire ───────────────────────────── */

.circle-scene { position: relative; }
.circle-svg { width: 100%; height: auto; display: block; overflow: visible; }

.core-label {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  fill: var(--green-line);
}
.core-value {
  font-family: var(--font-display);
  font-size: 25px; font-weight: 700;
  fill: #fff;
}

.node circle {
  fill: var(--surface);
  stroke: var(--green-line);
  stroke-width: 2;
  filter: drop-shadow(0 6px 14px rgba(10, 29, 61, .10));
}
.node text {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  fill: var(--green);
  text-anchor: middle;
}
.node.n2 circle, .node.n5 circle { stroke: var(--clay); }
.node.n2 text,   .node.n5 text   { fill: var(--clay); }

.orbit { animation: turn 26s linear infinite; transform-origin: 210px 210px; }
.pulse-core { animation: breathe 6s ease-in-out infinite; transform-origin: 210px 210px; }

@keyframes turn   { to { rotate: 360deg; } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.025; } }

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.float-a { left: -12px; top: 16%; }
.float-b { right: -18px; bottom: 15%; }
.fc-label { font-size: .72rem; color: var(--ink-3); }
.fc-value { font-family: var(--font-display); font-size: 1.02rem; color: var(--green); }
.float-b .fc-value { color: var(--clay); }

/* ── Icônes au trait ────────────────────────────────────────────── */

.ic {
  width: 26px; height: 26px;
  flex: none;
  margin-top: 3px;
  fill: none;
  stroke: var(--green-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-check { stroke: var(--clay); stroke-width: 2; }

/* ── Sections ───────────────────────────────────────────────────── */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.slab-sand { background: var(--sand); }

.slab-green {
  background: var(--green-deep);
  color: var(--green-line);
  border-radius: var(--radius-xl);
  margin-inline: clamp(0px, 2vw, 28px);
}
.slab-green h2 { color: #fff; }
.slab-green strong { color: #fff; }

/* ── Barre d'adresse ────────────────────────────────────────────── */

.address-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 2.2rem;
  padding: 11px 20px 11px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.dot-row { display: flex; gap: 5px; }
.dot-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.dot-row i:first-child { background: var(--clay); opacity: .55; }
.url {
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.url-sub { color: var(--green); font-weight: 500; }

/* ── Trois espaces ──────────────────────────────────────────────── */

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.space-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.space-card.featured {
  background: var(--green-soft);
  border-color: var(--green-line);
}
.space-card h3 { margin-bottom: .6rem; font-size: 1.3rem; }
.space-card p { color: var(--ink-2); font-size: .95rem; }

.space-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.tag-public { background: #FFF4D6;            color: #6B5310; }
.tag-member { background: var(--surface);    color: var(--green); box-shadow: inset 0 0 0 1px var(--green-line); }
.tag-admin  { background: var(--clay-soft);  color: var(--clay); }

.ticks { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .55rem;
  font-size: .93rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: .52em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--green-2);
  border-bottom: 2px solid var(--green-2);
  rotate: -45deg;
}

/* ── Étapes ─────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: .5rem; font-size: 1.18rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin-bottom: 1rem; }

.step-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--green);
  background: var(--green-soft);
  padding: 7px 13px;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
.role-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.role-chips span {
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-2);
}

/* ── Modules ────────────────────────────────────────────────────── */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}
.module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.module h3 { margin-bottom: .45rem; }
.module p { margin: 0; font-size: .91rem; color: var(--ink-2); }

/* Les deux modules qui font la singularité du produit. */
.module.accent {
  background: var(--green-soft);
  border-color: var(--green-line);
}
.module.accent h3 { color: var(--green); }

/* ── Caisse solidaire ───────────────────────────────────────────── */

.tresorerie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.tresorerie-copy p { color: var(--green-line); }
.tresorerie-copy h2 { margin-bottom: 1.2rem; }
.tresorerie-note {
  font-size: .88rem;
  color: rgba(199, 206, 247, .62);
  border-left: 2px solid rgba(199, 206, 247, .3);
  padding-left: 14px;
  margin-top: 1.6rem;
}

.ledger {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.ledger-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
}
.ledger-badge {
  font-size: .78rem;
  background: var(--clay-soft);
  color: var(--clay);
  padding: 5px 12px;
  border-radius: 999px;
}
.ledger table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.ledger th {
  text-align: left;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 24px;
  background: var(--paper);
}
.ledger td { padding: 11px 24px; border-bottom: 1px solid var(--line); }
.ledger th:not(:first-child), .ledger td:not(:first-child) { text-align: right; }
.ledger tbody td:last-child { font-weight: 600; color: var(--green); }
.ledger tfoot td {
  border-bottom: 0;
  border-top: 2px solid var(--line-2);
  font-weight: 600;
  background: var(--paper);
}
.ledger-foot {
  margin: 0;
  padding: 14px 24px 20px;
  font-size: .82rem;
  color: var(--ink-3);
}

/* ── Offres ─────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plans-note {
  margin-top: 28px;
  text-align: center;
  color: var(--ink-3);
  font-size: .95rem;
}
.plans-note a { color: var(--green); font-weight: 600; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.plan.highlight {
  border: 2px solid var(--green);
  box-shadow: var(--shadow);
}
.plan-flag {
  position: absolute;
  top: -13px; left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  background: var(--green);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
}
.plan h3 { font-size: 1.05rem; color: var(--ink-2); }
.price { margin: .5rem 0 .2rem; display: flex; align-items: baseline; gap: 4px; }
.price strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price span { color: var(--ink-3); font-size: .9rem; }
.plan-for { font-size: .88rem; color: var(--clay); margin-bottom: .6rem; }
.plan .ticks { flex: 1; margin-bottom: 1.6rem; }

/* ── Pour qui ───────────────────────────────────────────────────── */

/* Bouton clair sur le vert profond : le bouton fantôme suppose un fond
   clair et disparaîtrait ici. */
.btn-light {
  background: var(--paper);
  color: var(--green-deep);
}
.btn-light:hover { background: #fff; transform: translateY(-2px); }

.usages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.usages li {
  padding: 15px 17px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
}
.usages strong {
  display: block;
  font-family: var(--font-display);
  font-size: .98rem;
  color: #fff;
  margin-bottom: 4px;
}
.usages span {
  font-size: .86rem;
  line-height: 1.45;
  color: var(--green-line);
}

/* ── Inscription ────────────────────────────────────────────────── */

.cta-section { padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6rem); }

.cta-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--green);
  color: var(--green-line);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.6rem);
}
.cta-card h2 { color: #fff; margin-bottom: 1rem; }
.cta-copy p { max-width: 42ch; }

.field-help { font-size: .8rem; color: var(--ink-3); margin: 0 0 20px; }

/* ── Pied de page ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.2rem 1.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
}
.footer-brand-col p {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: .92rem;
  color: var(--ink-2);
}
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer h2 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.site-footer nav a { font-size: .93rem; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-3);
}

/* Un bas de page à une seule mention : centré plutôt que collé à
   gauche par le `space-between` prévu pour deux. */
.footer-bottom-center { justify-content: center; text-align: center; }

/* ══════════════ Adaptations ══════════════ */

@media (max-width: 980px) {
  .hero-grid,
  .tresorerie-grid,
  .cta-card { grid-template-columns: 1fr; }

  /* Le titre reste en premier : sur mobile, la première chose lue
     doit être la promesse, pas la décoration. */
  .hero-visual { max-width: 400px; margin-inline: auto; }
  .lede { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .usages { grid-template-columns: 1fr; }

  .desktop-nav, .nav-actions { display: none; }
  .menu-button { display: block; margin-left: auto; }
  .nav { height: 68px; gap: 16px; }

  body { font-size: 16px; }

  .float-a { left: -4px; }
  .float-b { right: -4px; }

  .slab-green { border-radius: var(--radius-lg); margin-inline: 0; }

  .ledger th, .ledger td { padding-inline: 16px; }
  .ledger th:first-child, .ledger td:first-child { padding-left: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 520px) {
  /* En dessous de cette largeur, les cartes flottantes recouvrent les
     membres du cercle : on les retire plutôt que de les empiler. */
  .float-card { display: none; }
  .ledger table { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit, .pulse-core { animation: none; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header, .blob, .float-card, .cta-section { display: none; }
  body { background: #fff; }
}

/* ── Bandeau flottant ─────────────────────────────────────────────
   Le message d'un enregistrement, repris en bas d'écran quand la page
   a gardé sa place et que le message, en haut, est hors de vue. Voir
   static/js/position.js. */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 13px 14px 13px 18px;
  border-radius: 14px;
  background: var(--green-deep);
  color: #fff;
  font-size: .92rem;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  animation: toast-entree .25s ease-out;
  transition: opacity .35s, transform .35s;
}
.toast-erreur { background: var(--clay); }
.toast-sortie { opacity: 0; transform: translateY(8px); }
.toast-fermer {
  flex: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
.toast-fermer:hover { opacity: 1; }
@keyframes toast-entree {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; transition: none; }
}

/* L'attribut `hidden` l'emporte toujours, même sur un élément qu'une
   règle affiche en bloc : c'est ce que les scripts utilisent pour
   masquer. */
[hidden] { display: none !important; }

/* Les pages légales et la FAQ : une colonne de lecture, un sommaire. */
.page-texte { padding: 3.2rem 0 4.4rem; }
.page-texte .container { max-width: 820px; }
.page-texte h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: .4rem 0 .8rem; }
.page-texte .maj { color: var(--ink-3); font-size: .9rem; margin-bottom: 2rem; }
.page-texte h2 { font-size: 1.25rem; margin: 2.4rem 0 .7rem; scroll-margin-top: 90px; }
.page-texte h3 { font-size: 1.02rem; margin: 1.4rem 0 .4rem; }
.page-texte p, .page-texte li { color: var(--ink-2); line-height: 1.7; }
.page-texte p { margin: 0 0 .9rem; }
.page-texte ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.page-texte li { margin-bottom: .35rem; }
.page-texte a:not(.btn) { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.page-texte table { width: 100%; border-collapse: collapse; margin: .6rem 0 1.4rem; font-size: .93rem; }
.page-texte th, .page-texte td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page-texte th { font-weight: 600; color: var(--ink); background: var(--sand); }
.page-texte .encadre {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--green-soft, #E9ECFD);
  color: var(--ink);
  margin: 0 0 1.6rem;
}
.page-texte .sommaire {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin: 0 0 1.4rem; padding: 0; list-style: none;
}
.page-texte .sommaire a {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--surface, #fff); border: 1px solid var(--line);
  text-decoration: none; font-size: .88rem;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface, #fff);
  margin-bottom: 10px;
  scroll-margin-top: 90px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 14px; }
/* Ce que l'éditeur doit encore renseigner : visible, pour ne pas
   publier une page légale à trous sans le voir. */
.page-texte mark.a-completer { background: #FDECC8; color: #6B4A00; padding: 0 4px; border-radius: 4px; }

/* ══════════════ Bandeau « confiance » (accueil) ══════════════ */
.bandeau-confiance {
  background: var(--green-deep);
  color: #fff;
  padding-block: 4.4rem;
  overflow: hidden;
}
.bandeau-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}
.bandeau-texte .eyebrow { color: var(--green-line); }
.bandeau-texte h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: .6rem 0 1.2rem;
}
.bandeau-texte h2 span { color: #F4D58D; }
.bandeau-texte p { color: var(--green-line); max-width: 46ch; font-size: 1.05rem; margin-bottom: 1.8rem; }
.btn-clair { background: var(--paper); color: var(--green-deep); }
.btn-clair:hover { background: #fff; transform: translateY(-2px); }
.illustration-confiance { width: 100%; height: auto; display: block; }
@media (max-width: 980px) {
  .bandeau-grid { grid-template-columns: 1fr; }
  .bandeau-visuel { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ══════════════ Formulaire de contact ══════════════ */
.contact-intro { font-size: 1.06rem; margin-bottom: 1.8rem !important; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.contact-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}
.contact-champ { min-width: 0; }
.contact-large { grid-column: 1 / -1; }
.contact-champ label {
  display: block;
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.contact-champ .facultatif { font-weight: 400; color: var(--ink-3); }
.contact-champ input,
.contact-champ select,
.contact-champ textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.contact-champ select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234E5C57' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.contact-champ textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.contact-champ input::placeholder { color: var(--ink-3); }
.contact-champ :is(input, select, textarea):hover { border-color: var(--green-line); }
.contact-champ :is(input, select, textarea):focus {
  outline: none;
  background-color: var(--surface);
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.contact-consentement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 1.4rem 0 1.5rem;
  font-size: .93rem;
  color: var(--ink-2);
  line-height: 1.55;
  cursor: pointer;
}
.contact-consentement input {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--green-2);
}
/* Le piège à robots : hors de l'écran plutôt que `display:none`, que
   certains automates savent ignorer. */
.contact-piege {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.contact-alerte {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  margin: 0 0 1.4rem;
  line-height: 1.6;
}
.contact-erreur { background: var(--clay-soft); border-color: var(--clay); color: #9A3519; }
.contact-succes { background: var(--green-soft); border-color: var(--green-line); color: var(--green-deep); }
@media (max-width: 640px) {
  .contact-grille { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; justify-content: center; }
}

/* ══════════════ Page Fonctionnalités ══════════════ */
.page-texte.page-large .container { max-width: 1120px; }
.fonc-intro { font-size: 1.06rem; max-width: 720px; }
.fonc-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 1rem;
}
.fonc-carte {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.4rem 1.1rem;
}
.fonc-tete {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icone offre" "titre titre";
  align-items: center;
  gap: .7rem .8rem;
  margin-bottom: .6rem;
}
.fonc-icone {
  grid-area: icone;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
}
.fonc-icone .icone { width: 22px; height: 22px; }
.page-texte .fonc-tete h3 { grid-area: titre; margin: 0; font-size: 1.05rem; }
.fonc-offre {
  grid-area: offre;
  justify-self: end;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-2);
}
.fonc-offre-essentiel { background: var(--green-soft); color: var(--green); }
.fonc-offre-premium { background: var(--green); color: #fff; }
.page-texte .fonc-carte ul { margin: 0; padding-left: 1.1rem; }
.page-texte .fonc-carte li { font-size: .94rem; line-height: 1.6; margin-bottom: .3rem; }
.fonc-cta {
  margin-top: 2.6rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--green-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
}
.page-texte .fonc-cta p { margin: 0 auto 0 0; color: var(--ink); font-weight: 500; }

/* ══════════════ Mot de passe : afficher en clair ══════════════ */
/* Le bouton est ajouté par mot_de_passe.js ; sans script, le champ reste
   tel quel. */
.mdp-champ { position: relative; display: block; }
.mdp-champ > input { width: 100%; padding-right: 46px; }
.mdp-voir {
  position: absolute;
  top: 50%; right: 6px;
  transform: translateY(-50%);
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.mdp-voir:hover { color: var(--ink); background: var(--green-soft); }
.mdp-voir:focus-visible { outline: 2px solid var(--green-2); outline-offset: 1px; }

/* ══════════════ WhatsApp : liens de partage et de groupe ══════════════ */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #B9E7C9;
  background: #EAF8EF;
  color: #11603A;
  font-size: .9rem; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-whatsapp:hover { background: #DCF3E5; border-color: #8FD6AA; }
.btn-whatsapp:focus-visible { outline: 2px solid #11603A; outline-offset: 2px; }
.btn-whatsapp .icone { width: 18px; height: 18px; flex: none; }
.partage { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.whatsapp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }
.page-head .btn-whatsapp { align-self: center; }
.publication-gestes .btn-whatsapp { justify-content: center; width: 100%; }
