/* ============================================================
   FormIA Pro — design system
   Black-first, blue accent, Inter, mobile-first.
   ============================================================ */

:root {
  --color-bg: #000000;
  --color-bg-alt: #0A0A0A;
  --color-card-bg: #0F0F0F;
  --color-text: #FFFFFF;
  --color-mute: #A1A1AA;
  --color-accent: #3B82F6;
  --color-accent-hover: #2563EB;
  --color-border: #1F1F1F;

  --max-width: 1140px;
  --radius: 8px;
  --section-py-mobile: 64px;
  --section-py-desktop: 96px;
  --transition: 200ms ease;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
}

.text-center { text-align: center; }
.text-mute { color: var(--color-mute); }

/* Section base */
.section {
  padding: var(--section-py-mobile) 0;
}

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

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo__mark {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo__letter { color: var(--color-text); }
.logo__dot { color: var(--color-accent); }

.logo__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn--primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18),
              0 14px 28px -10px rgba(59, 130, 246, 0.55);
  color: #FFFFFF;
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-text);
  transform: scale(1.01);
}

.btn--large {
  padding: 18px 36px;
  font-size: 17px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.nav .logo__mark {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-mute);
}

.nav__links a:hover { color: var(--color-text); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { padding: 10px 18px; font-size: 13px; }
  .logo__name { display: none; }
}

/* HERO */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--color-mute);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__meta {
  font-size: 13px;
  color: var(--color-mute);
}

@media (min-width: 900px) {
  .hero { padding: 144px 0 120px; }
}

/* PROBLEM grid */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.problem-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition);
}

.problem-card:hover { border-color: rgba(255, 255, 255, 0.15); }

.problem-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.problem-card p {
  color: var(--color-mute);
  font-size: 15px;
  line-height: 1.55;
}

/* PILLARS */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.pillar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--color-card-bg);
  transition: border-color var(--transition);
}

.pillar:hover { border-color: rgba(59, 130, 246, 0.3); }

.pillar__num {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.pillar__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pillar__desc {
  color: var(--color-mute);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.55;
}

.pillar__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--color-text);
  line-height: 1.5;
}

.pillar__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* AUDIENCE */
.audience {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.audience li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  line-height: 1.5;
}

.audience .check {
  flex-shrink: 0;
  margin-top: 4px;
}

/* TIMELINE */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .timeline::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
    z-index: 0;
  }
}

.timeline__step {
  position: relative;
  padding: 0 4px;
}

.timeline__marker {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.timeline__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.timeline__step p {
  color: var(--color-mute);
  font-size: 15px;
  line-height: 1.55;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card-bg);
  transition: border-color var(--transition);
}

.faq__item[open] { border-color: rgba(59, 130, 246, 0.4); }

.faq__item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq__item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition);
  line-height: 1;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 24px 18px;
  color: var(--color-mute);
  font-size: 15px;
  line-height: 1.6;
}

/* CTA FINAL */
.cta-final {
  background: linear-gradient(180deg, #000000 0%, #050B1F 55%, #000000 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 96px 0;
}

.cta-final__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-final__subtitle {
  color: var(--color-mute);
  font-size: 17px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* FOOTER */
.footer {
  background: var(--color-bg);
  padding: 64px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 800px) {
  .footer__top { grid-template-columns: 1fr 2fr; }
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 600px) {
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  color: var(--color-mute);
  font-size: 14px;
}

.footer__col a:hover { color: var(--color-text); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-mute);
  font-size: 13px;
  text-align: center;
}

/* DESKTOP scaled section padding */
@media (min-width: 900px) {
  .section { padding: var(--section-py-desktop) 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .btn--primary:hover { transform: none; }
  .btn--secondary:hover { transform: none; }
}

/* Focus visible (a11y) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Long-form text pages (legal / policies)
   ============================================================ */

.page-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  line-height: 1.7;
}

.page-text h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.page-text__intro {
  color: var(--color-mute);
  font-size: 17px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.page-text section {
  margin-top: 64px;
}

.page-text section:first-of-type {
  margin-top: 48px;
}

.page-text h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--color-text);
}

.page-text h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
}

.page-text p {
  margin-bottom: 16px;
  color: var(--color-text);
}

.page-text strong {
  color: var(--color-text);
  font-weight: 700;
}

.page-text ul,
.page-text ol {
  margin: 16px 0 24px 24px;
}

.page-text ul { list-style: disc outside; }
.page-text ol { list-style: decimal outside; }

.page-text li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.page-text a {
  color: var(--color-accent);
}

.page-text a:hover {
  text-decoration: underline;
}

.page-text__updated {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-mute);
  font-size: 14px;
}

/* Tables (e.g., RGPD page) */
.page-text .table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.page-text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 600px;
}

.page-text table thead {
  background: var(--color-card-bg);
}

.page-text table th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-text table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-mute);
  vertical-align: top;
  line-height: 1.5;
}

.page-text table tr:last-child td {
  border-bottom: 0;
}

/* ============================================================
   Wide pages (À propos, Contact)
   ============================================================ */

.page-wide {
  padding: 72px 0;
}

.page-wide__intro {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}

.page-wide__intro h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.05;
}

.page-wide__intro p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--color-mute);
  line-height: 1.5;
}

.page-wide__block {
  max-width: 760px;
  margin: 0 auto 56px;
}

.page-wide__block:last-child {
  margin-bottom: 0;
}

.page-wide__block h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-wide__block p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--color-mute);
  margin-bottom: 16px;
}

.page-wide__block strong {
  color: var(--color-text);
  font-weight: 600;
}

.page-wide__cta {
  text-align: center;
  margin-top: 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition);
}

.contact-card:hover { border-color: rgba(59, 130, 246, 0.3); }

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.contact-card p {
  color: var(--color-mute);
  font-size: 14.5px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.contact-card a {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 15px;
  word-break: break-word;
}

.contact-card a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .page-text { padding-top: 80px; padding-bottom: 120px; }
  .page-wide { padding: 96px 0; }
}
