:root {
  --ink: #111827;
  --muted: #64748b;
  --line: #d9e2ef;
  --soft: #f5f8fc;
  --white: #ffffff;
  --navy: #07111f;
  --navy-2: #0d1b2e;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --green: #10b981;
  --gold: #e8c75f;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(8, 18, 35, 0.22);
  --desktop-bg: #0a0e17;
  --desktop-card: #111827;
  --desktop-card-2: #1a2236;
  --desktop-border: #1e2a3a;
  --desktop-text: #e2e8f0;
  --desktop-dim: #64748b;
  --desktop-accent: #3b82f6;
  --desktop-green: #10b981;
  /*
   * Hauteur de l'en-tête (60) et du pied de page (83) réunis : ce qu'une page à section unique
   * doit déduire de la fenêtre pour tenir sans ascenseur. Cette valeur était figée à 116px, une
   * somme qui ne correspondait plus à aucun des deux — d'où un débordement constant.
   */
  --chrome-h: 143px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  background: var(--desktop-card);
  border-bottom: 1px solid var(--desktop-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--desktop-accent);
}

.brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--desktop-border);
  border-radius: 8px;
  color: var(--desktop-text);
  background: var(--desktop-bg);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: #72e5c0;
  border-color: rgba(114, 229, 192, 0.35);
  background: rgba(114, 229, 192, 0.08);
}

.theme-toggle-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #72e5c0;
  box-shadow: inset -5px -4px 0 rgba(7, 17, 31, 0.42);
}

html[data-theme="light"] .theme-toggle-indicator {
  background: #ffffff;
  box-shadow: inset 0 0 0 4px #72e5c0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  color: var(--desktop-dim);
  background: var(--desktop-bg);
  font-size: 14px;
  font-weight: 750;
}

.site-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #72e5c0;
  background: rgba(114, 229, 192, 0.08);
  border-color: rgba(114, 229, 192, 0.3);
}

.nav-download {
  color: var(--desktop-accent);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.24) !important;
}

.nav-download:hover,
.nav-download:focus-visible {
  color: #72e5c0;
  background: rgba(114, 229, 192, 0.09);
  border-color: rgba(114, 229, 192, 0.35) !important;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--desktop-border);
  border-radius: 8px;
  background: var(--desktop-bg);
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--desktop-text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(380px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 24px;
  padding: 44px clamp(18px, 2.2vw, 32px) 26px clamp(22px, 3vw, 42px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.99) 0%, rgba(7, 17, 31, 0.96) 48%, rgba(7, 17, 31, 0.92) 100%),
    var(--desktop-bg);
}

.hero-content {
  position: relative;
  z-index: 2;
  order: 1;
  width: 100%;
  margin-bottom: 48px;
}

.hero h1 {
  margin: 0;
  max-width: 560px;
  font-size: 50px;
  line-height: 1.07;
  font-weight: 900;
}

.hero h1 span {
  display: inline;
  color: #72e5c0;
}

.hero-copy {
  max-width: 540px;
  margin: 18px 0 0;
  color: #d7e2f1;
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  max-width: 620px;
}

.hero-benefit {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  min-width: 0;
}

.hero-benefit:not(:last-child) {
  padding-right: 16px;
  border-right: 1px solid rgba(59, 130, 246, 0.22);
}

.hero-benefit strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  line-height: 1.28;
}

.hero-benefit p {
  margin: 10px 0 0;
  color: #b9c7da;
  font-size: 13px;
  line-height: 1.45;
}

.benefit-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #12d7aa;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(18, 215, 170, 0.16));
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button small {
  display: block;
  font-size: 11px;
  opacity: 0.82;
  font-weight: 800;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.button-green {
  color: #062018;
  background: #72e5c0;
  box-shadow: 0 14px 32px rgba(114, 229, 192, 0.22);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.section .button-secondary,
.pricing-section .button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-row {
  margin-top: 20px;
  color: #c8d6e8;
  font-size: 13px;
  font-weight: 700;
}

.trust-row span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-visual {
  position: relative;
  z-index: 2;
  order: 2;
  min-width: 0;
}

.product-shot {
  position: relative;
  width: min(1120px, calc(100% + 9vw));
  padding: 10px;
  margin-left: -8px;
  margin-right: -7vw;
  transform: perspective(1400px) rotateY(-1deg) rotateX(0.5deg);
  transform-origin: 45% 60%;
}

.product-shot::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 4%;
  bottom: -20px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.46);
  filter: blur(18px);
  z-index: -1;
}

