/* ================================================================
   FaabaKoo — home.css
   Styles exclusifs à la page d'accueil (front-page.php)
   ================================================================ */

/* ---- Utilitaires page accueil ---------------------------------- */
.fk-home-section        { padding: 5rem 0; }
.fk-home-section--soft  { background: #F8FAFC; }
.fk-home-shead          { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.fk-home-shead--center  { flex-direction: column; align-items: center; text-align: center; }
.fk-home-shead--light .fk-eyebrow { color: rgba(255,255,255,.7); }
.fk-home-shead--light .fk-h2     { color: #fff; }
.fk-home-sdesc          { max-width: 560px; color: #64748B; font-size: 1.0625rem; line-height: 1.7; margin-top: .5rem; }
.fk-home-sdesc--light   { color: rgba(255,255,255,.75); }

.fk-eyebrow             { display: inline-block; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--fk-green); margin-bottom: .5rem; }
.fk-eyebrow--light      { color: rgba(255,255,255,.65); }
.fk-h2                  { font-size: clamp(1.75rem, 4vw, 2.625rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.15; color: var(--fk-dark); }
.fk-h2--light           { color: #fff; }

/* ---- Pulse dot -------------------------------------------------- */
.fk-pulse-dot {
  display: inline-block; width: .6rem; height: .6rem;
  background: #4ADE80; border-radius: 50%;
  animation: fk-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes fk-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: .7; }
}

/* ================================================================
   HERO
   ================================================================ */
.fk-hero {
  position: relative;
  background: linear-gradient(135deg, #064E1A 0%, #0F7A35 40%, #16A34A 80%, #15803D 100%);
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.fk-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.fk-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Content – left */
.fk-hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  padding: .4rem .9rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 1.5rem;
}
.fk-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}
.fk-hero__accent { color: #86EFAC; }

.fk-hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2rem;
}

.fk-hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.fk-hero-btn {
  display: inline-flex; align-items: center; gap: .625rem;
  padding: .875rem 1.75rem;
  border-radius: .875rem;
  font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  text-decoration: none; transition: all .2s; cursor: pointer; border: none;
}
.fk-hero-btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.fk-hero-btn--ghost:hover { background: rgba(255,255,255,.22); }
.fk-btn-danger.fk-hero-btn { font-size: .875rem; padding: .875rem 1.75rem; border-radius: .875rem; text-decoration: none; }

/* Panel – right */
.fk-hero__panel { display: flex; flex-direction: column; gap: 1rem; }

.fk-hero-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 1.5rem;
  padding: 1.5rem;
}
.fk-hero-card__head {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.75);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1.25rem;
}
.fk-hero-card__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: .875rem;
}
.fk-hero-stat { display: flex; flex-direction: column; gap: .2rem; }
.fk-hero-stat__val {
  font-size: 1.625rem; font-weight: 900; color: #fff; line-height: 1;
}
.fk-hero-stat__val--red   { color: #FCA5A5; }
.fk-hero-stat__val--amber { color: #FCD34D; }
.fk-hero-stat__lbl  { font-size: .75rem; color: rgba(255,255,255,.65); font-weight: 600; }

.fk-hero-blood {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
}
.fk-hero-blood__label {
  font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.65);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .75rem;
}
.fk-hero-blood__grid { display: flex; flex-wrap: wrap; gap: .375rem; }

.fk-blood-tag {
  display: inline-block;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: .75rem; font-weight: 800;
  padding: .2rem .55rem; border-radius: .5rem;
  border: 1px solid rgba(255,255,255,.2);
}
.fk-blood-tag--rare {
  background: rgba(220, 38, 38, .4); color: #FEE2E2;
  border-color: rgba(220, 38, 38, .5);
}

/* Scroll hint */
.fk-hero__scroll {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  animation: fk-bounce 1.8s ease-in-out infinite;
}
@keyframes fk-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 768px) {
  .fk-hero { padding: 3.5rem 0 3rem; }
  .fk-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .fk-hero__title { font-size: 2.25rem; }
  .fk-hero__panel { display: none; }
}

/* ================================================================
   STATS BAR
   ================================================================ */
.fk-statsbar {
  background: #fff;
  border-bottom: 1px solid var(--fk-border);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  position: relative;
  z-index: 2;
}
.fk-statsbar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide: 1px solid var(--fk-border);
}
.fk-sb-item {
  display: flex; align-items: center; gap: .875rem;
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--fk-border);
}
.fk-sb-item:last-child { border-right: none; }

