/* =========================================================
   Base Mairies France 2026 — refonte "govtech institutionnel"
   Bleu Marianne + tricolore, sobre, crédible.
   ========================================================= */

:root {
  --blue: #000091;        /* bleu Marianne */
  --blue-700: #00006e;
  --blue-100: #e3e3f4;
  --blue-050: #eef0fb;
  --red: #e1000f;         /* rouge Marianne — accent rare */
  --green: #1f7a4d;       /* engagement écologique */
  --green-700: #175c3a;
  --green-050: #eef6f1;
  --navy: #10132b;        /* sections sombres */
  --navy-2: #191d3c;

  --ink: #161616;
  --ink-2: #2b2b3a;
  --muted: #5b5b73;
  --muted-2: #7a7a92;

  --paper: #ffffff;
  --paper-2: #f5f6fb;
  --paper-3: #ecedf6;
  --white: #ffffff;

  --line: #e3e4f0;
  --line-strong: #cfd1e4;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-soft: 0 1px 2px rgba(16, 19, 43, 0.05), 0 14px 34px rgba(16, 19, 43, 0.06);
  --shadow: 0 30px 70px rgba(16, 19, 43, 0.14);

  --maxw: 1220px;
  --pad: clamp(20px, 5vw, 72px);

  --font: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: rgba(0, 0, 145, 0.16);
}

/* ---------- Bandeau tricolore ---------- */
.tricolore {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--blue) 0 33.34%,
    #ffffff 33.34% 66.67%,
    var(--red) 66.67% 100%
  );
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text b {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--blue);
}

/* ---------- Boutons ---------- */
.small-cta,
.primary-action,
.secondary-action,
.text-button,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  transition: transform 150ms ease, box-shadow 150ms ease,
    background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.small-cta {
  min-height: 42px;
  padding: 0 16px;
}

.small-cta,
.primary-action {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 0, 145, 0.22);
}

.small-cta:hover,
.primary-action:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

.secondary-action,
.text-button {
  color: var(--blue);
  background: var(--white);
  border-color: var(--line-strong);
}

.secondary-action:hover,
.text-button:hover {
  border-color: var(--blue);
  background: var(--blue-050);
}

/* ---------- Typographie ---------- */
h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  font-weight: 700;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.06;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 45%, var(--red) 55% 100%);
  border-radius: 2px;
}

.hero-copy,
.section-kicker p,
.preview-head p,
.roi-copy p,
.pricing-copy p,
.story-card p,
.column-map li,
.locked-card p,
.credibility-list p,
details p,
.site-footer span {
  color: var(--muted);
  line-height: 1.62;
}

/* ---------- Section générique ---------- */
.section {
  padding: clamp(72px, 9vw, 108px) var(--pad);
  border-bottom: 1px solid var(--line);
}

.section > * {
  max-width: var(--maxw);
  margin-inline: auto;
}

.section-kicker,
.columns-copy,
.faq-head {
  max-width: 820px;
  margin-bottom: 44px;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 6vw, 84px) var(--pad) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 520px at 82% -8%, var(--blue-050), transparent 70%),
    var(--paper);
}

.hero-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero-content {
  width: 100%;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 26px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-proof-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.hero-proof-list span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-proof-list span.leaf::before {
  background: var(--green);
}

/* Carte "fiche commune" (façon dossier officiel) */
.record-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.record-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--blue) 0 33.34%,
    #ffffff 33.34% 66.67%,
    var(--red) 66.67% 100%
  );
}

.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.record-head span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.record-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  padding: 4px 9px;
  border-radius: 999px;
}

.record-title {
  padding: 20px 22px 6px;
}

