@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Playfair+Display&display=swap');

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #f7f5f3, #e9e3d4);
  color: #333;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('images/cerisier.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.4;
  z-index: -1;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  color: #5c4d3f;
  margin-bottom: 1rem;
}

p {
  color: #4a403a;
  margin-bottom: 1.5rem;
}

section p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  background-color: rgba(241, 227, 208, 0.95);
  padding: 4rem 1rem;
  text-align: center;
  color: #5c4d3f;
  position: relative;
  z-index: 1;
}

.header-practitioner {
  position: absolute;
  top: 20px;
  left: 20px;
}

.practitioner-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid #fff;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.practitioner-photo:hover {
  transform: scale(1.1);
}

nav ul {
  list-style: none;
  margin: 3em 0;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #5c4d3f;
  font-weight: bold;
  transition: color 0.3s, transform 0.3s;
}

nav a:hover {
  color: #bb6b6b;
  transform: translateY(-3px);
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: -4rem auto 0;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  z-index: 2;
  position: relative;
}

section {
  margin-bottom: 6rem;
  padding: 1.5rem;
  background-color: #fbeff1;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.accordion h2 {
  cursor: pointer;
  background-color: #f7dbdf;
  padding: 1.2rem;
  border-radius: 8px;
  font-size: 1.2rem;
}

.accordion h2:hover {
  background-color: #f3c8cf;
}

.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 1rem;
}

.panel.open {
  max-height: 1000px;
  padding: 1rem;
  background-color: #fff7f8;
  border-radius: 8px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}

footer {
  text-align: center;
  padding: 4rem 1rem 6rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: #5c4d3f;
  position: relative;
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
  .practitioner-photo {
    width: 100px;
    height: 100px;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    margin: 2em 0;
  }

  header {
    padding-top: 6rem;
  }

  .header-practitioner {
    position: static;
    margin-bottom: 1rem;
    text-align: center;
  }

  .header-practitioner img {
    margin: 0 auto;
    display: block;
  }

  main {
    margin-top: 1rem;
    padding: 1rem;
  }

  section {
    margin-bottom: 3rem;
  }
}
