/*
 * Stylesheet for Les Vitrines Digitales
 *
 * This stylesheet defines a modern, clean aesthetic inspired by 2025 web
 * design trends. The palette is built around Digital Lavender and Blue Nova,
 * two soothing hues recommended in current web design color trend reports.
 * Digital Lavender (#E6E6FA) and Blue Nova (#5B6D92) provide an elegant
 * foundation【831582325768222†L64-L83】【487241048412866†L35-L37】, while a warm accent color creates
 * contrast for call‑to‑action elements.
 */

/* CSS Variables for easy theming */
:root {
  --color-primary: #e6e6fa; /* digital lavender */
  --color-secondary: #5b6d92; /* blue nova */
  --color-accent: #f5c26b; /* soft golden accent */
  --color-neutral: #f7f7fa; /* light neutral background */
  --color-text-dark: #2f2d3a; /* dark text for contrast */

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1200px;
  --transition-fast: 0.3s ease;
}

/* Reset & base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: #ffffff;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  margin-bottom: 0.5em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 600;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
h4 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
p {
  margin-bottom: 1rem;
  color: #4d4c5c;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}
.logo:hover {
  color: var(--color-accent);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav a {
  font-size: 1rem;
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 500;
  transition: var(--transition-fast);
}
nav a:hover {
  color: var(--color-accent);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 90vh;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}
.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(230, 230, 250, 0.85),
    rgba(91, 109, 146, 0.85)
  );
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem 1rem;
}
.hero-content h1 {
  color: #ffffff;
  font-size: 2.7rem;
  line-height: 1.2;
}
.hero-content p {
  color: #f0f0f8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-primary {
  background-color: var(--color-accent);
  color: #2f2d3a;
}
.btn-primary:hover {
  background-color: #e5b85a;
}

/* Section base styles */
section {
  padding: 4rem 0;
}
section:nth-of-type(even) {
  background-color: var(--color-neutral);
}

/* About Section */
.about-section .about-content {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  align-items: center;
}
.about-section .about-text {
  flex: 1;
}
.about-section .about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Services Section */
.services-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-secondary);
}
.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.service-card i {
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}
.service-card p {
  color: #5f5e6a;
}

/* Benefits Section */
.benefits-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.benefits-list .icon {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 50%;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.benefits-list h4 {
  margin-bottom: 0.25rem;
  color: var(--color-secondary);
}
.benefits-list p {
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  background-color: var(--color-neutral);
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.contact-section p {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-form label {
  font-weight: 500;
  color: var(--color-secondary);
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1px solid #d3d3e0;
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(91, 109, 146, 0.2);
}

/* Footer */
.footer {
  background-color: #f2f2f7;
  color: #6b6a7a;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media screen and (min-width: 768px) {
  .about-section .about-content {
    flex-direction: row;
    align-items: center;
  }
  .about-section .about-text {
    flex: 1;
    padding-right: 2rem;
  }
  .about-section .about-image {
    flex: 1;
  }
  .hero-content h1 {
    font-size: 3.2rem;
  }
  .hero-section {
    height: 100vh;
  }
}

@media screen and (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  .hero-content h1 {
    font-size: 2.3rem;
  }
  nav ul {
    gap: 1rem;
  }
  .nav-container {
    padding: 0.5rem 0.5rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .benefits-list {
    align-items: flex-start;
  }
}