.record-title strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.record-title em {
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.record-fields {
  display: grid;
  gap: 0;
  padding: 10px 22px 8px;
}

.record-fields div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

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

.record-fields dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.record-fields dd {
  margin: 0;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.record-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.record-foot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- Bandeau statistiques ---------- */
.stats-band {
  padding: 0 var(--pad);
  background: var(--navy);
  color: var(--white);
}

.stats-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-inner article {
  padding: 30px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-inner article:last-child {
  border-right: 0;
}

.stats-inner span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-inner strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1;
}

.stats-inner article:last-child strong {
  color: #7f7fff;
}

/* ---------- Bandeau garanties ---------- */
.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 var(--pad);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.ticker span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.ticker span + span {
  padding-left: 24px;
}

.ticker span::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 4px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--blue);
}

/* ---------- Product story ---------- */
.product-story {
  background: var(--paper);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 16px;
}

.story-card {
  min-height: 288px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.story-card.emphasis {
  color: var(--white);
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(255, 255, 255, 0.12), transparent 70%),
    linear-gradient(150deg, var(--blue) 0%, var(--navy) 100%);
  border-color: transparent;
}

.story-card.emphasis p {
  color: rgba(255, 255, 255, 0.82);
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: auto;
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.story-card.emphasis .card-number {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.story-card h3 {
  margin-top: 26px;
}

/* ---------- Colonnes ---------- */
.columns-section {
  background: var(--paper-2);
}

.column-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.column-map article {
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.column-map article:last-child {
  border-right: 0;
}

.column-map h3 {
  color: var(--blue);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue-100);
}

.column-map ul {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.column-map li {
  position: relative;
  padding-left: 22px;
  font-weight: 500;
  color: var(--ink-2);
}

.column-map li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

/* ---------- Aperçu ---------- */
.preview-section {
  background: var(--paper);
}

.preview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.preview-head > div:first-child {
  max-width: 760px;
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-button {
  min-height: 40px;
  padding: 0 15px;
  color: var(--muted);
  background: var(--white);
  border-color: var(--line-strong);
  font-size: 14px;
}

.tab-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.tab-button.is-active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}

.preview-table-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.table-toolbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.table-toolbar strong {
  color: var(--blue);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  position: sticky;
  top: 0;
  background: var(--blue-050);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: #fafbfe;
}

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

td:nth-child(2) {
  font-weight: 700;
  color: var(--ink);
}

.locked-card {
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 260px at 100% 0%, var(--blue-050), transparent 70%),
    var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.locked-card h3 {
  font-size: 21px;
  margin-top: 8px;
}

.locked-card .primary-action {
  margin-top: auto;
}

.lock-label,
.price-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lock-label::before {
  content: "";
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000091' stroke-width='2.4'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.spreadsheet-shot {
  margin: 22px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.spreadsheet-shot figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.spreadsheet-shot figcaption::before {
  content: "";
  display: inline-flex;
  width: 40px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 50%, #e1000f 0 4px, transparent 5px),
    radial-gradient(circle at 20px 50%, #ffbf00 0 4px, transparent 5px),
    radial-gradient(circle at 35px 50%, #18a058 0 4px, transparent 5px);
}

.spreadsheet-shot img {
  width: 100%;
  height: auto;
}

/* ---------- ROI (sombre) ---------- */
.roi-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  background: var(--navy);
  color: var(--white);
}

.roi-section h2 {
  color: var(--white);
}

.roi-section .eyebrow {
  color: #8f8fff;
}

.roi-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.roi-calculator {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.roi-calculator label {
  display: block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.roi-calculator input[type="range"] {
  width: 100%;
  accent-color: #7f7fff;
}

.roi-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.roi-output article {
  min-height: 124px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.roi-output span {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
}

.roi-output small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Crédibilité / prix / sources ---------- */
.credibility-section,
.pricing-section,
.source-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(380px, 1.15fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}

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

.credibility-list {
  display: grid;
  gap: 14px;
}

.credibility-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.credibility-list span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 2px;
}

.credibility-list p {
  margin: 0;
}

/* ---------- Prix ---------- */
.pricing-section {
  background: var(--paper);
}

.pricing-copy {
  position: sticky;
  top: 96px;
}

.price-card {
  padding: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.price {
  margin: 4px 0 22px;
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 88px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.included-list {
  display: grid;
  gap: 13px;
  margin: 0 0 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.included-list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
  font-weight: 500;
}

.included-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000091' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.full-width {
  width: 100%;
}

.fine-print {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Sources ---------- */
.source-section {
  background: var(--blue-050);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}

.source-list a::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000091' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H9M17 7v8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.source-list a:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-soft);
}

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--paper-2);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 20px 24px;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--blue);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  margin: 0;
  padding: 0 24px 24px;
}

/* ---------- Pied de page ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 38px var(--pad);
  background: var(--navy);
  color: var(--white);
}

.site-footer .brand-text b {
  color: var(--white);
}

.site-footer .brand-text small {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer span {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 14px;
}

.footer-contact::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-contact:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---------- Dialog commande ---------- */
.order-dialog {
  width: min(540px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 40px 110px rgba(16, 19, 43, 0.4);
  overflow: hidden;
}

.order-dialog::backdrop {
  background: rgba(16, 19, 43, 0.6);
  backdrop-filter: blur(2px);
}

.order-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 36px 34px 34px;
}

.order-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--blue) 0 33.34%,
    #ffffff 33.34% 66.67%,
    var(--red) 66.67% 100%
  );
}

.order-form h2 {
  margin-bottom: 2px;
  font-size: 28px;
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.order-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
}

.order-form input:focus {
  outline: 3px solid rgba(0, 0, 145, 0.16);
  border-color: var(--blue);
}

.close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.close-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--blue);
}

