/* ===========================================
   HOME.CSS  — style principal page d'accueil
   =========================================== */

:root {
  --green: #00A676;
  --blue: #0057D9;
  --orange: #FFA726;

  --bg: #0c0f14;
  --bg2: #0b0f17;
  --surface: #111621;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --border: rgba(255,255,255,.08);
  --shadow: 0 12px 36px rgba(0,0,0,.45);
  --radius: 16px;
  --space: clamp(14px, 2.6vw, 26px);
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0,167,118,.18) 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(0,87,217,.18) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
}

/* ===== HERO SECTION ===== */
.hero {
  display: grid;
  gap: var(--space);
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  padding: clamp(28px,6vw,64px) clamp(16px,6vw,64px);
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 14px;
}
.hero__content h1 span {
  color: var(--orange);
}
.hero__content p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 60ch;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== HERO CARD (kpi) ===== */
.hero__card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.kpi {
  margin-bottom: 16px;
}
.kpi:last-child {
  margin-bottom: 0;
}
.kpi__label {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.kpi__bar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.kpi__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  width: 0;
  transition: width .6s ease;
}
.kpi__bar--green span {
  background: linear-gradient(90deg, #10b981, #22d3ee);
}
.kpi__value {
  font-weight: 700;
}

/* ===== FEATURES ===== */
.features {
  padding: 0 clamp(16px,6vw,64px) clamp(36px,8vw,80px);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  perspective: 1000px;
}
.feature .flip {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s ease;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 190px;
  box-shadow: var(--shadow);
}
.feature:hover .flip,
.feature .flip.is-flipped {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  padding: 20px;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.face--back {
  transform: rotateY(180deg);
  color: #fff;
}
.face--accent-blue {
  background: linear-gradient(135deg, #0e1a3a, var(--blue));
}
.face--accent-green {
  background: linear-gradient(135deg, #07241e, var(--green));
}
.face--accent-orange {
  background: linear-gradient(135deg, #2b1a05, var(--orange));
}

.feature__icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.feature h3 {
  margin: 6px 0 8px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}
.face--back p {
  color: rgba(255,255,255,.92);
  margin-top: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__card {
    order: 2;
  }
}
@media (max-width: 720px) {
  .features {
    grid-template-columns: 1fr;
  }
}
