:root {
  --creme-douce: #F5F0E7;
  --vert-olive: #6B705C;
  --or-pale: #D4A373;
  --gris-anthracite: #4A4A4A;
  --blanc-pur: #FFFFFF;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--gris-anthracite);
  background: var(--creme-douce);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-weight: 400;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  color: var(--vert-olive);
  font-weight: 700;
}

h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
}

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

h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--blanc-pur);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

footer {
  background: var(--gris-anthracite);
  color: var(--blanc-pur);
  padding: 2.5rem 1rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.footer-section {
  padding: 1rem 0;
}

.footer-section h3 {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--or-pale);
  padding-bottom: 0.5rem;
}

.footer-item {
  margin-bottom: 0.8rem;
}

.footer-item a {
  color: var(--or-pale);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-item a:hover {
  color: var(--vert-olive);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid var(--or-pale);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--blanc-pur);
  font-weight: 400;
}

/* Styles pour les sections intro et services */
.intro, .discover-services {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2.5rem;
  text-align: center;
  background: var(--blanc-pur);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: var(--gris-anthracite);
}

/* Carousel styles */
.carousel {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  /* Suppression des coins arrondis */
  border-radius: 0;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

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

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  /* Ajustement pour un rendu plus pro : contraste et netteté */
  filter: brightness(0.85) contrast(110%);
}

.carousel-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--blanc-pur);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5rem 2rem;
  border-radius: 10px;
}

.carousel-text h2 {
  font-size: 3.4rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  color: var(--blanc-pur);
}

.carousel-text .btn-devis {
  background: var(--vert-olive);
  color: var(--blanc-pur);
}

.carousel-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-controls .dot {
  width: 12px;
  height: 12px;
  background: var(--gris-anthracite);
  border-radius: 50%;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-controls .dot.active {
  background: var(--or-pale);
}

/* Styles pour la section livraison */
.delivery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.delivery-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.delivery-image {
  flex: 1;
  max-width: 50%;
  height: auto;
}

.delivery-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.delivery-text {
  flex: 1;
  font-size: 1.1rem;
  color: var(--gris-anthracite);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section {
    padding: 0.5rem 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .carousel {
    height: 50vh; /* Réduction de la hauteur pour un rendu plus pro */
  }

  .carousel-slide img {
    object-fit: cover; /* Garde l'image bien cadrée */
    width: 100%; /* Prend toute la largeur de l'écran */
    height: 100%; /* Hauteur complète du conteneur */
  }

  .carousel-text {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7); /* Fond plus opaque pour lisibilité */
  }

  .carousel-text h2 {
    font-size: 1.8rem; /* Texte plus petit mais lisible */
  }

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

  .delivery-content {
    flex-direction: column;
    text-align: center;
  }

  .delivery-image {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
  }

  .delivery-image img {
    width: 100%;
    height: auto;
  }

  .delivery-text {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }

  .carousel {
    height: 40vh; /* Réduction supplémentaire pour mobile */
  }

  .carousel-text h2 {
    font-size: 1.5rem;
  }

  .carousel-text {
    padding: 0.8rem;
  }

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

  .delivery-image {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
  }

  .delivery-text {
    max-width: 100%;
  }
}