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

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  padding-top: 80px; /* pour compenser le menu fixe */
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #7a8e3f;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

header img {
  height: 40px;
}

.contact-btn {
  background-color: white;
  color: #7a8e3f;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.contact-btn:hover {
  background-color: #f0f0f0;
}

/* CONTAINER */
.container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  gap: 20px;
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
  }
}

/* SIDEBAR */
.sidebar {
  flex: 0 0 35%;
  background-color: #f4f4f4;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.profile-header {
  text-align: center;
  margin-bottom: 20px;
}

.profile-photo {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin: 10px auto;
  display: block;
}

.subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

/* CONTENT */
.content {
  flex: 0 0 65%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.section {
  margin-bottom: 25px;
}

h1 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 5px;
}

h2 {
  font-size: 18px;
  color: #7a8e3f;
  border-bottom: 2px solid #7a8e3f;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

h3 {
  font-size: 16px;
  color: #555;
  margin-top: 15px;
}

ul {
  list-style-type: none;
  padding-left: 20px;
}

a {
  color: #7a8e3f;
  text-decoration: none;
}

.date {
  text-align: right;
  margin-right: 30px;
  font-size: 0.9em;
  color: #666;
}

/* FOOTER */
footer {
  background-color: #7a8e3f;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-btn {
    align-self: flex-end;
  }

  .container {
    padding: 10px;
  }

  .sidebar,
  .content {
    padding: 15px;
  }
}