.device-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #05070c;
  box-shadow:
    0 32px 110px rgba(0, 0, 0, 0.48),
    0 0 0 6px rgba(5, 9, 19, 0.88),
    0 0 0 7px rgba(59, 130, 246, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 16%, transparent 78%, rgba(59, 130, 246, 0.08));
  mix-blend-mode: screen;
}

.device-screen img {
  display: block;
  width: 100%;
  height: auto;
  background: #05070c;
}

.hero-carousel {
  position: relative;
}

.carousel-track {
  display: grid;
}

.carousel-track .carousel-slide {
  grid-area: 1 / 1;
  aspect-ratio: 1892 / 997;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-track .carousel-slide.is-active {
  opacity: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 50%;
  background: rgba(5, 9, 19, 0.72);
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-arrow:hover {
  background: rgba(37, 99, 235, 0.85);
}

.carousel-arrow-prev {
  left: 12px;
}

.carousel-arrow-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: none;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.45);
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-dots button:hover {
  background: rgba(226, 232, 240, 0.75);
}

.carousel-dots button.is-active {
  background: #72e5c0;
}

.hero-carousel.is-multi .carousel-arrow,
.hero-carousel.is-multi .carousel-dots {
  display: flex;
}

.quick-proof,
.section,
.imports-band,
.download-section,
.site-footer {
  padding-inline: clamp(18px, 5vw, 72px);
}

.quick-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.quick-proof div {
  padding: 28px;
  background: var(--white);
}

.quick-proof strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 17px;
}

.quick-proof p,
.excel-card p,
.security-copy p,
.price-card p,
.faq-list p,
.download-section p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding-top: clamp(70px, 9vw, 108px);
  padding-bottom: clamp(70px, 9vw, 108px);
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent 36%),
    linear-gradient(180deg, #07111f 0%, #0b1627 100%);
}

.demo-copy {
  max-width: 520px;
}

.demo-copy h1,
.demo-copy h2 {
  margin: 0;
  color: var(--white);
  font-size: 46px;
  line-height: 1.05;
}

.demo-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

/* Page à section unique : les marges se calent sur la fenêtre, comme pour les fonctionnalités. */
.demo-section-standalone {
  min-height: calc(100vh - var(--chrome-h));
  padding-top: clamp(22px, 3vh, 34px);
  padding-bottom: clamp(22px, 3vh, 34px);
}

.demo-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: #05070c;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.video-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--white);
}

.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.64), transparent 52%),
    linear-gradient(180deg, transparent 48%, rgba(5, 7, 12, 0.54));
}

.video-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: var(--white);
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, background 0.18s ease;
}

.video-play svg {
  width: 34px;
  height: 34px;
  margin-left: 3px;
  fill: currentColor;
}

.video-poster:hover .video-play {
  background: var(--green);
  transform: translate(-50%, -50%) scale(1.05);
}

.video-label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-heading.compact {
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading h1,
.section-heading h2,
.security-copy h1,
.security-copy h2,
.download-section h1,
.download-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 46px;
  line-height: 1.05;
}

.excel-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.excel-heading,
.comparison-heading {
  margin: 0 auto 24px;
  text-align: center;
}

.excel-heading {
  width: min(780px, 100%);
}

.comparison-heading {
  width: min(680px, 100%);
  margin-top: 34px;
}

.excel-heading h2,
.comparison-heading h1,
.comparison-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.12;
}

.features-section-standalone {
  min-height: calc(100vh - var(--chrome-h));
  padding-top: clamp(22px, 3vh, 34px);
  padding-bottom: clamp(22px, 3vh, 34px);
}

