/* ── Ordalio — landing produit ─────────────────────────────────────────────────
   Identité héritée de l'application : pétrole (marque), ambre (attention),
   vert (validé), thème clair. Display : Archivo (auto-hébergée), voix
   « atelier » — robuste, directe, sans costume. */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --petrole: #0e6e73;
  --petrole-deep: #0a4a4e;
  --petrole-ink: #062e31;      /* fond des sections drapées */
  --petrole-soft: #e3f0f1;
  --amber: #d99b06;
  --amber-ink: #6e4e00;
  --amber-bg: #fdf1d4;
  --ok: #15753f;
  --ok-bg: #e2f3e9;
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #17232d;
  --muted: #4d5e6b;
  --border: #d9e1e8;
  --hero-ink: #f2fafa;         /* texte sur pétrole sombre */
  --hero-muted: #a9d2d4;
  /* Rampe sombre du drapé (dérivés tonals du pétrole de marque) */
  --hero-grad-a: #05282b;
  --hero-grad-b: #0a4448;
  --hero-glow: rgba(20, 130, 137, 0.35);
  --radius: 12px;
  --radius-sm: 7px;
  --shadow-card: 0 1px 2px rgba(6, 46, 49, 0.07), 0 6px 24px rgba(6, 46, 49, 0.09);
  --shadow-deep: 0 8px 20px rgba(4, 30, 32, 0.35), 0 32px 80px rgba(4, 30, 32, 0.35);
  --shadow-lift: 0 10px 30px rgba(4, 30, 32, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.65 'Archivo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrole); }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

/* ── Header (sur le drapé du hero) ─────────────────────────────────────────── */
.topbar { position: absolute; inset: 0 0 auto; z-index: 10; }
.topbar .wrap {
  display: flex; align-items: center; gap: 28px;
  padding-block: 22px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-grid; place-items: center;
  background: #fff;
}
.logo-mark::before {
  content: ""; width: 13px; height: 13px; border-radius: 50%;
  border: 4px solid var(--petrole);
}
.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topnav a {
  color: var(--hero-muted); text-decoration: none;
  font-weight: 500; font-size: 15.5px;
  padding: 8px 14px; border-radius: var(--radius-sm);
}
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.topnav .cta {
  color: var(--petrole-ink); background: #fff; font-weight: 700;
  margin-left: 8px;
}
.topnav .cta:hover { background: var(--petrole-soft); color: var(--petrole-ink); }

/* ── Hero — drapé pétrole ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--hero-glow), transparent 65%),
    linear-gradient(168deg, var(--hero-grad-a) 0%, var(--petrole-ink) 45%, var(--hero-grad-b) 100%);
  color: var(--hero-ink);
  padding-top: clamp(110px, 16vh, 150px);
  overflow: hidden;
}
.hero-copy { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.028em;
  color: #fff;
}
.hero .lede {
  margin-top: 26px; max-width: 640px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6;
  color: var(--hero-muted);
}
.hero .lede strong { color: var(--hero-ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16.5px; text-decoration: none;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
}
.btn-solid { background: #fff; color: var(--petrole-ink); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.hero-trust {
  margin-top: 30px; font-size: 14.5px; color: var(--hero-muted); font-weight: 500;
}
.hero-trust b { color: var(--hero-ink); font-weight: 700; }

/* Capture produit : chevauche la couture hero → section suivante */
.hero-shot { margin-top: clamp(44px, 6vh, 70px); margin-bottom: clamp(-160px, -18vh, -100px); position: relative; z-index: 2; }
.hero-shot img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-deep);
}
.after-hero { padding-top: clamp(150px, 22vh, 220px); }

/* ── Sections communes ─────────────────────────────────────────────────────── */
section { padding-block: clamp(64px, 9vh, 110px); }
.sec-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.022em; line-height: 1.12;
}
.sec-intro { margin-top: 16px; max-width: 62ch; color: var(--muted); font-size: 1.06rem; }

