
/* =====================================================
   Rachat2Credits — Thème Fintech Premium (Pretto style)
   Desktop-first • DM Sans (Google) • Compatible Bootstrap
   ===================================================== */
:root{
  --ink:#0b2740;            /* bleu pétrole */
  --ink-2:#103553;
  --bg:#f5f7fa;             /* gris clair */
  --paper:#ffffff;
  --muted:#6b7a8a;
  --border:#e6ebf1;
  --accent:#ffb3c1;         /* rose Pretto */
  --accent-2:#ffd4dd;
  --radius:16px;
  --shadow:0 14px 32px rgba(11,39,64,.10);
  --maxw:1380px;
}

/* Base */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#0f1320; background:var(--bg); line-height:1.6;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* Containers / helpers */
.container{max-width:var(--maxw); margin:0 auto; padding:0 24px}
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.card{background:var(--paper); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow)}
.btn{display:inline-block; border:1px solid var(--border); background:#fff; color:#111; border-radius:14px; padding:10px 16px; text-decoration:none; transition:transform .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn-accent{background:var(--accent); border-color:transparent; color:#2b1a1e; font-weight:700}
.badges{display:flex; gap:10px; flex-wrap:wrap}
.badges .chip{background:#fff; border:1px solid var(--border); color:var(--ink); padding:6px 12px; border-radius:999px; font-weight:600}

/* Header / Nav */
.site-header{position:sticky; top:0; z-index:40; background:linear-gradient(180deg,var(--ink),var(--ink-2)); color:#fff; box-shadow:var(--shadow)}
.site-header .bar{display:flex; align-items:center; justify-content:space-between; padding:14px 24px}
.brand{display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:800}
.brand .mark{display:inline-grid; place-items:center; width:38px; height:38px; border-radius:10px; background:var(--accent); color:#2b1a1e}
.main-nav a{color:#fff; text-decoration:none; margin-left:16px; opacity:.95}
.main-nav a:hover{opacity:1}

/* HERO */
.section-hero{
  position:relative; color:#fff; padding:72px 0 40px;
  background:
    radial-gradient(1000px 540px at 10% -10%, var(--accent-2) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink), var(--ink-2) 62%, transparent 62%);
  overflow:hidden;
}
.hero-grid{display:grid; grid-template-columns:1.15fr .85fr; gap:32px; align-items:center}
.section-hero h1{font-size:46px; line-height:1.08; margin:0 0 12px; font-weight:800}
.section-hero .lead{opacity:.96; margin:0 0 18px; font-size:18px}

/* Hero decorative blob */
.section-hero::after{
  content:""; position:absolute; right:-120px; top:-80px;
  width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(255,179,193,.45), rgba(255,179,193,0) 60%);
  filter:blur(10px);
}

/* Hero form */
.hero-form.card{color:#0f1320}
.hero-form form{padding:18px}
.hero-form label{display:block; font-size:14px; margin:10px 0}
.hero-form input,.hero-form select{width:100%; padding:10px 12px; margin-top:6px; border:1px solid var(--border); border-radius:12px; background:#fff}
.hero-form input:focus,.hero-form select:focus{box-shadow:0 0 0 6px rgba(255,179,193,.35); outline:none; border-color:var(--accent)}

/* SECTIONS */
.section{padding:60px 0; color:#0f1320}
.section.white{background:#fff}
.section h2{margin:0 0 12px; font-size:28px}
.section .features{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.feature.card{padding:18px}
.feature h3{margin:4px 0 8px}

/* STEPS */
.steps{counter-reset:st; list-style:none; padding:0; margin:18px 0 0}
.steps li{counter-increment:st; background:#fff; border-radius:16px; padding:14px 16px; margin:10px 0; box-shadow:var(--shadow); display:flex; align-items:center; gap:10px}
.steps li::before{content:counter(st); display:inline-grid; place-items:center; width:28px; height:28px; margin-right:4px; border-radius:8px; background:var(--accent); color:#2b1a1e; font-weight:800}

/* FAQ */
.section-faq details{background:#fff; border:1px solid var(--border); border-radius:14px; padding:14px 18px; box-shadow:var(--shadow); margin-bottom:14px}
.section-faq summary{font-weight:700; color:var(--ink); cursor:pointer; list-style:none}
.section-faq summary::-webkit-details-marker{display:none}
.section-faq p{margin-top:10px; color:#0f1320}

/* CONTACT */
.section-contact .card{padding:20px}
.micro{font-size:12px; color:var(--muted)}

/* FOOTER */
.site-footer{background:#0e141c; color:#cfe3e3; margin-top:36px}
.site-footer .grid{display:grid; gap:18px; grid-template-columns:1.1fr .9fr}
.site-footer .logo{display:inline-grid; place-items:center; width:36px; height:36px; border-radius:10px; background:var(--accent); color:#2b1a1e; margin-right:10px; font-weight:800}
.site-footer a{color:#e6f3f3; text-decoration:none; margin-right:14px}

/* Cookies / modals layering (Bootstrap) */
#cookie-banner{z-index:1080}
.modal{z-index:1090}
.modal-backdrop{z-index:1085}

/* Responsive down */
@media (max-width:1200px){ .hero-grid{grid-template-columns:1fr; gap:24px} }
@media (max-width:960px){
  .section-hero h1{font-size:36px}
  .grid-2{grid-template-columns:1fr}
  .section .features{grid-template-columns:1fr}
  .site-footer .grid{grid-template-columns:1fr}
}
/* ----- Contact section: better form styling ----- */
.section-contact .card{ padding:24px; margin-top:12px }
.section-contact .form label{ display:block; font-weight:600; margin:12px 0 6px }
.section-contact .form input,
.section-contact .form select{
  width:100%; padding:12px 14px; border:1px solid var(--border);
  border-radius:12px; background:#fff; color:#0f1320; outline:none
}
.section-contact .form input:focus,
.section-contact .form select:focus{
  box-shadow:0 0 0 6px rgba(255,179,193,.30); border-color:var(--accent)
}
.section-contact .form button.btn{ margin-top:10px }
/* ----- Footer: ensure visible, padded and readable ----- */
.site-footer{
  display:block; position:relative; z-index:0;
  background:#0e141c; color:#cfe3e3;
  padding:28px 0; margin-top:48px
}
.site-footer a{ color:#e6f3f3; text-decoration:none; margin-right:14px }
.site-footer a:hover{ text-decoration:underline }