.features-section-standalone .comparison-heading {
  width: min(820px, 100%);
  margin-top: 0;
  margin-bottom: 18px;
}

.features-section-standalone .comparison-heading h1 {
  font-size: clamp(28px, 2.8vw, 36px);
}

.features-section-standalone .comparison-heading p {
  margin-top: 6px;
}

.features-section-standalone .comparison-table th,
.features-section-standalone .comparison-table td {
  padding: 8px 20px;
}

.features-section-standalone .comparison-table th {
  height: 52px;
}

.features-section-standalone .comparison-table td:first-child {
  font-size: 13px;
}

.features-section-standalone .yes,
.features-section-standalone .no {
  font-size: 20px;
}

.features-section-standalone .limited,
.features-section-standalone .case {
  min-height: 24px;
  padding: 3px 9px;
}

.features-section-standalone .comparison-portalis-logo {
  width: 30px;
  height: 30px;
  vertical-align: -10px;
}

.comparison-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.04);
}

.comparison-notes div {
  min-width: 0;
}

.comparison-notes b,
.comparison-notes span {
  display: block;
}

.comparison-notes b {
  color: var(--navy);
  font-size: 13px;
}

.comparison-notes span {
  margin-top: 3px;
  color: #526786;
  font-size: 12px;
  line-height: 1.35;
}

.comparison-notes .button {
  min-height: 40px;
  padding: 10px 14px;
  white-space: nowrap;
}

.excel-heading p,
.comparison-heading p {
  margin: 10px 0 0;
  color: #526786;
  font-size: 16px;
  font-weight: 700;
}

.excel-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.excel-card,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.excel-card {
  min-height: 238px;
  padding: 26px 20px 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
}

.excel-card-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-blue { stroke: #2563eb; fill: rgba(37, 99, 235, 0.12); }
.icon-green { stroke: #059669; }
.icon-red { stroke: #ef5648; fill: rgba(239, 86, 72, 0.12); }
.icon-purple { stroke: #7c3aed; fill: rgba(124, 58, 237, 0.12); }
.icon-orange { stroke: #f59e0b; fill: rgba(245, 158, 11, 0.12); }
.icon-sky { stroke: #4f9cff; fill: rgba(79, 156, 255, 0.12); }

.excel-card h3,
.price-card h2,
.price-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
}

.excel-card p {
  margin: 0;
  color: #42526c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
}

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--navy);
}

.comparison-table th,
.comparison-table td {
  padding: 12px 22px;
  border-bottom: 1px solid #edf2f8;
  text-align: center;
  vertical-align: middle;
}

.comparison-table th {
  height: 68px;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  width: 32%;
  text-align: left;
}

.comparison-table th {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.comparison-table td:first-child {
  color: #26354d;
  font-size: 14px;
  font-weight: 800;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .portalis-col {
  border-left: 2px solid rgba(59, 130, 246, 0.75);
  border-right: 2px solid rgba(59, 130, 246, 0.75);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(255, 255, 255, 0));
}

.comparison-table thead .portalis-col {
  border-top: 2px solid rgba(59, 130, 246, 0.75);
  border-radius: 8px 8px 0 0;
}

.comparison-table tbody tr:last-child .portalis-col {
  border-bottom: 2px solid rgba(59, 130, 246, 0.75);
  border-radius: 0 0 8px 8px;
}

.tool-badge {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 5px;
  vertical-align: -4px;
}

.comparison-portalis-logo {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border-radius: 8px;
  object-fit: contain;
  vertical-align: -12px;
}

.tool-excel {
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.78) 45% 56%, transparent 56%),
    linear-gradient(transparent 45%, rgba(255, 255, 255, 0.78) 45% 56%, transparent 56%),
    #10a56b;
}

.tool-broker {
  background:
    linear-gradient(135deg, transparent 40%, #ffffff 40% 50%, transparent 50%),
    #64748b;
  clip-path: polygon(50% 4%, 94% 34%, 84% 92%, 16% 92%, 6% 34%);
}

.yes,
.no {
  font-size: 22px;
  font-weight: 900;
}

.yes {
  color: #059669;
}

.no {
  color: #ef4444;
}

.limited,
.case {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.limited {
  color: #92400e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.case {
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #dbe4ef;
}

.imports-band {
  padding-top: 58px;
  padding-bottom: 58px;
  background: var(--soft);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill-row span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #334155;
  font-weight: 800;
}

.security-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(30px, 7vw, 90px);
  background: #fbfdff;
}

.security-section-standalone {
  min-height: calc(100vh - var(--chrome-h));
}

.security-copy p {
  margin-top: 20px;
  font-size: 18px;
}

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

.security-list div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.security-list b,
.security-list span {
  display: block;
}

.security-list span {
  margin-top: 6px;
  color: var(--muted);
}

.pricing-section {
  background: var(--white);
}

.pricing-section-standalone {
  min-height: calc(100vh - var(--chrome-h));
  padding-top: clamp(22px, 3vh, 34px);
  padding-bottom: clamp(22px, 3vh, 34px);
}

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

.price-card {
  position: relative;
  padding: 28px;
}

.price-card.featured {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 20px 70px rgba(37, 99, 235, 0.14);
}

.plan-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #07503a;
  background: #d7f8e8;
  font-size: 12px;
  font-weight: 900;
}

.price {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 16px;
}

.annual {
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.price-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
  color: #334155;
}

.price-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--green);
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-top: 58px;
  padding-bottom: 58px;
  color: var(--white);
  background: var(--navy);
}

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

