/* Styles de base */
:root {
  --primary-color: #e74c3c;
  --secondary-color: #2c3e50;
  --accent-color: #f39c12;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #777;
  --border-color: #ddd;
  --success-color: #27ae60;
  --error-color: #e74c3c;
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 4px;
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@500;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  background-color: #fff;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

.section-header p {
  color: var(--text-light);
  font-size: 18px;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
}

h1 {
  font-size: 42px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

p {
  margin-bottom: 20px;
}

ul, ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

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

.btn-primary:hover {
  background-color: #d44032;
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #1a2530;
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* Barre de navigation */
.site-header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  position: relative;
}

.main-nav ul li a:hover {
  color: var(--primary-color);
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.icon-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero section */
.hero {
  padding: 100px 0;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 20px;
}

.service-icon img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.service-card p {
  color: var(--text-light);
}

/* À propos */
.about {
  background-color: #f8f9fa;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
  margin: 10px;
}

.stat-item h3 {
  color: var(--primary-color);
  font-size: 36px;
  margin-bottom: 5px;
}

.stat-item p {
  color: var(--text-light);
  font-size: 16px;
  margin: 0;
}

/* Équipements */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.equipment-category {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.equipment-category h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.equipment-category h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.equipment-category ul {
  list-style: none;
  padding: 0;
}

.equipment-category ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.equipment-category ul li:last-child {
  border-bottom: none;
}

.cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Témoignages */
.testimonials {
  background-color: #f8f9fa;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-item {
  padding: 30px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 10px;
}

.testimonial-content {
  font-style: italic;
  position: relative;
  padding: 0 20px;
}

.testimonial-content::before,
.testimonial-content::after {
  content: '"';
  font-size: 60px;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
}

.testimonial-content::before {
  top: -20px;
  left: -15px;
}

.testimonial-content::after {
  bottom: -50px;
  right: -15px;
  transform: rotate(180deg);
}

.testimonial-author {
  margin-top: 20px;
  text-align: right;
}

.testimonial-author h4 {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.testimonial-author p {
  color: var(--text-light);
  margin: 0;
  font-size: 14px;
}

.testimonial-controls {
  text-align: center;
  margin-top: 20px;
}

.prev-testimonial,
.next-testimonial {
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  margin: 0 5px;
  transition: var(--transition);
}

.prev-testimonial:hover,
.next-testimonial:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blog-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.blog-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
}

.read-more:hover {
  color: var(--secondary-color);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-item h3 {
  color: var(--secondary-color);
  margin-bottom: 5px;
  font-size: 18px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Newsletter */
.newsletter {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0;
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  color: white;
  margin-bottom: 15px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.newsletter .form-group {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 16px;
}

.newsletter button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 0 25px;
}

/* Footer */
.site-footer {
  background-color: #1a2530;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 20px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* Utils */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .main-nav ul.active {
    display: flex;
  }
  
  .main-nav ul li {
    margin: 10px 0;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .stats {
    flex-direction: column;
  }
  
  .stat-item {
    margin-bottom: 20px;
  }
  
  .newsletter .form-group {
    flex-direction: column;
  }
  
  .newsletter input {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
  
  .newsletter button {
    border-radius: var(--border-radius);
    width: 100%;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .services-grid,
  .equipment-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
