/*
  Global styles for Atelier de l'Avent

  This stylesheet defines a simple responsive layout with festive colours
  inspired by the holiday season. Sections are spaced generously and
  typography is kept clean and legible. Mobile layouts collapse the
  navigation into a stack and adjust font sizes for smaller screens.

  Colour palette:
    --primary-color: forest green used for accents and highlights
    --secondary-color: deep red used for call‑to‑action elements
    --light-bg: pale beige to echo the background of the logo
    --dark-bg: almost black for footer contrast
    --text-color: dark grey for readability
*/

:root {
  --primary-color: #0a5c3a;
  --secondary-color: #b12025;
  --light-bg: #fdf9f3;
  --dark-bg: #222;
  --text-color: #333;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wrapper img {
  height: 40px;
  width: 40px;
}

.site-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

nav li a {
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

nav li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

nav li a:hover::after {
  width: 100%;
}

.btn-primary {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-color);
}

main {
  margin-top: 80px; /* space for fixed header */
}

/* Hero Section */
.hero {
  min-height: 90vh;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Section base styling */
section {
  padding: 60px 20px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

/* Features grid */
.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.feature h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.carousel img {
  width: 100%;
  display: none;
}

.carousel img.active {
  display: block;
}

.carousel-section {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
}

.carousel-section h2 {
  margin-bottom: 30px;
  font-size: 2rem;
}

/* Benefits list */
.benefits ul {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.benefits li {
  background: #fff;
  border-left: 5px solid var(--secondary-color);
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.for-whom, .kit-open, .pre-black, .testimonials, .faq-short {
  max-width: 1000px;
  margin: 0 auto;
}

.for-whom p {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Kit open section */
.kit-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.kit-wrapper img {
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kit-text {
  flex: 1;
  min-width: 250px;
}

.kit-text p {
  font-size: 1rem;
  line-height: 1.5;
}

.pre-black {
  text-align: center;
}

.pre-black p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.testimonials .testimonial {
  background: #fff;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid var(--primary-color);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  font-style: italic;
}

/* FAQ */
.faq-short details {
  margin-bottom: 15px;
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.faq-short summary {
  font-weight: bold;
  cursor: pointer;
}

/* Details page list */
.details-list {
  margin: 20px 0 20px 20px;
  padding-left: 0;
}

.details-list li {
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: #ccc;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

footer p + p {
  margin-top: 8px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  nav ul {
    gap: 15px;
  }
  .benefits ul {
    grid-template-columns: 1fr;
  }
  .kit-wrapper {
    flex-direction: column;
  }
}