/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d32f2f;
  --primary-dark: #9a0007;
  --secondary-color: #1a1a1a;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #ffffff;
  --bg-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Header */
.header {
  background-color: var(--secondary-color);
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.author-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.back-link {
  color: white;
  text-decoration: none;
  margin-right: 1rem;
  font-weight: normal;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.back-link:hover {
  opacity: 1;
}

/* Main container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Behind uniform section */
.behind-uniform {
  margin-bottom: 4rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.quote {
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  background-color: var(--bg-gray);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  border-radius: 4px;
}

.book-cover {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
}

.book-cover:hover {
  transform: scale(1.02);
}

/* Feature sections */
.feature {
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  background-color: var(--bg-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-alt {
  background-color: var(--bg-gray);
}

.feature-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.feature-text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-color);
}

.quote-center {
  border-left: 4px solid var(--primary-color);
  padding: 2rem;
  background-color: var(--bg-gray);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  color: var(--text-color);
  border-radius: 4px;
  max-width: 800px;
  margin: 0 auto;
}

/* Excerpt section */
.excerpt {
  padding: 4rem 2rem;
  background-color: var(--bg-gray);
  border-radius: 8px;
  margin-bottom: 3rem;
}

.excerpt-quote {
  font-size: 1.2rem;
  line-height: 1.9;
  font-style: italic;
  color: var(--text-color);
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.excerpt-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
}

.excerpt-info {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Stats section */
.stats {
  padding: 3rem 2rem;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.stats .section-title {
  color: white;
  text-align: center;
  margin-bottom: 2rem;
}

.stats-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.3s;
}

.stat-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.stat-item strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  border-radius: 8px;
  margin-bottom: 3rem;
}

.cta-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  text-decoration: none;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.cta-details {
  margin-top: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Author section */
.author {
  padding: 3rem 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.author-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-contact,
.footer-link,
.footer-copyright {
  margin: 0.5rem 0;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer a:hover {
  opacity: 0.8;
}

/* Order page styles */
.order-page {
  max-width: 900px;
  margin: 2rem auto;
}

.order-section {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.order-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--bg-gray);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.order-cover {
  width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.order-details h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.order-author {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.order-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.order-shipping {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Preorder notice */
.preorder-notice {
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.preorder-notice h3 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.preorder-notice p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Form styles */
.order-form h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.order-total {
  padding: 1.5rem;
  background-color: var(--bg-gray);
  border-radius: 4px;
  margin: 2rem 0;
  text-align: center;
}

.order-total p {
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.submit-button {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.order-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .image-content {
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .feature-title {
    font-size: 1.5rem;
  }

  .order-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .order-cover {
    margin: 0 auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  main {
    padding: 1rem;
  }

  .hero,
  .feature,
  .excerpt,
  .stats,
  .cta,
  .author {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
}
