/* =========================================================
   Cotiz — Design system
   Style clair inspiré d'Apple (apple.com) : fonds clairs,
   texte quasi-noir, bleu Apple, verre dépoli léger.
   ========================================================= */

:root {
  --bg: #f5f5f7;           /* fond de page gris très clair (Apple) */
  --bg-white: #ffffff;     /* sections / cartes blanches */

  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-soft: rgba(0, 0, 0, 0.06);

  --text: #1d1d1f;         /* quasi-noir Apple */
  --text-dim: #6e6e73;     /* gris secondaire */
  --text-faint: #86868b;   /* gris tertiaire */

  --accent: #0071e3;       /* bleu Apple */
  --accent-2: #0077ed;
  --accent-press: #006edb;

  --green: #1a9d4b;
  --amber: #b25e00;
  --red: #d32f2f;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 11px;

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 6px 20px rgba(0, 113, 227, 0.22);

  --maxw: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Fond clair (neutralise les orbes de l'ancien thème) ---- */
.bg-field { position: fixed; inset: 0; z-index: -2; background: var(--bg); }
.orb { display: none !important; }

/* ---- Layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 96px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.08; font-weight: 700; color: var(--text); }
.section h2 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 14px; font-weight: 700; }
.section .lead { color: var(--text-dim); font-size: 19px; max-width: 640px; }
.center .lead { margin: 0 auto; }

/* ---- Verre dépoli clair ---- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.glass-soft {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-md);
}

/* ---- Navbar ---- */
.nav {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px 11px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 18px; color: var(--text); }
.logo {
  width: 33px; height: 33px; border-radius: 9px;
  background: var(--accent);
  display: grid; place-items: center; color: #fff; font-weight: 700;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14.5px;
  padding: 8px 14px; border-radius: 999px; transition: all 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 500;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.7); color: var(--accent);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-card); }

