@import url('/static/design/portfolio_main_ressources.css');

/* ---------- Texte générique ---------- */
.p,
.p.lead {
  font-weight: 400;
}

.card-text {
  text-align: justify;
  text-justify: inter-word;
  font-size: 1.15rem;
  font-weight: 400;
}

/* =====================================================================
   HERO : Photo à gauche, H1/H2 à droite, centrés entre eux et horizontalement
   ===================================================================== */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  text-align: left;
  padding-top: clamp(2rem, 2vw, 2.5rem);
  padding-bottom: clamp(2rem, 2vw, 2.5rem);
  background-size: cover;
  background-position: center 65%;
  margin-bottom: 1.5rem;                 /* espace vide sous la bannière */
  border-bottom: 1px solid transparent;  /* empêche le margin-collapsing */
  background-clip: padding-box;
}

.header-container .profile-image {
  position: static;
  bottom: auto;
  left: auto;
  transform: none;
  width: 200px;
  height: 240px;
  border: 3px solid #fff;
  border-radius: 10%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  flex: 0 0 auto;
}

.header-container .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.header-container .header-content {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.header-container .header-content h1 {
  margin: 0 0 .25rem 0;
  font-weight: 800;
  color: var(--bs-gray-dark);
}

.header-container .header-content h2 {
  margin: 0;
  font-weight: 500;
  color: var(--bs-secondary-bg);
}

/* Mobile : empiler et centrer */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  .header-container .header-content {
    text-align: center;
  }
}

/* =====================================================================
   Introduction
   ===================================================================== */
#introduction .lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  line-height: 2.0rem;
  color: var(--bs-body-color);
  text-align: justify;
  text-justify: inter-word;
}

/* =====================================================================
   Cards (coins arrondis + hover/focus doux)
   ===================================================================== */
.card {
  border-radius: .8rem;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12);
}

.card:focus-within {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.card .card-header {
  border-top-left-radius: .8rem;
  border-top-right-radius: .8rem;
}

.card .card-img-top,
.card .ratio > iframe,
.card .ratio > img {
  border-top-left-radius: .8rem;
  border-top-right-radius: .8rem;
}

/* =====================================================================
   Séparateurs doux entre sections (optionnel)
   ===================================================================== */
.container.mt-5 {
  position: relative;
}

.container.mt-5::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,.08), transparent);
}

/* =====================================================================
   Liens bleus sans soulignement (conserve la teinte du thème)
   ===================================================================== */
a,
.container a:not(.btn),
.card a:not(.btn) {
  color: var(--bs-info);
  text-decoration: none;
  border-bottom: none;
}
