:root {
  --ink: #142033;
  --muted: #5b6b7c;
  --paper: #f3f6f8;
  --card: #ffffff;
  --brand: #0b4f6c;
  --brand-2: #088395;
  --accent: #c45c26;
  --ok: #1f7a4c;
  --warn: #b45309;
  --bad: #b42318;
  --line: #d7e0e7;
  --shadow: 0 18px 50px rgba(11, 79, 108, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(8, 131, 149, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 92, 38, 0.10), transparent 50%),
    linear-gradient(180deg, #eef4f7 0%, var(--paper) 40%, #e8eef2 100%);
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 248, 0.82);
  border-bottom: 1px solid rgba(215, 224, 231, 0.8);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--brand);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}
.brand-word span { color: var(--brand-2); }
.brand span { color: var(--brand-2); }
.nav { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--brand); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.flash-stack { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.flash-success { border-color: #b7e4c7; background: #f0fdf4; color: var(--ok); }
.flash-error { border-color: #fecaca; background: #fef2f2; color: var(--bad); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 1rem 0 2rem;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.55;
}
.hero-visual {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(11, 79, 108, 0.92), rgba(8, 131, 149, 0.75)),
    url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.9s ease both;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 60%);
  animation: drift 8s ease-in-out infinite alternate;
}
.hero-stat {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 79, 108, 0.25);
}
.btn-secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
}
.btn-danger { background: #fff; color: var(--bad); border: 1px solid #fecaca; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

.card {
  background: var(--card);
  border: 1px solid rgba(215, 224, 231, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}
.card + .card { margin-top: 1rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.kpi {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7fafb);
  border: 1px solid var(--line);
  animation: rise 0.6s ease both;
}
.kpi .label { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.35rem; }
.kpi .value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.kpi .hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }

.score-ring {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.score-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--brand);
}
.zone-vert { color: var(--ok); }
.zone-ambre { color: var(--warn); }
.zone-rouge { color: var(--bad); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid currentColor;
}
.badge-vert { color: var(--ok); background: #ecfdf3; }
.badge-ambre { color: var(--warn); background: #fffbeb; }
.badge-rouge, .badge-critique { color: var(--bad); background: #fef2f2; }
.badge-attention { color: var(--warn); background: #fffbeb; }

label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(8, 131, 149, 0.25);
  border-color: var(--brand-2);
}
.field { margin-bottom: 0.9rem; }
.help { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

/* Point info — style docs : SVG bleu en exposant, zéro chrome bouton */
button.info-btn,
.info-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0 0 0 0.08em;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #2f6fed;
  font: inherit;
  line-height: 0;
  cursor: pointer;
  vertical-align: super;
  position: relative;
  top: -0.15em;
}
.info-btn-icon {
  display: block;
  width: 9px;
  height: 9px;
  max-width: 9px;
  max-height: 9px;
}
h1 .info-btn-icon,
h2 .info-btn-icon,
h3 .info-btn-icon,
.score-number .info-btn-icon {
  width: 9px;
  height: 9px;
}
.info-btn:hover,
.info-btn:focus-visible {
  background: transparent !important;
  color: #1d4ed8;
  outline: 2px solid rgba(47, 111, 237, 0.35);
  outline-offset: 2px;
  border-radius: 999px;
}
.term {
  display: inline;
}
.term .info-btn {
  vertical-align: super;
}

.glossary-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 42, 56, 0.35);
  z-index: 80;
}
.glossary-popover {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 2rem));
  max-height: min(70vh, 520px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(11, 42, 56, 0.18);
  padding: 1.15rem 1.25rem 1rem;
}
.glossary-popover-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.glossary-popover-close:hover { color: var(--ink); }
.glossary-popover-title {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 1.2rem;
  margin: 0 1.5rem 0.4rem 0;
}
.glossary-popover-long {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}
.glossary-popover-foot {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
}
.glossary-popover-foot a { color: var(--brand-2); font-weight: 600; }
body.glossary-open { overflow: hidden; }

