/* ===============================
   CRMONDIO — Startup Landing Theme
   Coller ce fichier en bas de ton Custom CSS
   =============================== */

/* --------- Variables & Reset --------- */
:root{
  --brand: #6c39ff;
  --brand-2: #9b7dff;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.06);
  --shadow-sm: 0 6px 16px rgba(15,23,42,.08);
  --grad: linear-gradient(90deg, var(--brand), var(--brand-2));
  --hero-bg: radial-gradient(1200px 600px at 10% -10%, #e9e6ff 0%, transparent 60%),
             radial-gradient(900px 400px at 120% -10%, #e7f0ff 0%, transparent 55%),
             #1e40af;  /* fallback si la plateforme force une couleur derrière */
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
p{color:var(--muted); line-height:1.75}

/* --------- Layout helpers --------- */
.container, .wrap, .inner{
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.section{padding:72px 0}
.section-sm{padding:48px 0}
.section-lg{padding:96px 0}
.center{text-align:center}
.grid{
  display:grid; gap:24px;
}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width: 1024px){
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 860px){
  .grid-3,.grid-2,.grid-4{grid-template-columns:1fr}
}

/* --------- Header --------- */
body{--hdrH:64px}
header, .site-header, .navbar{
  position:sticky; top:0; z-index:60;
  width:100vw; left:0; right:0; border-radius:0 !important;
  background: rgba(255,255,255,.9) !important;
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(15,23,42,.06);
}
header .container{display:flex; align-items:center; justify-content:space-between; min-height:var(--hdrH)}
header .brand, .logo{display:flex; align-items:center; gap:10px}
header nav ul{display:flex; gap:28px; list-style:none; margin:0; padding:0}
header nav a{
  font-weight:600; color:#0f172a !important; padding:10px 2px; position:relative;
}
header nav a:hover::after, header nav a[aria-current="page"]::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--grad); border-radius:2px;
}
/* Neutraliser styles “.btn” génériques dans la nav */
header nav .btn, header nav [class*="btn"]{background:transparent !important; box-shadow:none !important; padding:0 !important; border:0 !important}
/* Action à droite (Sign in) */
header a[href*="login"], header a[href*="signin"], .navbar .sign-in{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px !important; border-radius:999px; color:#fff !important;
  background: var(--grad) !important; font-weight:700; border:0 !important;
  box-shadow: 0 8px 20px rgba(108,57,255,.22) !important;
}

/* --------- Hero --------- */
.hero, .Hero, .page-hero{
  background: var(--hero-bg);
  color:#fff;
  padding: 110px 0 40px;
  position:relative; overflow:hidden;
}
.hero .container{display:grid; grid-template-columns: 1.1fr .9fr; gap:36px; align-items:center}
.hero h1{
  margin:0 0 16px; font-weight:800; letter-spacing:-.02em;
  font-size: clamp(32px, 5vw, 56px);
  line-height:1.05;
}
.hero .lead{color:#e9e9ff; font-size: clamp(16px, 2.2vw, 18px); max-width: 780px}
.hero .cta{display:flex; gap:14px; margin-top:24px; flex-wrap:wrap}

/* --------- Buttons --------- */
button, .btn, .button, [role="button"], [class*="btn-"]{
  --_bg: var(--grad);
  appearance:none; border:0; outline:0; cursor:pointer;
  padding:14px 20px; border-radius:12px; font-weight:700; line-height:1;
  background: var(--_bg); color:#fff; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
button:hover, .btn:hover{transform: translateY(-2px)}
.btn-secondary{
  background:#fff; color:#0f172a; box-shadow: var(--shadow);
}
.btn-ghost{
  background:transparent; color:#fff; box-shadow:none; border:1px solid rgba(255,255,255,.5);
}

/* --------- Icon chips --------- */
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background: #eef2ff; color:#3730a3; font-weight:700; font-size:12px;
}

/* --------- Feature/Step Cards --------- */
.card{
  background:var(--surface);
  border:1px solid rgba(15,23,42,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad{padding:22px}
.card h3{margin:6px 0 8px; font-weight:800; letter-spacing:-.01em}
.card p{margin:0}
.card .icon{
  width:44px; height:44px; border-radius:12px;
  display:grid; place-items:center;
  background:#eef2ff; color:#4f46e5; font-size:22px; font-weight:900;
  box-shadow: inset 0 0 0 1px rgba(79,70,229,.15);
}

/* Steps grid (How to get started) */
.steps .card{display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:flex-start}
.steps .badge{font-weight:800; font-size:12px; background:#e2e8f0; border-radius:6px; padding:4px 8px; color:#0f172a}

/* Integrations logos/tiles */
.integrations .tile{
  display:flex; gap:14px; align-items:flex-start; padding:18px; background:#fff;
  border-radius:14px; border:1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm);
}
.integrations .tile img{width:36px; height:36px; object-fit:contain}

/* --------- Illustration Sections (image + texte) --------- */
.slice{
  display:grid; grid-template-columns: .9fr 1.1fr; gap:36px; align-items:center;
  background: #fff; border:1px solid rgba(15,23,42,.06);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding:28px; position:relative;
}
.slice.reverse{grid-template-columns: 1.1fr .9fr}
.slice .label{font-size:12px; font-weight:800; color:#334155; background:#e2e8f0; padding:4px 8px; border-radius:6px; display:inline-block}
.slice h3{margin:10px 0}
.slice .illus{border-radius:12px; overflow:hidden; box-shadow: var(--shadow-sm)}

/* --------- CTA band --------- */
.cta-band{
  background: radial-gradient(800px 400px at 10% 0%, #e9e6ff 0%, transparent 55%), #fff;
  border:1px solid rgba(15,23,42,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 26px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.cta-band h3{margin:0}
@media (max-width: 900px){
  .slice,.cta-band{grid-template-columns:1fr; display:block}
}

/* --------- FAQ / Accordion --------- */
.faq-wrap{max-width:980px; margin:0 auto}
.faq-item{
  background:#fff; border:1px solid rgba(15,23,42,.08);
  border-radius:14px; box-shadow: var(--shadow-sm);
  margin:18px 0; overflow:hidden;
}
.faq-q{
  display:flex; align-items:center; gap:12px;
  padding:18px 22px; cursor:pointer; font-weight:800; letter-spacing:-.01em; color:#0f172a;
}
.faq-q .chev{
  width:28px; height:28px; border-radius:8px; background:#eef2ff; color:#4f46e5;
  display:grid; place-items:center;
}
.faq-a{padding:0 22px 18px 60px; color:#475569; line-height:1.7}
.faq-item[open] .chev{transform:rotate(180deg)}

/* --------- Footer --------- */
.footer-top{
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  border-top:1px solid rgba(15,23,42,.06);
  padding:40px 0;
}
footer{
  background:#0b1220; color:#cbd5e1; padding:40px 0 60px;
}
footer a{color:#e2e8f0}
footer .cols{display:grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap:24px}
footer .logo img{height:26px}
footer .legal{margin-top:22px; color:#94a3b8; font-size:13px}
@media (max-width: 900px){ footer .cols{grid-template-columns:1fr 1fr} }
@media (max-width: 640px){ footer .cols{grid-template-columns:1fr} }

/* --------- Utilities --------- */
.rounded-2xl{border-radius:var(--radius)}
.shadow{box-shadow:var(--shadow)}
.max-w-lg{max-width:680px}
.kbd{
  padding:2px 6px; border-radius:6px; background:#0f172a; color:#fff; font-weight:700; font-size:12px;
}

/* --------- Animations subtiles --------- */
.reveal{opacity:0; transform:translateY(10px); animation:reveal .6s ease forwards}
@keyframes reveal{to{opacity:1; transform:none}}
.float{animation:float 6s ease-in-out infinite}
@keyframes float{
  0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)}
}

/* --------- Images hero/device shadow --------- */
.device{
  border-radius:22px; overflow:hidden; box-shadow: 0 40px 80px rgba(15,23,42,.25), 0 6px 16px rgba(15,23,42,.12);
}

/* --------- Spacers pour widgets chat/cookie éventuels --------- */
body [id*="chat"], body [class*="cookie"]{z-index:70}

/* --------- Dark Mode auto --------- */
@media (prefers-color-scheme: dark){
  :root{
    --ink:#e5e7eb; --muted:#b4bdc7;
    --bg:#0b1220; --surface:#0f172a;
    --hero-bg: radial-gradient(1200px 600px at 10% -10%, #1b2140 0%, transparent 65%),
               radial-gradient(900px 400px at 120% -10%, #18213a 0%, transparent 55%),
               #0b1220;
  }
  header, .site-header, .navbar{background: rgba(12,18,32,.7) !important; box-shadow: 0 1px 0 rgba(255,255,255,.06)}
  .card, .slice, .cta-band, .faq-item{background:#0f172a; border-color:rgba(255,255,255,.06)}
  .integrations .tile{background:#0f172a; border-color:rgba(255,255,255,.06)}
  .btn-secondary{background:#111827; color:#e5e7eb}
  .hero .lead{color:#c7c9ff}
  footer{background:#0b1220}
}