/* Profile photo on the Home page */
.profile-photo {
  border-radius: 50%;
  width: 160px;
  height: 160px;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.75rem auto;
}

/* Hero section on the Home page */
.hero {
  text-align: center;
  padding: 1rem 1rem 1.25rem 1rem;
  border-radius: 8px;
}
.hero h1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.hero p {
  margin-top: 0;
  margin-bottom: 0.25rem;
}
.hero + hr {
  margin-top: 0.5rem;
}

/* About Me section on the Home page */
.about-section {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.about-text {
  flex: 1;
}
.about-image {
  flex: 0 0 auto;
}
.about-image img {
  width: 400px;
  border-radius: 8px;
  display: block;
}
@media (max-width: 600px) {
  .about-section {
    flex-direction: column;
  }
  .about-image img {
    width: 100%;
  }
}

/* Timeline on the Experience page */
.timeline {
  padding-left: 1.75rem;
  border-left: 3px solid var(--md-primary-fg-color--light);
}
.timeline-entry {
  position: relative;
  margin-bottom: 1.75rem;
}
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2.2rem;
  top: 0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background-color: var(--md-primary-fg-color);
  border: 2px solid var(--md-default-bg-color);
}
.timeline-entry h3 {
  margin-top: 0;
}

/* ============================================
   HOVER DISCRET — toutes les cartes du site
   Bordure colorée douce, sans fond criard
   ============================================ */

/* Cartes MkDocs Material natives (.grid.cards) */
.md-typeset .grid.cards > ul > li {
  transition: border-color 0.25s ease, transform 0.2s ease;
}
.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-primary-fg-color--light) !important;
  transform: translateY(-2px);
  box-shadow: none !important;
}

/* Project cards */
.project-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 0.25s ease, transform 0.2s ease;
}
.project-card:hover {
  border-color: var(--md-primary-fg-color--light);
  transform: translateY(-2px);
  box-shadow: none;
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* Blog preview */
.blog-preview ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.blog-preview li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: border-color 0.25s ease;
}
.blog-preview li:hover {
  border-bottom-color: var(--md-primary-fg-color--light);
}
.blog-preview li:last-child {
  border-bottom: none;
}

/* ---- IMAGE ALIGNMENT ---- */
.img-center {
  display: block;
  margin: 1.5rem auto;
}
.img-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
}
.img-left {
  float: left;
  margin: 0 1.5rem 1rem 0;
}
.img-clear {
  clear: both;
}