.lexique-list { display: grid; gap: 0.85rem; }
.lexique-entry:target {
  outline: 2px solid rgba(8, 131, 149, 0.35);
  outline-offset: 2px;
}
.lexique-short {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.glossary-inline li { margin-bottom: 0.25rem; }

.auth-wrap {
  max-width: 440px;
  margin: 2rem auto;
}
.auth-wrap h1 {
  font-family: var(--font-display);
  color: var(--brand);
  margin-top: 0;
}

.wizard-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.wizard-progress .dot {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #d9e3ea;
}
.wizard-progress .dot.active { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.wizard-progress .dot.done { background: var(--brand-2); }

.repeat-row {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  background: #fbfcfd;
}
.repeat-row .row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th, .table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e6eef2;
  overflow: hidden;
  margin-top: 0.45rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #088395);
  border-radius: inherit;
  transition: width 0.35s ease;
}
.plan-action-done td,
.plan-action-done {
  opacity: 0.78;
}
.plan-action-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.85rem;
  background: #fbfcfd;
}
.plan-action-card.plan-action-done {
  background: #f3faf6;
}

.delta {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.25rem;
}
.delta-up { color: var(--ok); }
.delta-down { color: var(--bad); }
.delta-flat { color: var(--muted); }

.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ach-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
}
.ach-badge.earned {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
  font-weight: 600;
}
.badge-orange { color: var(--warn); background: #fffbeb; }

.chart-box { position: relative; height: 260px; width: 100%; }
.chart-box-lg { height: 380px; min-height: 380px; }
.card .chart-box { margin-bottom: 0.5rem; }
.actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.site-footer--landing {
  max-width: 920px;
  padding-top: 2rem;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 0.92rem;
}
.footer-brand-row strong {
  font-family: var(--font-display);
  color: var(--brand);
}
.footer-links { margin-top: 0.5rem; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.2rem;
  border-left: 2px solid #c9d8e2;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-2);
}
.timeline strong { display: block; margin-bottom: 0.15rem; }

.mc-milestones {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mc-milestones li {
  position: relative;
  padding: 0 0 1rem 1.2rem;
  border-left: 2px solid #c9d8e2;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.mc-milestones li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-2);
}
.mc-milestones strong {
  color: var(--brand);
  margin-right: 0.25rem;
}

.cofinews .navigation.pagination,
.cofinews .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0 0;
  justify-content: center;
}
.cofinews .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--brand);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
}
.cofinews .page-numbers.current,
.cofinews .page-numbers:hover {
  background: rgba(8, 131, 149, 0.12);
  border-color: var(--brand-2);
  text-decoration: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-30px); }
}

