/* ============================================================
   BKSOFT — Site vitrine · Feuille de style principale
   ============================================================ */

:root {
  --primary: #4f7cff;
  --primary-dark: #3457d5;
  --accent: #22d3ee;
  --bg: #ffffff;
  --bg-alt: #f5f8ff;
  --dark: #0b1220;
  --dark-2: #131c31;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #cbd5e1;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
  --font: 'Inter', 'Segoe UI', system-ui, 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.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 124, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79, 124, 255, 0.45); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 0.95rem 2.2rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-nav { padding: 0.55rem 1.3rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  padding: 0.6rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; }
.logo-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 0.95rem; font-weight: 800;
  box-shadow: 0 6px 16px rgba(79, 124, 255, 0.4);
}
.header.scrolled .logo-text { color: var(--dark); }
.logo-text { color: #fff; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav-link { color: #fff; font-weight: 500; font-size: 0.95rem; position: relative; transition: color 0.2s; }
.header.scrolled .nav-link:not(.btn) { color: var(--text); }
.nav-link:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--primary);
  transition: width 0.25s;
}
.nav-link:not(.btn):hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 110;
}
.burger span { width: 26px; height: 3px; border-radius: 2px; background: #fff; transition: all 0.3s; }
.header.scrolled .burger span { background: var(--dark); }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 55%, #1a2b52 100%);
  color: #fff;
  overflow: hidden;
  padding: 8rem 0 4rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 85% 15%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(700px circle at 10% 85%, rgba(79, 124, 255, 0.25), transparent 60%);
}
.hero-content { position: relative; text-align: center; }
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  max-width: 640px; margin: 0 auto 2.2rem;
  color: var(--text-light);
  font-size: clamp(1rem, 2vw, 1.15rem);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.6rem 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--text-light); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cartes services ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 124, 255, 0.35);
}
.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,124,255,0.12), rgba(34,211,238,0.12));
  margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Étapes ---------- */
.step {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  border: 1px solid var(--border);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800; font-size: 0.95rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px rgba(79,124,255,0.3);
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Réalisations ---------- */
.project {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-thumb {
  position: relative;
  height: 150px;
  display: grid; place-items: center;
  overflow: hidden;
  font-size: 3.4rem;
  /* --img est renseigné par le back-office (data-img) ; sinon aucune image. */
  background-image:
    var(--img, none),
    radial-gradient(300px circle at 70% 20%, rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(135deg, var(--tint, #4f7cff), var(--dark));
  background-size: cover, auto, auto;
  background-position: center, center, center;
}
.project-emoji { line-height: 1; }
.project-body { padding: 1.5rem 1.6rem 1.8rem; }
.project-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  color: var(--primary);
  background: rgba(79,124,255,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.project h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.project p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Pourquoi nous ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.check-list { display: grid; gap: 1.2rem; }
.check-list li { display: flex; gap: 1rem; align-items: flex-start; }
.check-list > li > span {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 0.8rem; font-weight: 700;
  margin-top: 0.2rem;
}
.check-list strong { display: block; font-size: 1.02rem; }
.check-list p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Tarifs ---------- */
.pricing-grid { align-items: stretch; }
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 1.25rem; }
.pricing-desc { color: var(--text-muted); font-size: 0.92rem; margin: 0.3rem 0 1.3rem; }
.pricing-price { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.3rem; }
.pricing-price span { font-size: 1.9rem; font-weight: 800; color: var(--dark); }
.pricing-features { flex-grow: 1; margin-bottom: 1.8rem; display: grid; gap: 0.7rem; }
.pricing-features li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.93rem;
  color: var(--text);
}
.pricing-features li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-list { display: grid; gap: 0.9rem; margin-top: 1.5rem; font-size: 1rem; }
.contact-list a:hover { color: var(--primary); }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2.2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fdfefe;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.15);
}
.form-field textarea { resize: vertical; }
.form-status { margin-top: 1rem; font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #dc2626; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--text-light); padding: 4rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer .logo-text { color: #fff; }
.footer-tagline { margin-top: 1rem; font-size: 0.92rem; max-width: 280px; color: var(--text-light); }
.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-grid a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  color: var(--text-light);
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* ---------- Animations reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pricing-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(11, 18, 32, 0.97);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: 105;
  }
  .nav.open { transform: translateY(0); }
  .nav.open .nav-link { color: #fff; }
  .nav-link { font-size: 1.25rem; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}

/* ---------- Acces au back-office : volontairement discret ---------- */
.footer-admin {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
.footer-admin:hover { color: #fff; opacity: 1; }

/* ---------- Elements caches ---------- */
/* Le moteur de contenu pose l'attribut `hidden` (ex. emoji d'un projet
   remplace par une image). Sans cette regle, un futur `display:` sur ces
   elements les laisserait visibles. */
[hidden] { display: none !important; }