/* ========================================
   CARTES OVERLAY CYBERSÉCURITÉ
   Préfixe: cov-
   ======================================== */

/* Grid */
.cov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Card container */
.cov-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.1);
}

/* ── IMAGE BANNER — en haut de la carte ── */
.cov-card-banner {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.cov-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dégradé fondu en bas du bandeau vers le fond de la carte */
.cov-card-banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 24, 0.15) 0%,
    rgba(6, 12, 24, 0.4) 50%,
    rgba(6, 12, 24, 0.92) 85%,
    rgba(6, 12, 24, 0.92) 100%
  );
  pointer-events: none;
}

/* Top accent line — sur le bandeau */
.cov-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.6), transparent 50%);
  z-index: 2;
}

/* Tag badge sur l'image */
.cov-banner-tag {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 700;
  z-index: 2;
}

/* Code + Status sur l'image */
.cov-banner-header {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

/* ── CONTENU sous l'image ── */
.cov-card-body {
  padding: 20px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cov-code {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(0, 229, 255, 0.3);
}

.cov-status {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cov-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 1px;
}

.cov-status-text {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
}

/* Title block */
.cov-card-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.cov-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cov-card-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.cov-card-tag {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 2.5px;
  font-weight: 700;
}

/* Description */
.cov-card-desc {
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 18px;
}

/* Features grid */
.cov-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  flex: 1;
}

.cov-feat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.cov-feat svg {
  flex-shrink: 0;
}

/* Ideal for */
.cov-ideal {
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 8px;
  margin-bottom: 18px;
}

.cov-ideal-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.cov-ideal-text {
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* CTA button */
.cov-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 0;
  width: 100%;
  background: #0dc4e7 !important;
  border: 1px solid rgba(13, 196, 231, 0.5) !important;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000 !important;
  transition: all 0.3s ease;
}

.cov-cta:hover {
  background: #0bb3d4 !important;
  border-color: rgba(13, 196, 231, 0.7) !important;
  filter: none;
}

/* Scroll reveal animation */
.cov-reveal {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cov-reveal.visible {
  opacity: 1;
  transform: scale(1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cov-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cov-card-banner {
    height: 150px;
  }

  .cov-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cov-card-body {
    padding: 16px 18px 24px;
  }

  .cov-card-banner {
    height: 130px;
  }

  .cov-card-title {
    font-size: 19px;
  }

  .cov-cta {
    font-size: 9px;
  }
}

/* FIX-CYB-8 : cov-status centré en haut de carte — desktop */
.cov-card {
  position: relative !important;
}

.cov-card .cov-status {
  position: absolute !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2 !important;
  white-space: nowrap !important;
}

/* FIX-CYB-9 + FIX-INF-10 : Masquer cov-status — mobile */
@media (max-width: 768px) {
  .cov-status {
    display: none !important;
  }
}