.gauge {
  height: 8px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 0.45rem;
}
.gauge > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand-2);
}
.gauge > span.ok { background: var(--ok); }
.gauge > span.warn { background: var(--warn); }
.gauge > span.bad { background: var(--bad); }

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(11, 79, 108, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.admin-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}
.admin-nav a:hover { color: var(--brand); background: #fff; text-decoration: none; }
.admin-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.admin-page h2 {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}
.admin-kpis { margin-top: 1rem; }
.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.25rem 0;
}
.admin-meta dt { font-size: 0.75rem; color: var(--muted); }
.admin-meta dd { margin: 0.15rem 0 0; }
.admin-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}
.admin-check input { width: auto; }
.admin-settings .field { margin-bottom: 0.85rem; }
.admin-log {
  background: #0f1c24;
  color: #d7e6ef;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.75rem;
  border-radius: 10px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-logs h3 { font-size: 0.9rem; margin: 0 0 0.4rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .score-number { font-size: 2.4rem; }
  .nav {
    font-size: 0.8rem;
    gap: 0.45rem;
    max-width: 100%;
    justify-content: flex-end;
  }
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .container { padding: 1rem 0.9rem 2.5rem; }
  .actions-bar {
    gap: 0.45rem;
  }
  .actions-bar .btn,
  .actions-bar a.btn {
    flex: 1 1 auto;
  }
  .card { padding: 1rem; }
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .score-ring {
    flex-direction: column;
    align-items: flex-start;
  }
  .chart-box,
  .chart-box-lg {
    height: 240px;
    min-height: 220px;
  }
  .repeat-row .row-grid {
    grid-template-columns: 1fr;
  }
  .auth-wrap {
    margin: 1rem auto;
    padding: 0 0.25rem;
  }
  input, select, textarea, .btn {
    font-size: 16px; /* évite zoom iOS */
  }
}

@media (max-width: 640px) {
  .site-header .btn-sm {
    padding: 0.4rem 0.7rem;
  }
  .nav a:not(.btn) {
    padding: 0.15rem 0;
  }
  h1 { font-size: 1.55rem; }
  .kpi .value { font-size: 1.3rem; }
  .wizard-progress { gap: 0.3rem; }
}

/* ── Guest landing (home) ─────────────────────────────────────────── */

.page-home {
  background:
    radial-gradient(1400px 700px at 0% -5%, rgba(8, 131, 149, 0.16), transparent 58%),
    radial-gradient(900px 480px at 100% 0%, rgba(11, 79, 108, 0.10), transparent 50%),
    linear-gradient(180deg, #e6f0f4 0%, var(--paper) 42%, #e4ecef 100%);
}

.page-home .site-header {
  background: rgba(230, 240, 244, 0.78);
  border-bottom-color: rgba(215, 224, 231, 0.5);
  backdrop-filter: blur(10px);
}

.page-home .brand { font-size: 1.15rem; opacity: 0.95; }
.page-home .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.page-home .nav a { color: var(--muted); font-size: 0.9rem; }
.page-home .nav .btn-primary {
  background: var(--brand);
  box-shadow: none;
}

.landing-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.landing-flash-stack {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

/* Hero — one composition: copy over full-bleed atmospheric plane */
.landing-hero {
  position: relative;
  min-height: calc(100vh - 4.25rem);
  min-height: calc(100dvh - 4.25rem);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.landing-hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 82% 42%, rgba(8, 131, 149, 0.28), transparent 62%),
    radial-gradient(ellipse 45% 35% at 12% 88%, rgba(196, 92, 38, 0.08), transparent 55%),
    linear-gradient(105deg, #dfeaf0 0%, #e8f1f4 38%, #c5dce6 100%);
}

.landing-hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Soft shoreline horizon across the hero plane */
.landing-shore {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 42%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(11, 79, 108, 0.06) 35%, rgba(8, 131, 149, 0.18) 100%);
  clip-path: polygon(0 38%, 12% 28%, 28% 42%, 48% 22%, 68% 36%, 86% 18%, 100% 30%, 100% 100%, 0 100%);
  animation: landing-tide-shift 12s ease-in-out infinite alternate;
}

.landing-shore::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(8, 131, 149, 0.45) 20%, rgba(11, 79, 108, 0.35) 70%, transparent);
}

/* Edge-cropped plan sheet — not a card: bleeds off right/bottom */
.landing-sheet {
  position: absolute;
  top: 8%;
  right: 0;
  bottom: 0;
  width: min(48%, 560px);
  padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.5rem) 0;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 31px,
      rgba(11, 79, 108, 0.045) 31px,
      rgba(11, 79, 108, 0.045) 32px
    ),
    linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, rgba(236, 245, 248, 0.72) 55%, rgba(200, 224, 232, 0.5) 100%);
  border-left: 1px solid rgba(11, 79, 108, 0.12);
  border-radius: 0;
  box-shadow: none;
  animation: landing-sheet-in 1s ease 0.12s both;
}

.landing-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--brand-2) 45%, transparent 90%);
}

.landing-sheet-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.landing-sheet-score {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--brand);
}