.download-section h1 {
  color: var(--white);
}

.download-section-standalone,
.faq-section-standalone {
  min-height: calc(100vh - var(--chrome-h));
}

.download-section .download-signature {
  max-width: 820px;
  margin: 20px 0 16px;
  color: var(--white);
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 900;
}

.download-section .download-signature span {
  color: #72e5c0;
}

.download-section p {
  max-width: 720px;
  color: #cbd5e1;
}

.version-line {
  margin-top: 16px;
}

.download-button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.92;
}

.faq-section {
  background: var(--soft);
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--navy);
  font-weight: 900;
}

.faq-list p {
  padding: 0 20px 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: #cbd5e1;
  background: #050b13;
  font-size: 14px;
}

/*
 * Deux colonnes : le nom et la baseline à gauche, la mention de l'éditeur à droite, sur la hauteur
 * des deux lignes. Placée dessous, elle ajoutait 77 pixels au pied de page de toutes les pages.
 */
.footer-brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 4px;
}

.footer-brand span:first-child {
  grid-column: 1;
  grid-row: 1;
  color: var(--white);
  font-weight: 900;
}

.footer-brand span:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

/*
 * Mention de l'éditeur. Le pied de page garde son fond sombre dans les deux thèmes : la variante
 * claire du logo convient donc toujours, sans bascule.
 */
/*
 * Le logo occupe les deux rangées mais s'aligne par le bas : il tient ainsi dans les 47 pixels du
 * bloc de texte — le pied de page ne grandit pas — tandis que « Un logiciel de » reste sur la
 * ligne de la baseline.
 */
