/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* VARIABLES */
:root {
  --primary-color: #00aaff;
  --primary-dark: #008ecc;
  --secondary-color: #f8fafc;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --text-dark: #1a202c;
  --text-gray: #718096;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* HEADER - Point focal supérieur gauche + CTA supérieur droit */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 50px;
  width: 50px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--primary-color);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

nav a:hover {
  color: var(--primary-color);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-phone {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* BOUTONS CTA */
.cta-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}

.cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-primary-large {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
}

.cta-primary-large:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cta-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

.cta-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* HERO - Message principal et bénéfices */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e6f4ff 100%);
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--primary-color);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.benefit-icon {
  background: var(--success-color);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-right {
  position: relative;
}

.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.hero-badge span:first-child {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.hero-badge span:last-child {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* SECTIONS */
section {
  padding: 4rem 2rem;
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
}

/* SERVICES - Grille scannable */
.services-section {
  background: var(--secondary-color);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-list li {
  padding: 0.5rem 0;
  color: var(--text-gray);
  position: relative;
  padding-left: 1.5rem;
}

.service-list li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}



/* RÉALISATIONS - Preuves visuelles */
.before-after-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.before-after-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.before-after-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.comparison-slider {
  position: relative;
  height: 350px;
  overflow: hidden;
  cursor: pointer;
}

.before-image, .after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.after-image {
  opacity: 0;
}

.comparison-slider.show-after .after-image {
  opacity: 1;
}

.comparison-slider.show-after .before-image {
  opacity: 0;
}

.comparison-labels {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.label {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.label:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

.label.active {
  background: var(--primary-color);
  transform: scale(1.1);
}

.card-content {
  padding: 2rem;
}

.card-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.card-content p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.project-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}



.project-location {
  color: var(--text-gray);
}

.section-cta {
  max-width: 600px;
  margin: 4rem auto 0;
  text-align: center;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.section-cta h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-cta p {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

/* TÉMOIGNAGES - Avis clients */

.delete-btn {
  margin-top: 1rem;
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.delete-btn:hover {
  background: #dc2626;
}


.testimonial-carousel {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.carousel-controls {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.carousel-controls button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.carousel-controls button:hover {
  background: var(--primary-dark);
}

#paginationInfo {
  font-weight: 600;
  color: var(--text-dark);
}

/* TÉMOIGNAGES */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  border-left: 5px solid var(--primary-color);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.stars {
  font-size: 1.2rem;
  color: gold;
  margin-bottom: 0.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Formulaire */
.testimonial-form-container {
  max-width: 700px;
  margin: 3rem auto 0;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.testimonial-form-container h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.testimonial-form-container textarea,
.testimonial-form-container select,
.testimonial-form-container input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  font-size: 1rem;
  font-family: inherit;
  transition: 0.3s;
}

.testimonial-form-container textarea:focus,
.testimonial-form-container select:focus,
.testimonial-form-container input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
}

.testimonials-section {
  background: #f9fbfc;
  padding: 4rem 2rem;
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-left: 5px solid var(--primary-color);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-form-container {
  max-width: 700px;
  margin: 3rem auto 0;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.testimonial-form-container h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.testimonial-form-container textarea,
.testimonial-form-container select,
.testimonial-form-container input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  font-size: 1rem;
  font-family: inherit;
  transition: 0.3s;
}

.testimonial-form-container textarea:focus,
.testimonial-form-container select:focus,
.testimonial-form-container input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
}

.stars {
  font-size: 1.2rem;
  color: gold;
  margin-bottom: 0.5rem;
}



/* CONTACT - CTA final */
.contact-section {
  background: linear-gradient(135deg, var(--text-dark) 0%, #2d3748 100%);
  color: white;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-left h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  background: var(--primary-color);
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin: 0;
  opacity: 0.8;
}

/* FORMULAIRE */
.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
}

.contact-form select {
  margin-bottom: 1rem;
}

.contact-form textarea {
  margin-bottom: 1rem;
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
  margin-bottom: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 0;
}

.success-message {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: var(--success-color);
  color: white;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  display: none;
}

/* FOOTER */
footer {
  background: var(--text-dark);
  color: white;
  padding: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left .logo-container {
  gap: 1rem;
}

.footer-left .logo {
  border-color: white;
}

.footer-left strong {
  color: white;
  font-size: 1.1rem;
}

.footer-left p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .header-cta {
    order: -1;
    width: 100%;
    justify-content: center;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-image img {
    height: 300px;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card.featured {
    transform: none;
  }
  
  .before-after-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .comparison-slider {
    height: 280px;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .comparison-slider {
    height: 250px;
  }
  
  .label {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .section-cta {
    padding: 2rem;
  }
}
