/* ==========================================================================
   Kofi Solution — style inspiré d'UMA (uma.xyz)
   Police : Halyard Display · Blanc / Noir / Rouge #FF4D4D · Éditorial
   ========================================================================== */

@font-face {
  font-family: "Halyard Display";
  src: url("../fonts/HalyardDisplay-Regular.woff2") format("woff2"),
       url("../fonts/HalyardDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Halyard Display";
  src: url("../fonts/HalyardDisplay-Bold.woff2") format("woff2"),
       url("../fonts/HalyardDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Halyard Display", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
               Consolas, "Liberation Mono", "Courier New", monospace;

  --white: #ffffff;
  --black: #000000;
  --accent: #ff4d4d;          /* primary-500 */
  --accent-dark: #ee3434;     /* primary-600 */
  --accent-deep: #c22222;

  --grey-950: #141414;
  --grey-900: #1f1d21;
  --grey-800: #2a272d;
  --grey-700: #3d3a40;
  --grey-500: #6e6a72;
  --grey-300: #b9b6bc;
  --grey-100: #f4f4f5;
  --grey-50:  #fafafa;

  --hero-bg: #272528;

  --max-w: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, pre, dl, dd {
  margin: 0;
}

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

.mono { font-family: var(--font-mono); }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow { max-width: 820px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grey-100);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
}

.brand-name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-700);
  transition: color 0.15s ease;
}

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

.nav-cta { margin-left: auto; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--grey-100);
  background: var(--white);
}

.nav-mobile a {
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--grey-800);
  border-bottom: 1px solid var(--grey-100);
}

.nav-mobile a.btn { border-bottom: 0; margin-top: 8px; text-align: center; }

.nav-mobile.open { display: flex; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              transform 0.15s var(--ease);
}

.btn:active { transform: translateY(1px); }

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

.btn-primary:hover,
.btn-accent:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: rgba(0, 0, 0, 0.25);
}

.btn-ghost:hover { border-color: rgba(0, 0, 0, 0.6); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: var(--hero-bg);
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255, 77, 77, 0.16), transparent 70%),
    radial-gradient(50% 40% at 80% 80%, rgba(255, 77, 77, 0.08), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 40%, #000 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 40%, #000 20%, transparent 90%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  text-align: center;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero .eyebrow { color: var(--accent); }

.hero-title {
  font-size: clamp(44px, 9vw, 108px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-title .accent { color: var(--accent); }

.hero-sub {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.8); }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats {
  border-bottom: 1px solid var(--grey-100);
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 20px;
  border-left: 1px solid var(--grey-100);
}

.stat:first-child { border-left: 0; padding-left: 0; }

.stat-num {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.stat-label {
  font-size: 14px;
  color: var(--grey-500);
}

/* --------------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------------- */
.section { padding: 104px 0; }
.section-alt { background: var(--grey-50); border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); }
.section-dark { background: var(--hero-bg); color: #fff; }

.section-title {
  font-size: clamp(32px, 6vw, 62px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.section-title .accent { color: var(--accent); }

.section-lede {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--grey-500);
  max-width: 720px;
  margin-bottom: 56px;
}

.section-dark .section-lede { color: rgba(255, 255, 255, 0.75); }

/* --------------------------------------------------------------------------
   Cartes (offre / conformité)
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 30px 28px;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  background: var(--white);
}

.card-num {
  display: block;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-500);
}

.cards-dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cards-dark .card-text { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   Étapes numérotées
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--grey-100);
}

.step:last-child { border-bottom: 1px solid var(--grey-100); }

.step-num {
  font-size: 15px;
  color: var(--accent);
  padding-top: 4px;
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.step-text { font-size: 16px; line-height: 1.6; color: var(--grey-500); max-width: 720px; }

/* --------------------------------------------------------------------------
   Grille 2 colonnes (télécom)
   -------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tile {
  padding: 32px 30px;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  background: var(--white);
}

.tile-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tile-text { font-size: 16px; line-height: 1.6; color: var(--grey-500); }

/* --------------------------------------------------------------------------
   Spécifications (code + liste)
   -------------------------------------------------------------------------- */
.specs-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.code {
  margin: 0;
  padding: 28px 30px;
  background: var(--grey-950);
  color: #e8e8ea;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

.code .key { color: var(--accent); }

.spec-list {
  display: flex;
  flex-direction: column;
}

.spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--grey-100);
}

.spec dt { font-size: 15px; color: var(--grey-500); }
.spec dd { font-size: 17px; font-weight: 700; text-align: right; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; }

.faq {
  border-top: 1px solid var(--grey-100);
}

.faq:last-child { border-bottom: 1px solid var(--grey-100); }

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

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

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}

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

.faq p {
  padding: 0 2px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-500);
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.section-cta {
  background: var(--black);
  color: #fff;
  text-align: center;
}

.section-cta .section-lede { color: rgba(255, 255, 255, 0.72); margin-left: auto; margin-right: auto; }

.section-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.section-cta .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.8); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--black); color: #fff; padding: 72px 0 0; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-brand { display: flex; flex-direction: column; gap: 18px; }

.footer-tag {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-head {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Animations d'apparition
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-top: 16px; padding-bottom: 16px; }

  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--grey-100); }
  .stat:first-child { border-top: 0; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}