.landing-sheet-caption {
  margin: 0.35rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.landing-sheet-ledger {
  display: grid;
  gap: 0.85rem;
  max-width: 280px;
}

.landing-sheet-row {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.landing-sheet-rule {
  display: block;
  height: 3px;
  background: rgba(11, 79, 108, 0.12);
  overflow: hidden;
}

.landing-sheet-rule i {
  display: block;
  height: 100%;
  background: var(--brand);
  font-style: normal;
}

.landing-sheet-rule--ok i { background: var(--ok); }

.landing-sheet-wave {
  position: absolute;
  left: 0;
  right: -10%;
  bottom: 0;
  height: 28%;
  background:
    radial-gradient(ellipse 80% 100% at 40% 100%, rgba(8, 131, 149, 0.2), transparent 70%);
  opacity: 0.85;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
}

.landing-hero-copy {
  max-width: min(34rem, 52%);
  animation: landing-rise 0.85s ease both;
}

.landing-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.25rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--brand);
  margin: 0 0 0.65rem;
}

.landing-brand span { color: var(--brand-2); }

.landing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.landing-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 32rem;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.landing-cta--center { justify-content: center; }

.btn-landing-primary {
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 1.35rem;
  box-shadow: 0 3px 12px rgba(11, 79, 108, 0.2);
}

.btn-landing-primary:hover,
.btn-landing-primary:focus-visible {
  background: #09425a;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-landing-secondary {
  background: rgba(255, 255, 255, 0.45);
  color: var(--brand);
  border: 1.5px solid rgba(11, 79, 108, 0.28);
  border-radius: 10px;
  padding: 0.75rem 1.35rem;
}

.btn-landing-secondary:hover,
.btn-landing-secondary:focus-visible {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* Continuous shoreline / ledger tide line between sections */
.landing-tide {
  position: relative;
  height: 28px;
  overflow: hidden;
  background: transparent;
}

.landing-tide span {
  display: block;
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(8, 131, 149, 0.35) 12%,
    rgba(11, 79, 108, 0.2) 50%,
    rgba(8, 131, 149, 0.35) 88%,
    transparent 100%);
  transform: translateY(-50%);
}

.landing-tide span::before,
.landing-tide span::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(8, 131, 149, 0.4);
  border-radius: 50%;
  background: var(--paper);
}

.landing-tide span::before { left: 18%; }
.landing-tide span::after { right: 22%; }

.landing-tide--soft span {
  opacity: 0.55;
}

/* Sections below fold */
.landing-section {
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  border-top: none;
}

.landing-section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.landing-section-head {
  margin-bottom: 2rem;
  padding-left: 0.15rem;
  border-left: 3px solid var(--brand-2);
  padding-left: 1rem;
}

.landing-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin: 0 0 0.45rem;
}

.landing-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin: 0;
  line-height: 1.2;
}

.landing-parcours {
  background: rgba(255, 255, 255, 0.35);
}

.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(11, 79, 108, 0.1);
}

.landing-step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(11, 79, 108, 0.1);
  position: relative;
}

.landing-step:last-child { border-bottom: none; }

.landing-step-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(8, 131, 149, 0.32);
  letter-spacing: -0.03em;
}

.landing-step-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.landing-step-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 38rem;
}

.landing-pourquoi {
  background: linear-gradient(180deg, transparent, rgba(11, 79, 108, 0.035));
}

.landing-proof {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.landing-proof li {
  padding: 1.35rem 0 1.35rem 1.15rem;
  border-left: 3px solid rgba(8, 131, 149, 0.45);
  border-bottom: 1px solid rgba(11, 79, 108, 0.08);
}

.landing-proof li:last-child { border-bottom: none; }

.landing-proof strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.landing-proof p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 36rem;
}

.landing-geo-note {
  margin: 1.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(11, 79, 108, 0.12);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 40rem;
}

.landing-essayer {
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
}

.landing-essayer-inner {
  max-width: 640px;
}

.landing-essayer-lead {
  color: var(--muted);
  line-height: 1.6;
  margin: 0.75rem 0 1.35rem;
}

.landing-demo {
  margin: 1.75rem 0 0;
  padding: 1.1rem 1.2rem;
  border: 1px dashed rgba(11, 79, 108, 0.22);
  border-radius: 4px;
  background: rgba(243, 246, 248, 0.55);
  text-align: left;
}

