/* =====================================================
   Accueil — Hero
   ===================================================== */

/* ── Bannière fond industriel ── */
.hero-banner {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: -80px; /* la carte vient chevaucher la bannière */
  background-image: url('../medias/Accueil/fond_accueil.webp');
  background-size: cover;
  background-position: center 40%;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  /* dégradé : transparent en haut → couleur de la carte en bas pour fondu parfait */
  background: linear-gradient(
    to bottom,
    rgba(7, 16, 38, 0.45) 0%,
    rgba(7, 24, 51, 0.82) 70%,
    #0f1b2b 100%
  );
}

/* ── Carte hero ── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 32px;
  /* animation d'entrée douce */
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Photo portrait ── */
.img-id {
  flex-shrink: 0;
}

.img-id img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.7);
  display: block;
}

/* ── Texte ── */
.intro {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intro-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.intro h1 {
  margin: 0;
  font-size: clamp(22px, 3.8vw, 38px);
  line-height: 1.1;
  font-weight: 800;
}

/* ── Tags pills ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: var(--accent);
}

/* ── Description ── */
.intro .lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  text-align: justify;
}

/* ── Bouton CTA ── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #071026;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 16px rgba(125, 211, 252, 0.2);
}

.cta:hover {
  background: #a5e8ff;
  transform: translateX(3px);
  box-shadow: 0 6px 22px rgba(125, 211, 252, 0.35);
}

.cta svg {
  transition: transform 0.15s ease;
}

.cta:hover svg {
  transform: translateX(3px);
}


/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 640px) {
  .hero-banner {
    height: 160px;
    margin-bottom: -60px;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .img-id img {
    width: 120px;
    height: 168px;
  }

  .intro {
    align-items: center;
  }

  .tags {
    justify-content: center;
  }

  .intro .lead {
    text-align: center;
  }

  .cta {
    align-self: center;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .hero-banner {
    height: 180px;
  }

  .img-id img {
    width: 140px;
    height: 196px;
  }
}