/* style.css */

/* Réinitialisation rapide */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

header, nav, footer {
  text-align: center;
  padding: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: #333;
}

h1, h2, h3 {
  margin-bottom: 1rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.intro p {
  margin-bottom: 1rem;
}

.grid-projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.project-tile {
  text-align: center;
  border: 1px solid #eee;
  padding: 0.5rem;
}

.project-tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.5rem;
}

body.projects .project-tile img {
  filter: grayscale(100%);
}

.project-tile p {
  margin: 0;
}

.project-detail img {
  max-width: 100%;
  display: block;
  margin: 0 auto 1rem;
}

.figcaption {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.site-logo {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0.5rem auto;
}

footer p {
  font-size: 0.8rem;
  color: #666;
}


/* ———————————————— */
/* STYLE NEUTRALISÉ POUR LIENS EMAILS */
/* ———————————————— */

a.neutral-link {
  all: unset;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a.neutral-link:link,
a.neutral-link:visited,
a.neutral-link:hover,
a.neutral-link:active {
  all: unset;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