.landing-demo-local {
  margin-top: 1.5rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
}
.landing-demo-local summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
}

.landing-preso .landing-section-inner { max-width: 920px; }

.preso-player {
  margin-top: 1.25rem;
  border-radius: 4px;
  overflow: hidden;
  background: #0b2f3d;
  box-shadow: 0 22px 50px rgba(11, 79, 108, 0.18);
  border: 1px solid rgba(11, 79, 108, 0.2);
}
.preso-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b2f3d;
}
.preso-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b2f3d;
}
.preso-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  margin: 0;
}
.preso-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.preso-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preso-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.25rem 1.2rem;
  background: linear-gradient(transparent, rgba(8, 28, 38, 0.88));
  color: #fff;
  display: grid;
  gap: 0.2rem;
}
.preso-slide figcaption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.preso-slide figcaption span {
  font-size: 0.9rem;
  opacity: 0.9;
}
.preso-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem 0.9rem;
  background: #0f3a4a;
}
.preso-dots {
  display: flex;
  gap: 0.35rem;
  margin-left: 0.35rem;
}
.preso-dots button {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}
.preso-dots button[aria-selected="true"] {
  background: #9ad5de;
  width: 18px;
}
.preso-progress {
  flex: 1 1 100%;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.25rem;
}
.preso-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #088395, #9ad5de);
}

.landing-demo-row {
  display: grid;
  gap: 0.2rem;
}

.landing-demo-row + .landing-demo-row {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(215, 224, 231, 0.6);
}

.landing-demo dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.landing-demo dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
}

