/*
 * Global Stylesheet for Car Wash Multi-Page Website
 *
 * This file defines the core visual language used across every page of the
 * site. Colours, typography, layout helpers and component styles live here.
 * The design takes inspiration from the original single‑page layout while
 * reimagining it for a modern, responsive multi‑page experience. Colours
 * favour crisp blues and warm highlights to evoke water and cleanliness.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f9fc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: #072a5d;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  max-width: 800px;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Colour palette variables */
:root {
  --primary-color: #0073e6;        /* ocean blue for links and accents */
  --secondary-color: #fbb040;      /* warm amber accent */
  --success-color: #28a745;        /* vibrant green for CTAs */
  --light-bg: #f7f9fc;             /* page background */
  --dark-bg: #0a2342;              /* footer background */
  --text-color: #333333;           /* primary text */
  --muted-color: #777777;          /* secondary text */
  --border-radius: 8px;
  --container-max-width: 1200px;
}

/* Utility classes */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--success-color);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background-color: #218838;
}

.btn-secondary {
  background-color: #dc3545;
  color: #ffffff;
  border: 2px solid #dc3545;
}
.btn-secondary:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

/* Navigation styles */
header {
  background-color: #ffffff;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding-bottom: 0.25rem;
}

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

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

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    width: 60%;
    max-width: 280px;
    height: calc(100vh - 70px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    padding: 2rem 1rem;
    gap: 1rem;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }
}

/* Hero section */
.hero {
  position: relative;
  color: #ffffff;
  text-align: left;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 42, 93, 0.65);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #f0f4fa;
}

.badge {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #000000;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  margin-top: 1rem;
}

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2::after {
  content: '';
  width: 50px;
  height: 4px;
  background-color: var(--secondary-color);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Advantages section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.step {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* Pricing cards */
.pricing-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.price-card {
  background-color: #fff;
  border: 2px solid #e0e8f0;
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(251, 176, 64, 0.3);
}

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

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 0.5rem 0;
}

.price-features {
  margin: 1rem 0 2rem;
  flex-grow: 1;
}

.price-features li {
  margin: 0.5rem 0;
  color: var(--muted-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-features li i {
  color: var(--success-color);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.testimonial p {
  font-style: italic;
  color: var(--muted-color);
  margin-bottom: 0.75rem;
}

.testimonial .name {
  font-weight: 700;
  color: var(--primary-color);
}

.stars {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* Contact page */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info li span {
  font-weight: 600;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-form form {
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 500;
  color: var(--text-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccd6e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

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

/* Consent checkbox styling */
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  border: 1px solid #e9ecef;
}

.consent-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.consent-checkbox label {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #495057;
  margin: 0;
  cursor: pointer;
}

/* Map embed */
.map {
  margin-top: 2rem;
  border: 0;
  width: 100%;
  height: 350px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: #ffffff;
  padding: 2rem 0;
  margin-top: auto;
}

footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

footer .footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #ffffff;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color);
}

footer .copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #bbb;
}
/* Styles spécifiques pour les titres du footer */
footer h3 {
  color: #ffc700;
}

