@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f8f7f4;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #555;
  --border: #ddd;
  --accent: #2a5caa;
  --accent-hover: #1a3f7a;
  --font: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

/* --- Animation de pulsation douce --- */

/* Définition de l'animation */
@keyframes pulseBackground {
  0% {
    /* Couleur de fond par défaut de tes éléments (transparente ou sombre) */
    background-color: transparent;
  }

  50% {
    /* Rouge pastel très doux et légèrement transparent pour ne pas masquer le texte */
    background-color: rgba(255, 242, 0, 0.5);
    /* Tu peux ajuster le 0.15 pour plus ou moins d'opacité */
  }

  100% {
    background-color: transparent;
  }
}



/* Application de l'animation sur la classe spécifique */
.project-item.project-pulse {
  /* On applique l'animation 'pulseBackground' */
  /* Durée : 4 secondes pour que ce soit très lent et apaisant */
  /* Timing : ease-in-out pour des transitions fluides */
  /* Répétition : infinite */
  animation: pulseBackground 1s ease-in-out infinite;

  /* Optionnel : Une très légère lueur pastel assortie */
  box-shadow: 0 0 10px rgba(255, 182, 193, 0.05);

  /* Pour s'assurer que l'animation de fond ne masque pas la bordure par défaut */
  z-index: 1;
}

/* On garde l'effet au survol par défaut, ou on l'accentue légèrement */
.project-item.project-pulse:hover {
  /* Au survol, on peut stopper l'animation et figer la couleur pastel */
  animation: none;
  background-color: rgba(255, 182, 193, 0.25) !important;
  box-shadow: 0 0 15px rgba(255, 182, 193, 0.1);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

/* NAV */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-logo {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.lang-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: var(--accent);
  background: rgba(42, 92, 170, 0.05);
}

/* PAGE */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* HERO */
.hero {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.8;
}

.hero a {
  color: var(--accent);
  text-decoration: underline;
}

/* SECTION TITLE */
.section-title {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* PROJECT LIST */
.project-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s;
}

.project-item:first-child {
  border-top: 1px solid var(--border);
}

.project-item:hover .project-name {
  color: var(--accent);
  text-decoration: underline;
}

.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: #aaa;
  width: 24px;
  flex-shrink: 0;
}

.project-name {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
}

.project-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-light);
}

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 100%;
  border-radius: 4px;
  display: block;
  border: 1px solid var(--border);
}

.about-text h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.8;
}

.contact-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-block h3 {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.contact-block p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.contact-block a {
  color: var(--accent);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.btn-cv {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  background: var(--white);
  transition: border-color 0.15s, color 0.15s;
}

.btn-cv:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* PROJECT PAGE */
.project-page h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--accent);
}

.project-page-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  margin-top: 28px;
}

.project-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
  max-width: 500px;
}

.project-text h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

.project-text a {
  color: var(--accent);
  text-decoration: underline;
}

.project-text h3:first-child {
  margin-top: 0;
}

.project-img-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-img-block img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* inlined images for pages where images are between text */
.inline-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 20px 0;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #aaa;
  background: var(--white);
}

footer a {
  color: #aaa;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 680px) {
  nav {
    padding: 0 16px;
  }

  .page {
    padding: 32px 16px 60px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 140px;
  }

  .project-page-body {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 20px 16px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}