/* Structure générale */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  background: #f0f2f5;
  color: #1f2d3d;
}

/* Conteneur principal */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: #4d5c6d;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 2.5em;
}

h2 {
  color: #1b3a57;
  margin-top: 40px;
  text-align: center;
}

/* Section */
.section {
  flex: 1;
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #333f4f;
  color: white;
}

/* Navigation */
nav {
  background-color: #d9e1e8;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px 0;
}

nav a {
  font-weight: bold;
  color: #1b3a57;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a.active {
  background-color: #b0c4d1;
}

/* Email */
.email-link {
  color: #1b3a57;
  text-decoration: none;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #d9e1e8;
  transition: background-color 0.3s ease;
}

.email-link:hover {
  background-color: #b0c4d1;
}

/* Projets */
.project {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.gallery img {
  width: 45%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  margin-right: 10px;
  padding: 8px 14px;
  background-color: #2874a6;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #1b3a57;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Projet */
.project {
  width: 900px;
  margin: 20px auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.project h3 {
  margin-top: 0;
  font-size: 1.8em;
  color: #1b3a57;
  text-align: center;
}

.project p {
  text-align: justify;
  margin-top: 10px;
}

/* Galerie d'images */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.gallery img {
  width: 45%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.project-link {
  display: inline-block;
  margin-top: 10px;
  margin-right: 10px;
  padding: 8px 14px;
  background-color: #2874a6;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.project-link:hover {
  background-color: #1b3a57;
}

.project h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  font-size: 1.8em;
  margin-top: 0;
  color: #1b3a57;
}


@media screen and (max-width: 1000px) {
  .project {
    width: 100%;
    max-width: 90%;
  }
}