/* ── Le problème — composition asymétrique ─────────────────────────────────── */
.probleme .split {
  display: grid; grid-template-columns: minmax(230px, 5fr) 7fr;
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.big-figure {
  font-size: clamp(4rem, 9vw, 7rem); font-weight: 900;
  line-height: 0.95; letter-spacing: -0.04em; color: var(--petrole);
}
.big-figure small {
  display: block; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 700;
  letter-spacing: 0; color: var(--ink); margin-top: 12px; line-height: 1.35;
}
.probleme p + p { margin-top: 18px; }
.probleme .pains { margin: 22px 0 0; padding: 0; list-style: none; }
.probleme .pains li {
  padding: 13px 0; border-top: 1px solid var(--border);
  font-weight: 500;
}
.probleme .pains li::before { content: "— "; color: var(--amber); font-weight: 900; }

/* ── La chaîne (4 étapes réelles) ──────────────────────────────────────────── */
.chaine { background: var(--surface); border-block: 1px solid var(--border); }
.steps { display: grid; gap: clamp(40px, 6vh, 64px); margin-top: clamp(36px, 5vh, 56px); }
.step {
  display: grid; grid-template-columns: auto 1fr; column-gap: clamp(18px, 2.5vw, 30px);
  align-items: baseline; max-width: 720px;
}
.step-n {
  font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 900;
  color: var(--petrole); letter-spacing: -0.03em; line-height: 1;
}
.step h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; letter-spacing: -0.015em; }
.step p { margin-top: 10px; color: var(--muted); }
.step p b { color: var(--ink); }
.step-shot { grid-column: 2; margin-top: 22px; }
.step-shot img {
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.step-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px;
}
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--amber-bg); color: var(--amber-ink); }
.tag.soft { background: var(--petrole-soft); color: var(--petrole-deep); }

/* ── Différenciation — rangées définition, pas de grille de cartes ─────────── */
.angles { margin-top: clamp(32px, 5vh, 48px); }
.angle {
  display: grid; grid-template-columns: minmax(190px, 3fr) 7fr;
  gap: 10px clamp(24px, 4vw, 60px);
  padding-block: 26px; border-top: 1px solid var(--border);
}
.angle:last-child { border-bottom: 1px solid var(--border); }
.angle h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.015em; }
.angle p { color: var(--muted); max-width: 62ch; }
.angle p b { color: var(--ink); }

/* ── Tarifs ────────────────────────────────────────────────────────────────── */
.tarifs { background: var(--surface); border-block: 1px solid var(--border); }
.pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin-top: clamp(32px, 5vh, 48px);
}
.plan {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; background: var(--bg);
  display: flex; flex-direction: column; gap: 6px;
}
.plan.featured { background: var(--petrole-ink); color: var(--hero-ink); border-color: var(--petrole-ink); }
.plan-name { font-weight: 800; font-size: 1.05rem; }
.plan-price { font-size: 2.1rem; font-weight: 900; letter-spacing: -0.03em; margin-top: 6px; }
.plan-price small { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; }
.plan-vol { font-weight: 600; font-size: 14.5px; margin-top: 2px; }
.plan-note { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.plan.featured .plan-note { color: var(--hero-muted); }
.pricing-terms { margin-top: 26px; font-size: 15px; color: var(--muted); max-width: 70ch; }
.pricing-terms b { color: var(--ink); }

/* ── CTA final — drapé pétrole en écho au hero ─────────────────────────────── */
.final {
  background: linear-gradient(160deg, var(--petrole-ink) 10%, var(--petrole-deep) 100%);
  color: var(--hero-ink); text-align: center;
}
.final h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 900;
  letter-spacing: -0.025em; color: #fff; max-width: 21ch; margin-inline: auto;
}
.final p { margin: 20px auto 0; max-width: 52ch; color: var(--hero-muted); }
.final .hero-actions { justify-content: center; }
.final a.mail { color: var(--hero-ink); font-weight: 700; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer { padding-block: 34px; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
footer a { color: var(--muted); }
footer a:hover { color: var(--petrole); }
footer .brand { font-weight: 700; color: var(--ink); }

/* ── Entrée du hero (chargement uniquement, jamais liée au scroll) ─────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-actions, .hero-trust { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  .hero-actions { animation-delay: 0.08s; }
  .hero-trust { animation-delay: 0.14s; }
  .hero-shot { animation: rise 0.9s 0.18s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .topnav a:not(.cta) { display: none; }
  .probleme .split, .angle { grid-template-columns: 1fr; }
  .big-figure { font-size: clamp(3.4rem, 16vw, 5rem); }
  .step { grid-template-columns: auto 1fr; }
  .after-hero { padding-top: clamp(120px, 16vh, 170px); }
  .hero-shot { margin-bottom: -80px; }
}