.footer-publisher {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.footer-publisher-logo {
  display: block;
  width: 84px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

/* Liens juridiques : présents partout, mais ils n'ont pas à accrocher l'œil comme un appel à l'action. */
.footer-links a {
  color: #8fa0b4;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #dbe4ee;
  text-decoration: underline;
}

/*
 * Pages juridiques : traitées comme des documents, pas comme des pages du site. Ni carte, ni
 * ombre, ni dégradé, ni grand titre — une colonne étroite et une typographie réduite. Elles
 * doivent rester lisibles, un texte opposable ne se dissimule pas, mais elles n'ont pas à
 * attirer l'œil.
 */
.legal-page main {
  min-height: calc(100vh - 60px);
  background: var(--white);
}

.legal-shell {
  width: min(100%, 720px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 52px) clamp(18px, 5vw, 28px) clamp(56px, 7vw, 80px);
}

.legal-heading {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

/* Le surtitre est vert vif et en 900 ailleurs sur le site : ici il ne doit pas accrocher. */
.legal-heading .eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.legal-heading h1 {
  margin: 6px 0 8px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.2;
}

.legal-heading p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-pending {
  margin-bottom: 26px;
  padding: 12px 14px;
  border: 1px solid #d97706;
  border-radius: 6px;
  color: #78350f;
  background: #fffbeb;
  font-size: 14px;
}

.legal-pending strong {
  display: block;
  margin-bottom: 4px;
}

.legal-placeholder {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
}

.legal-content {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.legal-content section {
  min-width: 0;
}

.legal-content h2 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.legal-content h3 {
  margin: 16px 0 6px;
  color: var(--navy);
  font-size: 14px;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-top: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.legal-content p:last-child,
.legal-content ul:last-child,
.legal-content ol:last-child {
  margin-bottom: 0;
}

.legal-content li + li {
  margin-top: 7px;
}

.legal-content a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-contact-card {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-editor-logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 0 0 16px;
}

/* Le logo de l'éditeur existe en deux encres ; le thème décide laquelle est peinte. */
.legal-editor-logo-dark {
  display: none;
}

.legal-form-template {
  padding: 14px 16px;
  border-left: 2px solid var(--line);
  background: var(--soft);
  font-size: 14px;
  color: #475569;
  white-space: pre-line;
}

html[data-theme="dark"] .legal-page main {
  background: var(--navy);
}

html[data-theme="dark"] .legal-heading {
  border-bottom-color: var(--desktop-border);
}

html[data-theme="dark"] .legal-heading h1,
html[data-theme="dark"] .legal-content h2,
html[data-theme="dark"] .legal-content h3 {
  color: var(--desktop-text);
}

html[data-theme="dark"] .legal-heading p,
html[data-theme="dark"] .legal-content p,
html[data-theme="dark"] .legal-content ul,
html[data-theme="dark"] .legal-content ol {
  color: #aebdce;
}

html[data-theme="dark"] .legal-content section {
  color: var(--desktop-text);
}

html[data-theme="dark"] .legal-pending {
  color: #fde68a;
  border-color: #a16207;
  background: #422006;
}

html[data-theme="dark"] .legal-form-template {
  border-left-color: var(--desktop-border);
  background: var(--desktop-card);
  color: #aebdce;
}

html[data-theme="dark"] .legal-editor-logo-light {
  display: none;
}

html[data-theme="dark"] .legal-editor-logo-dark {
  display: block;
}

html[data-theme="dark"] body {
  color: var(--desktop-text);
  background: var(--navy);
}

html[data-theme="dark"] .excel-section,
html[data-theme="dark"] .pricing-section,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .security-section,
html[data-theme="dark"] .imports-band {
  color: var(--desktop-text);
  background:
    linear-gradient(180deg, #07111f 0%, #0b1627 100%);
}

html[data-theme="dark"] .quick-proof {
  background: var(--desktop-border);
}

html[data-theme="dark"] .quick-proof div,
html[data-theme="dark"] .excel-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .comparison-wrap,
html[data-theme="dark"] .security-list div,
html[data-theme="dark"] .faq-list details,
html[data-theme="dark"] .pill-row span,
html[data-theme="dark"] .comparison-notes {
  border-color: var(--desktop-border);
  background: var(--desktop-card);
}

html[data-theme="dark"] .section-heading h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .excel-heading h2,
html[data-theme="dark"] .comparison-heading h1,
html[data-theme="dark"] .comparison-heading h2,
html[data-theme="dark"] .security-copy h1,
html[data-theme="dark"] .security-copy h2,
html[data-theme="dark"] .quick-proof strong,
html[data-theme="dark"] .excel-card h3,
html[data-theme="dark"] .price-card h2,
html[data-theme="dark"] .price-card h3,
html[data-theme="dark"] .comparison-table th,
html[data-theme="dark"] .comparison-table td:first-child,
html[data-theme="dark"] .comparison-notes b,
html[data-theme="dark"] .faq-list summary {
  color: var(--white);
}

html[data-theme="dark"] .quick-proof p,
html[data-theme="dark"] .excel-card p,
html[data-theme="dark"] .excel-heading p,
html[data-theme="dark"] .comparison-heading p,
html[data-theme="dark"] .comparison-notes span,
html[data-theme="dark"] .security-copy p,
html[data-theme="dark"] .security-list span,
html[data-theme="dark"] .price-card p,
html[data-theme="dark"] .price-card ul,
html[data-theme="dark"] .faq-list p,
html[data-theme="dark"] .pill-row span {
  color: #cbd5e1;
}

html[data-theme="dark"] .comparison-table {
  color: var(--desktop-text);
}

html[data-theme="dark"] .comparison-table th,
html[data-theme="dark"] .comparison-table td {
  border-bottom-color: var(--desktop-border);
}

html[data-theme="dark"] .comparison-table .portalis-col {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(17, 24, 39, 0.2));
}

html[data-theme="light"] .hero,
html[data-theme="light"] .demo-section,
html[data-theme="light"] .download-section {
  color: var(--navy);
  background:
    linear-gradient(120deg, rgba(114, 229, 192, 0.16), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
}

html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero-benefit strong,
html[data-theme="light"] .demo-copy h1,
html[data-theme="light"] .demo-copy h2,
html[data-theme="light"] .download-section h1,
html[data-theme="light"] .download-section h2,
html[data-theme="light"] .download-section .download-signature {
  color: var(--navy);
}

html[data-theme="light"] .hero-copy,
html[data-theme="light"] .hero-benefit p,
html[data-theme="light"] .trust-row,
html[data-theme="light"] .demo-copy p:not(.eyebrow),
html[data-theme="light"] .download-section p {
  color: #526786;
}

html[data-theme="light"] .hero-benefit:not(:last-child) {
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .hero-benefit:not(:last-child) {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.22);
  }

  .product-shot {
    width: min(960px, calc(100% + 8vw));
    margin-right: -6vw;
  }

  .excel-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 60px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    background: var(--desktop-card);
    border-bottom: 1px solid var(--desktop-border);
    border-radius: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 58px;
    padding-bottom: 44px;
  }

  .hero-content {
    margin-bottom: 0;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .hero-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .hero-benefit {
    grid-template-columns: 30px 1fr;
  }

  .hero-benefit:not(:last-child) {
    padding-right: 12px;
    padding-bottom: 0;
    border-right: 1px solid rgba(59, 130, 246, 0.22);
    border-bottom: none;
  }

  .section-heading h1,
  .section-heading h2,
  .security-copy h1,
  .security-copy h2,
  .download-section h1,
  .download-section h2 {
    font-size: 38px;
  }

  .product-shot {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    transform: none;
  }

  .hero-copy {
    max-width: 92%;
  }

  .quick-proof,
  .pricing-grid,
  .security-section,
  .demo-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .quick-proof {
    gap: 1px;
  }

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

  .comparison-table th,
  .comparison-table td {
    padding: 11px 16px;
  }

  .comparison-notes {
    grid-template-columns: 1fr;
  }

  .download-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .hero-benefit:not(:last-child) {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.22);
  }

  .section-heading h1,
  .section-heading h2,
  .demo-copy h1,
  .demo-copy h2,
  .security-copy h1,
  .security-copy h2,
  .download-section h1,
  .download-section h2 {
    font-size: 31px;
  }

  .hero-actions .button,
  .pricing-grid .button {
    width: 100%;
  }

  .trust-row {
    display: grid;
    gap: 8px;
  }

  .excel-card-grid {
    grid-template-columns: 1fr;
  }

  .excel-card {
    min-height: 0;
  }

  .plan-tag {
    position: static;
    display: inline-block;
    margin-bottom: 14px;
  }

  .site-footer {
    flex-direction: column;
  }

  /* Sous 620 px, les deux colonnes écrasent la baseline sur trois lignes : on repasse en pile. */
  .footer-brand {
    grid-template-columns: auto;
  }

  .footer-publisher {
    grid-column: 1;
    grid-row: 3;
    margin-top: 4px;
  }

  .footer-links {
    justify-content: flex-start;
  }

}