.fk-sb-icon {
  width: 2.75rem; height: 2.75rem; border-radius: .875rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fk-sb-icon--green  { background: #DCFCE7; color: var(--fk-green); }
.fk-sb-icon--red    { background: #FEE2E2; color: var(--fk-red); }
.fk-sb-icon--amber  { background: #FEF3C7; color: #D97706; }
.fk-sb-icon--blue   { background: #DBEAFE; color: var(--fk-blue); }

.fk-sb-val {
  font-size: 1.5rem; font-weight: 900; color: var(--fk-dark);
  display: block; line-height: 1;
}
.fk-sb-lbl { font-size: .75rem; color: #64748B; font-weight: 600; display: block; margin-top: .2rem; }

@media (max-width: 768px) {
  .fk-statsbar__inner { grid-template-columns: 1fr 1fr; }
  .fk-sb-item { border-right: 1px solid var(--fk-border); border-bottom: 1px solid var(--fk-border); }
}
@media (max-width: 480px) {
  .fk-statsbar__inner { grid-template-columns: 1fr; }
}

/* ================================================================
   SERVICE CARDS
   ================================================================ */
.fk-svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.fk-svc-card {
  display: flex; flex-direction: column; gap: .75rem;
  background: #fff;
  border: 1px solid var(--fk-border);
  border-radius: 1.5rem;
  padding: 2rem;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.fk-svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 1.5rem 1.5rem 0 0;
}
.fk-svc-card--red::before    { background: var(--fk-red); }
.fk-svc-card--green::before  { background: var(--fk-green); }
.fk-svc-card--amber::before  { background: #D97706; }
.fk-svc-card--blue::before   { background: var(--fk-blue); }

.fk-svc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }

.fk-svc-card h3 {
  font-size: 1.125rem; font-weight: 900; color: var(--fk-dark); margin: 0;
}
.fk-svc-card p {
  font-size: .9375rem; color: #64748B; line-height: 1.65; margin: 0; flex: 1;
}
.fk-svc-link {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .8125rem; font-weight: 800; margin-top: .5rem;
}
.fk-svc-card--red    .fk-svc-link { color: var(--fk-red); }
.fk-svc-card--green  .fk-svc-link { color: var(--fk-green); }
.fk-svc-card--amber  .fk-svc-link { color: #B45309; }
.fk-svc-card--blue   .fk-svc-link { color: var(--fk-blue); }

.fk-svc-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.fk-svc-icon--red   { background: #FEE2E2; color: var(--fk-red); }
.fk-svc-icon--green { background: #DCFCE7; color: var(--fk-green); }
.fk-svc-icon--amber { background: #FEF3C7; color: #D97706; }
.fk-svc-icon--blue  { background: #DBEAFE; color: var(--fk-blue); }

@media (max-width: 640px) {
  .fk-svc-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   MAP SECTION
   ================================================================ */
.fk-map-section {
  background: linear-gradient(160deg, #0A3D1F 0%, #0F7A35 100%);
  padding: 5rem 0;
}

.fk-map-wrap { position: relative; border-radius: 1.5rem; overflow: hidden; }

.fk-map-canvas {
  width: 100%; height: 440px;
  display: block; border-radius: 1.5rem;
  z-index: 1;
}

.fk-map-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  padding: 2rem 1.5rem 1rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  z-index: 2; pointer-events: none;
  border-radius: 0 0 1.5rem 1.5rem;
}
.fk-map-legend {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  font-size: .8125rem; font-weight: 700; color: rgba(255,255,255,.9);
  pointer-events: none;
}
.fk-map-dot {
  display: inline-block; width: .75rem; height: .75rem; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
}
.fk-map-dot--red   { background: var(--fk-red); }
.fk-map-dot--amber { background: #F59E0B; }
.fk-map-dot--green { background: var(--fk-green); }

.fk-map-count {
  font-size: .8125rem; font-weight: 700; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.35); padding: .3rem .7rem; border-radius: .5rem;
  pointer-events: none;
}

/* ================================================================
   RECENT EMERGENCIES
   ================================================================ */
.fk-recent-list { display: flex; flex-direction: column; gap: .875rem; }

.fk-recent-item {
  background: #fff; border: 1px solid var(--fk-border);
  border-left: 4px solid var(--fk-red);
  border-radius: 0 1rem 1rem 0;
  padding: 1rem 1.25rem;
  display: grid; grid-template-columns: 1fr auto; gap: .5rem;
  align-items: start;
}
.fk-recent-item__type { font-weight: 800; font-size: .9375rem; color: var(--fk-red); }
.fk-recent-item__loc  { font-size: .8125rem; color: #64748B; font-weight: 600; margin-top: .15rem; }
.fk-recent-item__meta { font-size: .75rem; color: #94A3B8; font-weight: 600; margin-top: .25rem; }
.fk-recent-item--progress { border-left-color: #3B82F6; }
.fk-recent-item--progress .fk-recent-item__type { color: #1D4ED8; }
.fk-recent-item--resolved { border-left-color: var(--fk-green); }
.fk-recent-item--resolved .fk-recent-item__type { color: var(--fk-green); }

/* Skeleton loader */
.fk-skel {
  height: 5rem; background: #F1F5F9;
  border-radius: 1rem;
  animation: fk-shimmer 1.5s ease-in-out infinite;
}
@keyframes fk-shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

/* ================================================================
   ABOUT / IMPACT
   ================================================================ */
.fk-about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: center;
}

.fk-about__p {
  font-size: 1rem; color: #475569; line-height: 1.75; margin-bottom: 1rem;
}
.fk-about__feats {
  list-style: none; display: flex; flex-direction: column; gap: .625rem;
  margin: 1.5rem 0 2rem;
}
.fk-about__feats li {
  display: flex; align-items: center; gap: .625rem;
  font-size: .9375rem; font-weight: 600; color: #374151;
}

.fk-impact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem;
}
.fk-impact-card {
  background: #fff; border: 1px solid var(--fk-border);
  border-radius: 1.25rem; padding: 1.5rem;
  display: flex; flex-direction: column; gap: .25rem;
  text-align: center;
}
.fk-impact-card--red   { border-color: #FECACA; background: #FFF5F5; }
.fk-impact-card--amber { border-color: #FDE68A; background: #FFFBEB; }
.fk-impact-card--blue  { border-color: #BFDBFE; background: #EFF6FF; }

.fk-impact-num { font-size: 2rem; font-weight: 900; color: var(--fk-dark); line-height: 1; }
.fk-impact-card--red   .fk-impact-num { color: var(--fk-red); }
.fk-impact-card--amber .fk-impact-num { color: #D97706; }
.fk-impact-card--blue  .fk-impact-num { color: var(--fk-blue); }
.fk-impact-lbl  { font-size: .75rem; font-weight: 700; color: #64748B; }

.fk-tech-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.fk-tech-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #F1F5F9; color: #475569;
  font-size: .75rem; font-weight: 700;
  padding: .35rem .8rem; border-radius: .75rem;
  border: 1px solid var(--fk-border);
}

@media (max-width: 900px) {
  .fk-about__grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ================================================================
   CTA BAND
   ================================================================ */
.fk-cta-band {
  background: linear-gradient(135deg, #064E1A 0%, #16A34A 60%, #15803D 100%);
  padding: 5rem 0;
}
.fk-cta-band__inner {
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.fk-cta-band__icon {
  flex-shrink: 0; width: 5rem; height: 5rem;
  background: rgba(255,255,255,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.fk-cta-band__body { flex: 1; min-width: 220px; }
.fk-cta-band__body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: .5rem;
}
.fk-cta-band__body p { font-size: 1rem; color: rgba(255,255,255,.8); }
.fk-cta-band__btns { display: flex; gap: .875rem; flex-wrap: wrap; }

.fk-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .875rem 1.75rem;
  border-radius: .875rem;
  font-size: .875rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; transition: all .2s; border: none; cursor: pointer;
}
.fk-cta-btn--white {
  background: #fff; color: var(--fk-green);
}
.fk-cta-btn--white:hover { background: #F0FDF4; transform: translateY(-1px); }
.fk-cta-btn--ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.fk-cta-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* Outline green variant */
.fk-btn-outline--green { border-color: var(--fk-green); color: var(--fk-green); }
.fk-btn-outline--green:hover { background: #F0FDF4; }

@media (max-width: 768px) {
  .fk-cta-band__inner { flex-direction: column; text-align: center; }
  .fk-cta-band__btns  { justify-content: center; }
  .fk-home-section    { padding: 3.5rem 0; }
}
