/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7f6;
  color: #1f2937;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 2600;
  background: linear-gradient(90deg, #d39678 0%, #44290f 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.logo {
  margin: 0;
  font-weight: 700 !important;
  font-size: 18px;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
}

.logo-image {
  max-width: 150px;
  height: auto;
}

.logo-text {
  font-size: 18px;
  color: #ffffff;
}

/* Marquee Section */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: #e47f0c;
  padding: 0.5rem 0;
  margin-bottom: -1rem;
  margin-top: -30px !important;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

@media (max-width: 768px) {
  .marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 10s linear infinite !important;
  }
}

.marquee-content span {
  font-size: 2rem;
  color: #ffffff;
  margin-right: 1rem;
  font-weight: 550;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #ffffff;
  margin-top: 64px; /* To prevent content from being hidden under fixed header */
}

.section-title {
  font-size: 2rem;
  color: #FF8C00;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 1rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto;
}

/* Book Selection */
.book-selection {
  max-width: 600px;
  margin: 1rem auto;
  box-shadow: 0 0 0 3px rgb(22, 102, 2);
  padding: 0 1rem;
  bottom: 20px;
  border-radius: 25px;
  margin-bottom: -50px;
  position: relative;
}

/* Responsive Design for Mobile */
@media (max-width: 640px) {
  .book-selection {
    box-shadow: 0 0 0 3px rgb(22, 102, 2); /* Réduit l'épaisseur du box-shadow pour mobile */
    max-width: 310px;
  }
}

.book-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1rem;
}

.book-title {
  font-size: 1.5rem;
  color: #2E7D32;
  text-align: center;
  margin: 0;
  cursor: pointer;
}

.book-toggle {
  font-size: 1.5rem;
  color: #2E7D32;
  margin-left: 1rem;
  cursor: pointer;
}

.book-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.book-option {
  background-color: #ffffff;
  border: 2px solid #bbbab8;
  border-radius: 10px;
  padding: 1rem;
  width: 100%;
  max-width: 350px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.book-option:hover {
  border-color: #FF8C00;
}

.book-option input {
  margin-right: 0.5rem;
}

.book-label {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-label h3 {
  font-size: 1.2rem;
  color: #2E7D32;
  margin: 0 0 0.5rem;
  text-align: center;
}

.book-cover {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-label p {
  font-size: 1rem;
  color: #4b5563;
  margin: 0;
  text-align: center;
}

/* Contact Section */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.contact-intro {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 0.7rem;
}

.contact-form-container {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  border: 2px solid #bbbab8;
  border-radius: 25px;
  padding: 0.75rem;
  font-size: 1rem;
  color: #1f2937;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #FF8C00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  background-color: #FF8C00;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  border: 2px solid #b3a799;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.form-submit:hover {
  background-color: #473824;
}

.success-message {
  background-color: #2E7D32;
  color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  margin-top: 1rem;
}

.success-message.hidden {
  opacity: 0;
}

/* FAQ Section */
.faq-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.faq-item {
  background-color: #ffffff;
  border: 2px solid #bbbab8;
  border-radius: 25px;
  padding: 1rem;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  font-size: 1.2rem;
  color: #2E7D32;
  margin: 0;
}

.faq-toggle {
  font-size: 1.5rem;
  color: #2E7D32;
}

.faq-answer {
  margin-top: 1rem;
  font-size: 1rem;
  color: #4b5563;
}

/* Policy Pages */
.policy-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  margin-top: 64px; /* To account for fixed header */
}

.policy-section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.policy-content {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
}

.policy-content h2 {
  font-size: 1.5rem;
  color: #2E7D32;
  margin: 1.5rem 0 0.5rem;
}

.policy-content p {
  margin: 0.5rem 0;
}

.policy-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-content a {
  color: #1E90FF;
  text-decoration: none;
}

.policy-content a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 1rem;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-column p {
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.footer-links a {
  color: #FF8C00;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero-section {
    padding: 1.5rem 0.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .book-title-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .book-title {
    font-size: 1rem;
    text-align: left;
    flex-grow: 1;
  }

  .book-toggle {
    position: static;
    margin-left: 0.5rem;
  }

  .book-options {
    flex-direction: column;
  }

  .book-option {
    max-width: 90%;
  }

  .book-cover {
    max-width: 120px;
  }

  .contact-section {
    padding: 1.5rem 0.5rem;
  }

  .contact-form-container {
    padding: 1rem;
  }

  .form-input,
  .form-textarea {
    font-size: 0.875rem;
  }

  .form-submit {
    max-width: 100%;
  }

  .success-message {
    max-width: 90%;
  }

  .faq-container {
    grid-template-columns: 1fr;
  }

  .policy-page {
    padding: 1.5rem 0.5rem;
  }

  .policy-section {
    padding: 1rem;
  }

  .policy-content h2 {
    font-size: 1.3rem;
  }

  .policy-content {
    font-size: 0.9rem;
  }

  .marquee-content span {
    font-size: 1.5rem;
    margin-right: 1.3rem;
  }
}

/* Back to Home Button */
.back-to-home {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #FF8C00;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}

.back-to-home:hover {
  background-color: #473824;
  transform: translateY(-2px);
}

.home-icon {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

@media (max-width: 640px) {
  .back-to-home {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    bottom: 10px;
    right: 15px;
  }

  .home-icon {
    width: 16px;
    height: 16px;
  }
}