/* Typo globale */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #111;
  background-color: #fafafa;
}

/* Conteneur principal */
.page {
  max-width: 800px;
  margin: 40px auto 60px auto;
  padding: 0 16px;
}

/* Header */
.header {
  margin-bottom: 32px;
}

.name {
  font-size: 2.2rem;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.subtitle {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  color: #555;
}

.links {
  font-size: 0.95rem;
}

.links a {
  color: #0055cc;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.section h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* Timeline (Updates) */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline .date {
  min-width: 90px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}

.timeline .text {
  font-size: 0.95rem;
}

/* Projects */
.project {
  margin-bottom: 18px;
}

.project h3 {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
}

.project .meta {
  margin: 0 0 6px 0;
  font-size: 0.85rem;
  color: #666;
}

.project p {
  margin: 0 0 6px 0;
}

.project-links {
  list-style: none;
  padding: 0;
  margin: 0 0 4px 0;
}

.project-links li {
  margin-bottom: 2px;
}

.project-links a {
  color: #0055cc;
  text-decoration: none;
  font-size: 0.95rem;
}

.project-links a:hover {
  text-decoration: underline;
}

/* Lists simples (Presentations) */
.list {
  list-style: disc;
  padding-left: 18px;
}

/* YouTube videos */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #444;
}

/* Footer */
.footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
  color: #777;
}

/* Légère adaptation mobile */
@media (max-width: 600px) {
  .page {
    margin-top: 24px;
  }

  .name {
    font-size: 1.8rem;
  }

  .timeline {
    font-size: 0.9rem;
  }
}
