/* ============================================================
   OpcoFlow — Site vitrine
   Palette : teal (primaire) + ambre (accent "financement obtenu")
   Typo : Bricolage Grotesque (display) + Inter (texte)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Primaire teal */
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  /* Accent ambre (le financement débloqué) */
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  /* Neutres */
  --ink:      #0c1413;
  --ink-700:  #2b3a38;
  --ink-500:  #566461;
  --ink-400:  #8a9794;
  --line:     #e4ebe9;
  --line-2:   #eef3f1;
  --cream:    #f7faf8;
  --white:    #ffffff;

  --radius:   18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(12,20,19,.05), 0 1px 3px rgba(12,20,19,.04);
  --shadow:    0 10px 30px -12px rgba(13,148,136,.22), 0 4px 12px -6px rgba(12,20,19,.08);
  --shadow-lg: 0 30px 60px -22px rgba(13,148,136,.30);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-700); background: var(--teal-50);
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--teal-100);
}
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.center { text-align: center; }
.muted { color: var(--ink-500); }
.mark { color: var(--teal-600); }
.hl {
  background: linear-gradient(180deg, transparent 58%, var(--amber-300) 58%);
  padding: 0 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 100px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-300); color: var(--teal-700); transform: translateY(-1px); }
.btn-amber { background: var(--ink); color: #fff; }
.btn-amber:hover { background: #000; transform: translateY(-1px); }
.btn-light { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Header / nav ---------- */
.topstrip {
  background: var(--teal-900); color: #d4f5ee; text-align: center;
  font-size: 13.5px; padding: 9px 16px; letter-spacing: .01em;
}
.topstrip a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family:'Bricolage Grotesque'; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px -4px rgba(13,148,136,.6);
}
.brand .logo svg { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-700);
  padding: 9px 13px; border-radius: 10px; transition: .15s;
}
.nav-links a:hover { background: var(--teal-50); color: var(--teal-700); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-login { font-size: 14.5px; font-weight: 600; color: var(--ink-700); padding: 9px 6px; }
.nav-login:hover { color: var(--teal-700); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger svg { width: 26px; height: 26px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 78px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 420px at 78% 8%, var(--teal-50), transparent 70%),
    radial-gradient(520px 380px at 12% 90%, #fff7e6, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero p.lead { font-size: 18.5px; color: var(--ink-500); margin: 22px 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: var(--ink-400); display:flex; align-items:center; gap:8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--teal-600); }

/* Hero visual : carte produit "dossier" */
.hero-art { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; position: relative;
}
.hero-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border:1px solid var(--line-2); border-radius: 14px; margin-bottom: 11px; background: var(--cream); }
.hero-card .row:last-child { margin-bottom: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.g { background: var(--teal-500); }
.dot.a { background: var(--amber-500); }
.dot.n { background: var(--ink-400); }
.rl { display:flex; align-items:center; gap:11px; font-size: 14px; font-weight: 600; }
.tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 100px; letter-spacing:.02em; }
.tag.ok { background: var(--teal-50); color: var(--teal-700); }
.tag.wait { background: #fff7e6; color: var(--amber-600); }
.tag.pay { background: var(--teal-600); color: #fff; }
.hero-badge {
  position: absolute; right: -14px; top: -18px; background: var(--amber-500); color: #1a1205;
  font-weight: 700; font-size: 13px; padding: 10px 15px; border-radius: 14px; box-shadow: var(--shadow);
  transform: rotate(3deg);
}
.hero-float {
  position: absolute; left: -26px; bottom: 26px; background: #fff; border:1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 13px 16px; display:flex; align-items:center; gap:12px;
}
.hero-float .big { font-family:'Bricolage Grotesque'; font-weight:800; font-size:22px; color: var(--teal-700); }
.hero-float small { color: var(--ink-400); font-size: 12px; }

/* ---------- Logos / OPCO band ---------- */
.trust { padding: 44px 0 8px; }
.trust p { text-align: center; font-size: 14px; color: var(--ink-400); font-weight: 500; margin-bottom: 26px; }
.opco-band { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.opco-chip {
  font-weight: 700; font-size: 14px; color: var(--ink-700);
  background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px;
  transition: .15s;
}
.opco-chip:hover { border-color: var(--teal-300); color: var(--teal-700); box-shadow: var(--shadow-sm); }

/* ---------- Stats ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600) 55%, var(--teal-500));
  border-radius: 28px; padding: 46px 28px; color: #fff; position: relative; overflow: hidden;
}
.stats-band::after {
  content:""; position:absolute; right:-60px; top:-60px; width:260px; height:260px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; position: relative; }
.stat .n { font-family:'Bricolage Grotesque'; font-weight: 800; font-size: clamp(30px,3.4vw,44px); }
.stat .n span { color: var(--amber-300); }
.stat .l { color: #c9f2ea; font-size: 14.5px; margin-top: 4px; }

/* ---------- Section heads ---------- */
.shead { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.shead h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 16px 0 14px; }
.shead p { font-size: 17px; color: var(--ink-500); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: s; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative;
  transition: .2s;
}
.step:hover { border-color: var(--teal-300); box-shadow: var(--shadow); transform: translateY(-3px); }
.step .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--teal-50); color: var(--teal-700); display:grid; place-items:center; margin-bottom: 16px; }
.step .ic svg { width: 23px; height: 23px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-500); }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 22px; right: 22px; font-family:'Bricolage Grotesque'; font-weight: 800; font-size: 26px; color: var(--line); }

/* ---------- Two-audience split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.aud {
  border-radius: var(--radius-lg); padding: 36px 34px; border: 1px solid var(--line); position: relative; overflow: hidden;
}
.aud.cfa { background: linear-gradient(160deg, var(--teal-50), #fff); }
.aud.pdc { background: linear-gradient(160deg, #fff8ea, #fff); }
.aud .pill { display:inline-block; font-size: 12.5px; font-weight: 700; letter-spacing:.03em; text-transform: uppercase; padding: 6px 13px; border-radius: 100px; margin-bottom: 16px; }
.aud.cfa .pill { background: var(--teal-600); color: #fff; }
.aud.pdc .pill { background: var(--amber-500); color: #2a1c02; }
.aud h3 { font-size: 24px; margin-bottom: 10px; }
.aud > p { color: var(--ink-500); font-size: 15px; margin-bottom: 20px; }
.checks { list-style: none; display: grid; gap: 11px; margin-bottom: 22px; }
.checks li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-700); align-items:flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.aud.cfa .checks svg { color: var(--teal-600); }
.aud.pdc .checks svg { color: var(--amber-600); }
.aud .more { font-weight: 600; font-size: 15px; display:inline-flex; align-items:center; gap:7px; color: var(--ink); }
.aud .more svg { width:17px;height:17px; transition:.2s; }
.aud .more:hover svg { transform: translateX(4px); }

/* ---------- Feature cards ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition:.2s;
}
.feat:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--teal-200); }
.feat .ic { width: 48px; height:48px; border-radius: 14px; display:grid; place-items:center; margin-bottom: 16px; background: var(--teal-50); color: var(--teal-700); }
.feat .ic svg { width: 24px; height: 24px; }
.feat.amber .ic { background: #fff3da; color: var(--amber-600); }
.feat h3 { font-size: 18.5px; margin-bottom: 9px; }
.feat p { font-size: 14.5px; color: var(--ink-500); }

/* ---------- Highlight band (commission) ---------- */
.commission {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; overflow: hidden; position: relative;
}
.commission::before { content:""; position:absolute; right:-80px; bottom:-80px; width:320px;height:320px; border-radius:50%; background: radial-gradient(circle, rgba(13,148,136,.5), transparent 68%); }
.commission .inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; }
.commission h2 { color: #fff; font-size: clamp(28px,3.5vw,40px); margin-bottom: 16px; }
.commission p { color: #b9c8c5; font-size: 17px; }
.commission .pct { font-family:'Bricolage Grotesque'; font-weight: 800; font-size: 90px; line-height: 1; color: var(--amber-400); }
.commission .pct small { font-size: 22px; color:#fff; font-weight:700; }
.commission .pbox { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 28px; text-align:center; }
.commission .pbox .sub { color:#9fb3af; font-size:14px; margin-top:10px; }

/* ---------- CTA final ---------- */
.cta {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); color: #fff;
  border-radius: 28px; padding: 64px 40px; text-align: center; position: relative; overflow:hidden;
}
.cta::after { content:""; position:absolute; left:-60px; top:-60px; width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 70%); }
.cta h2 { color:#fff; font-size: clamp(28px,3.6vw,40px); margin-bottom: 14px; position:relative; }
.cta p { color: #d4f5ee; font-size: 17.5px; margin-bottom: 28px; position:relative; }
.cta .hero-cta { justify-content:center; position: relative; }

/* ---------- Footer ---------- */
footer.foot { background: var(--ink); color: #b9c8c5; padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot .brand .logo { box-shadow:none; }
.foot p.fdesc { font-size: 14px; max-width: 280px; }
.foot h4 { color: #fff; font-family:'Inter'; font-size: 13px; text-transform: uppercase; letter-spacing:.06em; margin-bottom: 16px; font-weight: 700; }
.foot ul { list-style: none; display: grid; gap: 11px; }
.foot ul a { font-size: 14.5px; color: #9fb3af; transition:.15s; }
.foot ul a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #7c918d; }
.foot-bottom a { color:#9fb3af; }

/* ---------- Generic page hero (sub-pages) ---------- */
.phero { padding: 64px 0 40px; background: radial-gradient(700px 360px at 50% -10%, var(--teal-50), transparent 70%); text-align:center; }
.phero h1 { font-size: clamp(32px,4.4vw,50px); font-weight:800; max-width: 820px; margin: 18px auto 18px; }
.phero p { font-size: 18px; color: var(--ink-500); max-width: 620px; margin: 0 auto 28px; }
.phero .hero-cta { justify-content:center; }

/* ---------- Pricing ---------- */
.price-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.price-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; position:relative; }
.price-card.feature { border-color: var(--teal-300); box-shadow: var(--shadow); }
.price-card .ptag { position:absolute; top:-13px; left:36px; background: var(--teal-600); color:#fff; font-size:12px; font-weight:700; padding:6px 14px; border-radius:100px; }
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-card .who { color: var(--ink-500); font-size: 14.5px; margin-bottom: 22px; }
.price-card .amount { font-family:'Bricolage Grotesque'; font-weight: 800; font-size: 52px; color: var(--teal-700); line-height:1; }
.price-card .amount small { font-size: 18px; color: var(--ink-500); font-weight:600; }
.price-card .amount em { font-style: normal; font-size:15px; color: var(--ink-400); display:block; margin-top:6px; font-family:'Inter'; font-weight:500; }
.price-card .checks { margin: 24px 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 4px; font-weight: 600; font-size: 17px; display:flex; justify-content: space-between; align-items:center; gap: 16px; }
.qa summary::-webkit-details-marker { display:none; }
.qa summary .pm { width: 24px; height:24px; flex:none; color: var(--teal-600); transition: transform .2s; }
.qa[open] summary .pm { transform: rotate(45deg); }
.qa p { padding: 0 4px 24px; color: var(--ink-500); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }
.field { margin-bottom: 16px; }
.field label { display:block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border:1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; background:#fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px var(--teal-100); }
.contact-side { background: var(--cream); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.contact-side .ci { display:flex; gap:14px; margin-bottom: 20px; align-items:flex-start; }
.contact-side .ci .ic { width:42px;height:42px;border-radius:12px;background:var(--teal-50);color:var(--teal-700);display:grid;place-items:center;flex:none; }
.contact-side .ci .ic svg{width:21px;height:21px;}
.contact-side .ci b{ display:block; font-size:15px; }
.contact-side .ci span{ font-size:14px; color: var(--ink-500); }

/* ---------- Reveal animation (visible par défaut, animé seulement si JS actif) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .commission .inner, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .split, .price-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-login { display: none; }
  .burger { display: block; }
  .nav-links.open { display:flex; position: absolute; top: 70px; left:0; right:0; background:#fff; flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open a { padding: 13px; }
  .section { padding: 64px 0; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .commission { padding: 36px 26px; }
  .stats-band { padding: 32px 20px; }
}
@media (max-width: 480px) {
  .stats-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-float { display:none; }
}
