/* === Variables & Reset === */
:root {
  --color-bg: #0a0f2c;
  --color-bg-light: #111842;
  --color-bg-card: #161d4a;
  --color-gold: #d4af37;
  --color-gold-light: #f5e6a3;
  --color-text: #e8e4f0;
  --color-text-muted: #a9a3b8;
  --color-white: #ffffff;
  --color-purple: #2d1b69;
  --color-purple-soft: #1e1450;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', 'Times New Roman', serif;
  --max-width: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-gold-light);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Boutons === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), #b8962e);
  color: var(--color-bg);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
  color: var(--color-bg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
  padding: 10px 28px;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 15, 44, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold);
}

.logo:hover {
  color: var(--color-gold-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-gold);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-purple-soft) 50%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  background: var(--color-gold-light);
  border-radius: 50%;
  animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--color-white);
}

.hero-accent {
  color: var(--color-gold-light);
  font-style: italic;
  font-weight: 400;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-illustration {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 350px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.star {
  animation: twinkle 2s ease-in-out infinite alternate;
}

.star-1 { animation-delay: 0s; }
.star-2 { animation-delay: 0.5s; }
.star-3 { animation-delay: 1s; }
.star-4 { animation-delay: 1.5s; }
.star-5 { animation-delay: 0.3s; }
.star-6 { animation-delay: 0.8s; }
.star-7 { animation-delay: 1.2s; }

/* === Sections === */
.section {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-white);
  margin-bottom: 20px;
}

.section-title.centered {
  text-align: center;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.section-intro.centered {
  text-align: center;
}

/* === À Propos === */
.section-about {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-illustration {
  display: flex;
  justify-content: center;
}

.about-svg {
  width: 250px;
  height: 250px;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.about-content strong {
  color: var(--color-gold-light);
}

/* === Contes === */
.section-contes {
  background: var(--color-bg-light);
}

.contes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

.conte-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.conte-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.conte-card.featured {
  border-color: var(--color-gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.conte-badge {
  position: absolute;
  top: 16px;
  right: -30px;
  background: var(--color-gold);
  color: var(--color-bg);
  padding: 4px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(45deg);
}

.conte-card-header {
  margin-bottom: 20px;
}

.conte-icon {
  width: 70px;
  height: 70px;
}

.conte-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 14px;
}

.conte-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
  flex-grow: 1;
}

.conte-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  opacity: 0.7;
}

.conte-price {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 20px;
}

.conte-card .btn-secondary {
  width: 100%;
}

/* === Pourquoi === */
.section-why {
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.why-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: 16px;
  background: var(--color-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: transform 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
}

.why-icon {
  margin-bottom: 24px;
}

.why-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 14px;
}

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

/* === Témoignages === */
.section-testimonials {
  background: var(--color-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial {
  background: var(--color-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 16px;
  padding: 36px 30px;
  position: relative;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial p {
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial footer strong {
  color: var(--color-gold);
  font-size: 0.95rem;
}

.testimonial footer span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* === Contact === */
.section-contact {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-purple-soft) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--color-gold);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.form-group select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.form-group select option {
  background: var(--color-bg-card);
  color: var(--color-text);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-item svg {
  flex-shrink: 0;
}

.contact-form .btn-primary {
  align-self: flex-start;
}

/* === Ateliers === */
.section-ateliers {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
}

/* === Événements === */
.section-evenements {
  background: var(--color-bg-light);
}

.evenement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.evenement-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 40px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.evenement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.12);
}

.evenement-year {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}

.evenement-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 14px;
}

.evenement-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* === Hero buttons === */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* === Footer === */
.footer {
  background: var(--color-bg);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--color-gold);
  font-weight: 700;
}

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 12px;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-family: var(--font-title);
  color: var(--color-white);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-links li {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 15, 44, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero-illustration {
    display: none;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-illustration {
    order: -1;
  }

  .about-svg {
    width: 180px;
    height: 180px;
  }

  .contes-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .evenement-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

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

  .section {
    padding: 60px 0;
  }

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

  .conte-card {
    padding: 24px 20px;
  }
}