.landing-demo code {
  font-size: 0.82rem;
  background: rgba(11, 79, 108, 0.06);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

.page-home .site-footer {
  border-top: 1px solid rgba(11, 79, 108, 0.1);
  padding-top: 1.5rem;
}

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes landing-sheet-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes landing-tide-shift {
  from { transform: translateY(0); }
  to { transform: translateY(8px); }
}

@media (max-width: 900px) {
  .landing-hero {
    min-height: auto;
    flex-direction: column;
  }

  .landing-shore {
    bottom: 0;
    height: 40%;
    opacity: 0.7;
  }

  .landing-hero-inner {
    padding: 1.1rem 1.25rem 0.85rem;
    align-items: flex-start;
  }

  .landing-hero-copy {
    max-width: none;
  }

  .landing-brand {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
    margin-bottom: 0.4rem;
  }

  .landing-headline {
    font-size: clamp(1.2rem, 4.5vw, 1.55rem);
    margin-bottom: 0.5rem;
    max-width: none;
  }

  .landing-lead {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .landing-cta {
    margin-top: 0.9rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .landing-cta .btn {
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  /* Short band after copy — part of first viewport, not a tall card */
  .landing-sheet {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 120px;
    max-height: 148px;
    margin-top: auto;
    padding: 0.85rem 1.25rem 0.7rem;
    border-left: none;
    border-top: 1px solid rgba(11, 79, 108, 0.1);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 1.15rem;
    align-content: center;
    animation: landing-rise 0.7s ease 0.1s both;
  }

  .landing-sheet::before {
    width: 100%;
    height: 3px;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, var(--accent), var(--brand-2) 40%, transparent);
  }

  .landing-sheet-kicker {
    grid-column: 2;
    margin: 0;
    align-self: end;
  }

  .landing-sheet-score {
    grid-row: 1 / 4;
    grid-column: 1;
    font-size: 3.25rem;
    align-self: center;
  }

  .landing-sheet-caption {
    grid-column: 2;
    margin: 0 0 0.3rem;
    font-size: 0.75rem;
  }

  .landing-sheet-ledger {
    grid-column: 2;
    max-width: none;
    gap: 0.4rem;
  }

  .landing-sheet-row { font-size: 0.7rem; }
  .landing-sheet-wave { display: none; }

  .landing-step {
    grid-template-columns: 3.25rem 1fr;
    gap: 0.85rem;
    padding: 1.25rem 0;
  }
}

@media (max-width: 520px) {
  .landing-sheet {
    min-height: 118px;
    max-height: 140px;
    padding: 0.75rem 1rem 0.65rem;
  }

  .landing-sheet-score { font-size: 2.85rem; }

  .landing-sheet-ledger { display: none; }

  .landing-cta {
    flex-wrap: wrap;
  }

  .landing-cta .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-copy,
  .landing-sheet,
  .landing-shore {
    animation: none;
  }
}

/* —— CofiNews (blog intégré) —— */
.cofinews {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 0 2rem;
}
.cofinews-hero { margin-bottom: 1.5rem; }
.cofinews-title {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  line-height: 1.2;
  margin: 0.35rem 0 0.75rem;
}
.cofinews-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}
.cofinews-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 1.75rem;
}
.cofinews-filters a {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
  padding: 0.35rem 0.7rem;
  border-bottom: 2px solid transparent;
}
.cofinews-filters a.is-active,
.cofinews-filters a:hover {
  border-bottom-color: var(--brand);
}
.cofinews-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}
.cofinews-item-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.35rem 0 0.45rem;
  line-height: 1.3;
}
.cofinews-item-title a {
  color: var(--brand);
  text-decoration: none;
}
.cofinews-item-title a:hover { text-decoration: underline; }
.cofinews-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.cofinews-cat {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.cofinews-excerpt {
  margin: 0 0 0.5rem;
  line-height: 1.55;
  color: var(--text, #1a2b33);
}
.cofinews-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
}
.cofinews-back {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.cofinews-back a { color: var(--brand); font-weight: 600; text-decoration: none; }
.cofinews-article-head { margin-bottom: 1.5rem; }
.cofinews-body {
  line-height: 1.65;
  font-size: 1.02rem;
}
.cofinews-body h2 {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 1.25rem;
  margin: 1.6rem 0 0.6rem;
}
.cofinews-body h3 {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 1.1rem;
  margin: 1.3rem 0 0.5rem;
}
.cofinews-body p { margin: 0 0 1rem; }
.cofinews-body ul, .cofinews-body ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.cofinews-body a { color: var(--brand); font-weight: 600; }
.cofinews-disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(11, 79, 108, 0.15);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.cofinews-cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.landing-cofinews-link {
  margin-top: 1rem;
  text-align: center;
}
.landing-cofinews-link a {
  font-weight: 600;
  color: var(--brand);
}

/* —— Guest mon-bilan + polish pages éducatives —— */
.moncofi-guest .card {
  margin-top: 0.75rem;
}
.moncofi-guest h1 {
  letter-spacing: -0.02em;
}
.moncofi-guest .actions-bar {
  margin-top: 1.25rem;
}

/* Conteneur pages : éviter le double disclaimer / footer trop serré */
.container > .moncofi-app {
  padding-bottom: 0.5rem;
}

@media (max-width: 767px) {
  .container > .moncofi-app {
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .site-header .nav {
    gap: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }
  .site-header .nav .btn-sm {
    padding: 0.4rem 0.7rem;
  }
  /* Mode appli : masquer Accueil / CofiNews / Mon bilan, garder Compte & Déconnexion */
  body:has(.moncofi-app) .site-header .nav a.mc-nav-chrome {
    display: none;
  }
  body:has(.moncofi-app) .site-header .nav a.mc-nav-account {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.65rem;
    font-size: 0.84rem;
    font-weight: 600;
  }
  body:has(.moncofi-app) .site-header .nav {
    gap: 0.75rem;
  }
  body:has(.moncofi-app) .site-header .header-inner {
    padding: 0.55rem 1rem;
  }
  body:has(.moncofi-app) .site-header .brand {
    font-size: 1.2rem;
  }
  body:has(.moncofi-app) .site-header .brand-mark {
    width: 28px;
    height: 28px;
  }
  .site-footer {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  body:has(.mc-bottom-nav) .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Admin-bar : ne pas faire passer le header thème dessous */
@media (min-width: 601px) and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
@media (min-width: 783px) {
  body.admin-bar .site-header {
    top: 32px;
  }
}


