/* ============================================
   ABOUT PAGE — Full CSS Override
   ============================================ */

/* --- Fix scroll conflict from layout.css --- */
html, body.about-page {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100vh;
  background-color: var(--background_color) !important;
}

/* --- Wrapper principal --- */
.about-wrapper {
  position: relative;
  z-index: 10;
  max-width: 950px;
  margin: 0 auto;
  padding: 60px 20px 160px 20px;
}

/* ============================================
   PROFILE CARD
   ============================================ */
.profile-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--background_container_color);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--second_color);
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
}

.profile-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--pink-base);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-card h1 {
  color: var(--text_color);
  font-size: 2rem;
  margin: 0 0 8px 0;
}

.profile-card .subtitle {
  color: var(--pink-base);
  font-size: 1rem;
  margin: 0 0 16px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.profile-card .description {
  color: #ccc;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0 0 16px 0;
}

.profile-card .citation {
  border-left: 3px solid var(--pink-base);
  padding-left: 16px;
  font-style: italic;
  color: #aaa;
  margin: 0;
  font-size: 0.9rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  color: var(--pink-base);
  font-size: 1.4rem;
  margin-top: 60px;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--second_color), transparent);
}

/* ============================================
   CV ENTRIES (Education & Experience)
   ============================================ */
.cv-entry {
  display: flex;
  gap: 25px;
  margin: 24px 0;
  padding: 25px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  border-left: 4px solid var(--pink-base);
  transition: transform 0.3s ease, background 0.3s ease;
}

.cv-entry:hover {
  transform: translateX(10px);
  background: rgba(255, 105, 180, 0.06);
}

.entry-logo {
  width: 60px;
  height: 60px;
  background: white;
  padding: 8px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  align-self: flex-start;
}

.entry-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-date {
  font-size: 0.78rem;
  color: var(--pink-base);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.entry-info h3 {
  color: var(--text_color);
  margin: 4px 0 2px 0;
  font-size: 1.05rem;
}

.entry-info h4 {
  color: #aaa;
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  font-weight: normal;
}

.entry-info .details {
  color: #bbb;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   HOBBIES GRID (Beyond Engineering)
   ============================================ */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.hobby-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 24px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: background 0.35s ease, transform 0.35s ease;
  cursor: default;
}

.hobby-box p {
  color: var(--text_color);
  margin: 0;
  font-size: 0.9rem;
}

.hobby-box:hover {
  background: var(--pink-base);
  transform: translateY(-8px);
}

.hobby-box:hover p {
  color: #0b0b0b !important;
  font-weight: bold;
}

.hobby-box img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 6px var(--pink-base));
}

.hobby-box:hover img {
  filter: brightness(0);
}

/* ============================================
   SKILLS — fond rosé, texte noir lisible
   ============================================ */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* Les hobby-box dans la section Skills ont un fond rose fixe */
.skills-section .hobby-box {
  background: var(--pink-base) !important;
  border: none;
}

.skills-section .hobby-box p,
.skills-section .hobby-box strong {
  color: #0b0b0b !important;
}

.skills-section .hobby-box:hover {
  background: #e0559e !important;
  transform: translateY(-8px);
}

.skills-section .hobby-box:hover p {
  color: #0b0b0b !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-card img {
    width: 130px;
    height: 130px;
  }

  .cv-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .hobbies-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}