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

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
}

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

/* Top Bar */
.top-bar {
  background-color: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.top-bar-left a {
  color: #333;
  margin-right: 15px;
  font-size: 14px;
  transition: color 0.3s;
}

.top-bar-left a:hover {
  color: #3498db;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-devis {
  background-color: #e74c3c;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-devis:hover {
  background-color: #c0392b;
}

.contact-info {
  color: #555;
  font-size: 14px;
}

.contact-info i {
  color: #3498db;
  margin-right: 5px;
}

/* Navigation principale */
.main-nav {
  background: linear-gradient(90deg, #3498db 0%, #5dade2 100%);
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

/* Logo */
.logo {
  position: relative;
  padding: 10px 0;
  margin-right: 100px;
}

/* Première bande oblique rouge - entre logo et menu */
.logo::after {
  content: "";
  position: absolute;
  right: -55px;
  top: -10px;
  bottom: -10px;
  width: 20px;
  background: #e74c3c;
  transform: skewX(-25deg);
}

/* Deuxième bande oblique blanche - entre logo et menu */
.logo::before {
  content: "";
  position: absolute;
  right: -85px;
  top: -15px;
  bottom: -15px;
  width: 20px;
  background: #fff;
  transform: skewX(-25deg);
  z-index: 1;
}

.logo-content {
  background-color: #fff;
  padding: 10px 25px;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
  position: relative;
}

.logo-text {
  font-size: 12px;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1.3;
  display: block;
  text-align: center;
}

/* Menu de navigation */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  padding: 15px 25px;
  display: block;
  transition: all 0.3s;
  font-weight: 500;
  border-radius: 0;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
}

/* Hero Section avec Slider */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin-top: 30px;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-item.active {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 3;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Contrôles du Slider */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #2c3e50;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-control:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-control.prev {
  left: 20px;
}

.slider-control.next {
  right: 20px;
}

/* Dots de navigation */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slider-dot.active {
  background: white;
  transform: scale(1.3);
}

/* Sections de contenu */
.content-section {
  padding: 60px 0;
}

.content-section.alt {
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 50px;
}

/* Grille de services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
  font-size: 48px;
  color: #3498db;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.service-card p {
  color: #7f8c8d;
  line-height: 1.8;
}

/* Formulaire de contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn-submit {
  background-color: #3498db;
  color: white;
  padding: 12px 40px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: #2980b9;
}

/* Footer */
.main-footer {
  background-color: #2c3e50;
  color: white;
  padding: 40px 0 20px;
}

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

.footer-section h3 {
  margin-bottom: 20px;
  color: #3498db;
}

.footer-section p {
  margin-bottom: 10px;
  color: #bdc3c7;
}

.social-links a {
  color: white;
  font-size: 20px;
  margin-right: 15px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
  color: #95a5a6;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.about-text p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Messages d'alerte */
.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav .container {
    flex-direction: column;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
  }

  .nav-menu li a {
    text-align: center;
  }

  .hero {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 28px;
    padding: 0 20px;
  }

  .hero-content p {
    font-size: 16px;
    padding: 0 20px;
  }

  .slider-control {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .slider-control.prev {
    left: 10px;
  }

  .slider-control.next {
    right: 10px;
  }

  .slider-dots {
    bottom: 15px;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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