/*
 * Stylesheet for All Services Plus multi‑page website
 *
 * This stylesheet builds upon the core layout designed for CarClean+ but
 * introduces a refreshed colour palette inspired by the company branding: vibrant
 * blues and sunlit yellows to evoke trust, energy and positivity. Each page
 * shares common navigation and footer styles while allowing unique sections
 * such as service cards, mission statements and contact forms to shine.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  color: #333;
  background-color: #f9fbfc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5 {
  color: #0a2e5c;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Colour palette */
:root {
  --primary-color: #0078d4;        /* Azure blue for headings and buttons */
  --secondary-color: #f5a623;      /* Sunlight amber accent */
  --success-color: #00b85d;        /* Green for call to action */
  --light-bg: #f9fbfc;
  --dark-bg: #0c2146;
  --muted-color: #6c757d;
  --border-radius: 8px;
  --max-width: 1200px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background-color: var(--success-color);
  color: #fff;
}
.btn-primary:hover {
  background-color: #019a53;
}
.btn-secondary {
  background-color: var(--secondary-color);
  color: #fff;
}
.btn-secondary:hover {
  background-color: #e59b1f;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 0;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: #333;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
  text-decoration: none;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

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

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70vh;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 46, 92, 0.6);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding: 2rem;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 1rem;
  color: #fff;
}
.hero p {
  color: #eef3f8;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}
.section-title h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Services cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}
.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.service-card ul {
  margin-top: 0.5rem;
}
.service-card ul li {
  margin: 0.4rem 0;
  color: var(--muted-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--success-color);
}

/* About section */
.about-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat-box {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat-box h3 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.stat-box p {
  font-size: 0.9rem;
  color: #e5f0fc;
}
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.value-item {
  background-color: #fff;
  border-left: 4px solid var(--secondary-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Reasons section */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.reason-card {
  background-color: #f3f7fa;
  border-radius: var(--border-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.reason-card:hover {
  transform: translateY(-5px);
}
.reason-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.reason-card h4 {
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}
.reason-card p {
  font-size: 0.9rem;
  color: var(--muted-color);
}

/* Testimonials */
.testimonials-section {
  background-color: #fff;
  padding: 3rem 0;
}
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.testimonial .stars {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.testimonial p {
  font-style: italic;
  color: var(--muted-color);
  margin-bottom: 1rem;
}
.testimonial .author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
.contact-info-box {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.contact-info-box h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.contact-form label {
  font-weight: 500;
}
.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;
}
.contact-form button {
  align-self: flex-start;
}

/* CTA Section */
.cta-section {
  background-color: #F9B233;
  color: #000000;
  text-align: center;
  padding: 3rem 1rem;
}
.cta-section h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.cta-section p {
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 2rem 0;
  margin-top: auto;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}
.footer-content ul {
  list-style: none;
  line-height: 1.8;
}
.footer-content h4 {
  color: #ffc700;
}
.footer-content a {
  color: #fff;
  transition: color 0.3s ease;
  text-decoration: none;
}
.footer-content a:hover {
  color: var(--secondary-color);
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #bbb;
}
.footer-bottom a {
  color: #ffc700;
  text-decoration: none;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > span {
  color: #333;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 8px;
  overflow: hidden;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: var(--primary-color);
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown > span:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.dropdown > a i,
.dropdown > span i {
  margin-left: 5px;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.dropdown:hover > a i,
.dropdown:hover > span i {
  transform: rotate(180deg);
}

/* Hero Carousel Styles */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-content {
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.carousel-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  animation: slideInUp 1s ease-out;
}

.carousel-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  animation: slideInUp 1s ease-out 0.3s both;
}

.carousel-content .btn {
  animation: slideInUp 1s ease-out 0.6s both;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Carousel Navigation */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 3;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.dot.active,
.dot:hover {
  background: white;
  transform: scale(1.2);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .carousel-content h1 {
    font-size: 2.5rem;
  }
  
  .carousel-content p {
    font-size: 1.2rem;
  }
  
  .carousel-prev,
  .carousel-next {
    font-size: 1.5rem;
    padding: 0.8rem;
  }
  
  .carousel-prev {
    left: 1rem;
  }
  
  .carousel-next {
    right: 1rem;
  }
  
  .dropdown-content {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    min-width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .carousel-content h1 {
    font-size: 2rem;
  }
  
  .carousel-content p {
    font-size: 1rem;
  }
  
  .carousel-content .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}



/* Styles pour les boutons CTA du hero */
.hero-cta-btn {
  background: red !important;
  border: 2px solid white !important;
  color: white !important;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero-cta-btn:hover {
  background: green !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-cta-btn:active {
  transform: translateY(0);
}


/* Styles pour la clause de consentement */
.consent-checkbox {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.consent-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  transform: scale(1.2);
  accent-color: var(--primary-color);
}

.consent-checkbox input[type="checkbox"]:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Styles pour les messages de formulaire */
#form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
  font-size: 0.9rem;
  line-height: 1.4;
}

#form-message strong {
  display: block;
  margin-bottom: 0.5rem;
}

#form-message small {
  opacity: 0.8;
  font-style: italic;
}

/* Animation pour le bouton de soumission */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  background: var(--primary-color) !important;
  transform: none !important;
}