/* ---- Hero ---- */
.hero { padding: 64px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); margin: 16px 0 22px; font-weight: 700; }
.hero h1 .grad {
  background: linear-gradient(95deg, #0071e3, #42a5f5 60%, #2eb6b0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: clamp(18px, 2.2vw, 23px); color: var(--text-dim); max-width: 660px; margin: 0 auto 30px; font-weight: 400; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; color: var(--text-dim);
  background: #fff; border: 1px solid var(--glass-border-soft);
  box-shadow: var(--shadow-card);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* hero mockup */
.hero-mock {
  margin: 56px auto 0; max-width: 900px; padding: 18px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px;
  background: rgba(255,255,255,0.5);
}
.hero-mock .panel { padding: 22px; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.stat-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.stat-row .big { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.muted { color: var(--text-dim); font-size: 14px; }
.bar { height: 8px; border-radius: 999px; background: rgba(0,0,0,0.08); overflow: hidden; margin: 14px 0 6px; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.mini-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mini-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff; flex-shrink: 0; }
.tag { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.tag.paid { background: rgba(26,157,75,0.12); color: var(--green); }
.tag.late { background: rgba(211,47,47,0.10); color: var(--red); }
.tag.wait { background: rgba(178,94,0,0.10); color: var(--amber); }

/* ---- Stats band ---- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 26px 22px; text-align: center; background: #fff; }
.stat-card .n { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.stat-card .l { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* ---- Feature grid ---- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 26px; background: #fff; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px;
  background: #f5f5f7;
  border: 1px solid var(--glass-border-soft);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; }

/* ---- Group types ---- */
.types { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.type { padding: 24px; background: #fff; }
.type .k { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.type h3 { font-size: 18px; margin-bottom: 8px; }
.type p { color: var(--text-dim); font-size: 14px; }

/* ---- Steps / parcours ---- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.step { padding: 24px; background: #fff; position: relative; }
.step .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; margin-bottom: 14px; color: #fff; background: var(--accent); }
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14px; }

/* ---- Split / security ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-dim); }
.checklist .ck { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.checklist b { color: var(--text); font-weight: 600; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.price { padding: 30px 26px; display: flex; flex-direction: column; background: #fff; }
.price.feat { border: 1px solid var(--accent); box-shadow: var(--shadow-glow); }
.price .name { font-weight: 600; color: var(--text-dim); }
.price .amt { font-size: 32px; font-weight: 700; margin: 10px 0 2px; letter-spacing: -0.02em; }
.price .amt small { font-size: 15px; font-weight: 400; color: var(--text-faint); }
.price ul { list-style: none; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.price ul li { font-size: 14px; color: var(--text-dim); display: flex; gap: 9px; }
.price ul li::before { content: "✓"; color: var(--green); font-weight: 700; }
.price .btn { margin-top: auto; justify-content: center; }
.ribbon { align-self: flex-start; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-bottom: 6px; }

/* ---- Roadmap ---- */
.roadmap { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.phase { padding: 22px; background: #fff; }
.phase .ph { font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.phase h4 { margin: 8px 0 10px; font-size: 17px; }
.phase ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.phase ul li { font-size: 13.5px; color: var(--text-dim); padding-left: 16px; position: relative; }
.phase ul li::before { content: "›"; position: absolute; left: 0; color: var(--accent); }

/* ---- CTA banner ---- */
.cta-banner { padding: 56px 40px; text-align: center; border-radius: var(--radius-xl); background: #fff; }
.cta-banner h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.cta-banner p { color: var(--text-dim); max-width: 520px; margin: 0 auto 26px; }

/* ---- Footer ---- */
footer { padding: 50px 0 40px; color: var(--text-faint); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; }
.foot-grid h5 { color: var(--text); font-size: 14px; margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--text-dim); text-decoration: none; font-size: 13.5px; margin-bottom: 8px; }
.foot-grid a:hover { color: var(--accent); }
.foot-bot { border-top: 1px solid var(--glass-border); padding-top: 22px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.note { font-size: 12.5px; color: var(--text-faint); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .grid-3, .types, .steps, .roadmap, .stats-band { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .hero-mock, .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .types, .steps, .roadmap, .stats-band, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* =========================================================
   Création de groupe — parcours multi-étapes (wizard)
   ========================================================= */
.wiz { max-width: 560px; margin: 0 auto; padding: 16px 16px 90px; min-height: 100vh; }
.wiz-head { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; }
.wiz-back { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: #fff; font-size: 16px; cursor: pointer; flex: 0 0 auto; }
.wiz-steps { display: flex; gap: 6px; flex: 1; overflow-x: auto; }
.wiz-steps span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px;
  color: var(--text-faint); flex: 1; min-width: 48px; }
.wiz-steps span::before { content: attr(data-n); }
.wiz-steps span { position: relative; }
.wiz-steps span i { font-style: normal; font-size: 10px; white-space: nowrap; }
.wiz-steps span { font-weight: 600; }
.wiz-steps span:not(.on):not(.done) { opacity: .55; }
.wiz-steps span.on { color: var(--accent); }
.wiz-steps span.done { color: var(--green); }
.wiz-progress { height: 6px; border-radius: 999px; background: rgba(0,0,0,.07); overflow: hidden; margin-bottom: 22px; }
.wiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #00b4d8); transition: width .35s ease; }
.wiz-title { font-size: 23px; margin: 0 0 4px; letter-spacing: -.4px; }
.wiz-sub { color: var(--text-faint); margin: 0 0 20px; font-size: 14.5px; }
.wiz-actions { display: flex; gap: 10px; margin-top: 24px; }
.wiz-fields { display: flex; flex-direction: column; gap: 4px; }

.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left;
  padding: 16px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--glass-border);
  background: var(--glass-bg-strong); cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s; }
.type-card:hover { transform: translateY(-2px); }
.type-card.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,.15); }
.tc-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: #fff; }
.tc-txt { display: flex; flex-direction: column; gap: 2px; }
.tc-txt b { font-size: 14.5px; line-height: 1.2; }
.tc-txt i { font-style: normal; font-size: 12px; color: var(--text-faint); }

.wiz-import { margin-bottom: 14px; }
.wiz-addrow { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 14px; flex-wrap: wrap; }
.wiz-addrow input { width: 100%; }
.wiz-mlist { display: flex; flex-direction: column; gap: 8px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft); }
.mrow-t { display: flex; flex-direction: column; flex: 1; }
.mrow-t b { font-size: 14px; }
.mrow-t i { font-style: normal; font-size: 12px; color: var(--text-faint); }
.mrow-x { border: 0; background: transparent; color: var(--text-faint); cursor: pointer; font-size: 15px; }
.ih-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill-acc { font-size: 11.5px; font-weight: 600; color: var(--green); }

.wiz-contacts-box { background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px; }
.wiz-ct-head { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.wiz-ctlist { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.ctchip { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 8px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--glass-border-soft); background: #fff; }
.ctchip:hover { border-color: var(--accent); }
.ctchip.on { border-color: var(--green); background: rgba(26,157,75,.06); }
.ctchip-t { display: flex; flex-direction: column; flex: 1; }
.ctchip-t b { font-size: 14px; }
.ctchip-t i { font-style: normal; font-size: 12px; color: var(--text-faint); }
.ctchip-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; background: rgba(0,113,227,.1); color: var(--accent); }
.ctchip.on .ctchip-ic { background: var(--green); color: #fff; }

/* Page "Mes contacts" */
.ct-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.ct-card .ct-meta { flex: 1; }
.ct-card .ct-meta b { font-size: 15px; }
.ct-card .ct-meta .sub { font-size: 13px; color: var(--text-faint); }

@media (max-width: 420px) {
  .type-grid { grid-template-columns: 1fr; }
  .wiz-steps span i { display: none; }
}