/* ---------- Engagement (1 arbre planté / commande) ---------- */
.tree-section {
  background: var(--green-050);
}

.tree-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.tree-section .eyebrow {
  color: var(--green);
}

.tree-section .eyebrow::before {
  background: var(--green);
}

.tree-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tree-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.5;
}

.tree-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tree-card {
  padding: 34px;
  border: 1px solid #cfe5d8;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.tree-badge {
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green);
}

.tree-badge svg {
  width: 32px;
  height: 32px;
}

.tree-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--green);
}

.tree-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Option mise à jour (+15 €) ---------- */
.pricing-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.addon-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 20px;
  padding: 24px 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.addon-tag {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.addon-body h3 {
  margin: 0;
}

.addon-body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.addon-price {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

/* Case option dans le formulaire de commande */
.order-form .order-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--green-050);
  font-weight: 600;
}

.order-option input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  flex: none;
  accent-color: var(--green);
}

.order-option span {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}

.order-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .record-card {
    max-width: 520px;
  }

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

  .story-card.emphasis {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .column-map article:nth-child(2),
  .column-map article:nth-child(4) {
    border-right: 0;
  }

  .column-map article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .stats-inner,
  .ticker,
  .roi-section,
  .credibility-section,
  .pricing-section,
  .source-section {
    grid-template-columns: 1fr 1fr;
  }

  .roi-section,
  .credibility-section,
  .pricing-section,
  .source-section,
  .tree-inner {
    grid-template-columns: 1fr;
  }

  .stats-inner article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stats-inner article:nth-child(2) {
    border-right: 0;
  }

  .ticker span:nth-child(2) {
    padding-left: 0;
  }

  .pricing-copy {
    position: static;
  }

  .source-list {
    grid-template-columns: 1fr;
  }

  .preview-head {
    display: grid;
  }
}

@media (max-width: 620px) {
  .brand-text small {
    display: none;
  }

  .stats-inner,
  .ticker,
  .story-grid,
  .column-map,
  .roi-output {
    grid-template-columns: 1fr;
  }

  .stats-inner article,
  .ticker span,
  .column-map article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-inner article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ticker span + span {
    padding-left: 0;
  }

  .stats-inner article:last-child,
  .column-map article:last-child {
    border-bottom: 0;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: 100%;
  }

  .credibility-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    display: grid;
    text-align: left;
  }

  .order-form {
    padding: 30px 22px 26px;
  }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

:focus-visible {
  outline: 3px solid rgba(0, 0, 145, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}
