/**
 * Le Matelas Blocks - Frontend Styles
 */

/* ===== Base Styles ===== */
.lematelas-hero,
.lematelas-stores,
.lematelas-seo,
.lematelas-faq {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.lematelas-hero h1,
.lematelas-hero h2,
.lematelas-stores h2,
.lematelas-stores h3,
.lematelas-seo h2,
.lematelas-seo h4,
.lematelas-faq h2,
.lematelas-faq h3 {
  font-family: "Playfair Display", Georgia, serif;
}

/* ===== Hero Section ===== */
.lematelas-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lematelas-hero__background {
  position: absolute;
  inset: 0;
}

.lematelas-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lematelas-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 78, 0.85) 0%,
    rgba(26, 26, 78, 0.6) 50%,
    rgba(26, 26, 78, 0.4) 100%
  );
}

.lematelas-hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1rem;
  text-align: center;
}

.lematelas-hero__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.lematelas-hero__subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  /* color: #e91e8c; */
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.lematelas-hero__description {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 768px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.lematelas-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e91e8c;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(233, 30, 140, 0.4);
}

.lematelas-hero__cta:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(233, 30, 140, 0.5);
}

.lematelas-hero__badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 768px;
  margin: 4rem auto 0;
}

.lematelas-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.lematelas-badge svg {
  color: #e91e8c;
}

.lematelas-badge__title {
  font-weight: 600;
  /* font-size: 0.875rem; */
  font-size: 1, 975rem;
  margin-bottom: 0.5rem;
}

.lematelas-badge__desc {
  /* font-size: 0.75rem; */
  font-size: 1, 9rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.lematelas-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===== Store Locator Section ===== */
.lematelas-stores {
  padding: 5rem 1rem;
  background: #ffffff;
}

.lematelas-stores__header {
  text-align: center;
  margin-bottom: 4rem;
}

.lematelas-stores__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #1a1a4e;
  margin-bottom: 1rem;
}

.lematelas-stores__description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 900px;
  margin: 0 auto;
}

.lematelas-stores__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem auto;
}

.lematelas-store-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 420px;
}

.lematelas-store-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(26, 26, 78, 0.15);
}

.lematelas-store-card__image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.lematelas-store-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lematelas-store-card__image img:not([src]),
.lematelas-store-card__image img[src=""],
.lematelas-hero__background img:not([src]) {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.lematelas-store-card__image img:not([src])::after,
.lematelas-store-card__image img[src=""]::after {
  content: attr(alt, "Image magasin");
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  z-index: 1;
}

.lematelas-store-card:hover .lematelas-store-card__image img {
  transform: scale(1.05);
}

.lematelas-store-card__city {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #e91e8c;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.lematelas-store-card__content {
  padding: 1.5rem;
}

.lematelas-store-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a4e;
  margin-bottom: 0.25rem;
}

.lematelas-store-card__tagline {
  font-size: 0.875rem;
  color: #e91e8c;
  font-weight: 500;
  margin-bottom: 1rem;
}

.lematelas-store-card__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.lematelas-store-card__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.lematelas-store-card__detail svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #9ca3af;
}

.lematelas-store-card__detail a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.lematelas-store-card__detail a:hover {
  color: #e91e8c;
}

.lematelas-store-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #1a1a4e;
  border-radius: 0.5rem;
  color: #1a1a4e;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lematelas-store-card__button:hover {
  background: #1a1a4e;
  color: #ffffff;
}

.lematelas-store-card__button svg {
  transition: transform 0.3s ease;
}

.lematelas-store-card__button:hover svg {
  transform: translateX(4px);
}

.lematelas-store-card__buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.lematelas-store-card__whatsapp {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #25d366;
  color: #ffffff;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.lematelas-store-card__whatsapp:hover {
  background: #128c7e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.lematelas-store-card__whatsapp svg {
  flex-shrink: 0;
  color: #ffffff;
}

.lematelas-stores__cta {
  text-align: center;
  margin-top: 4rem;
}

.lematelas-stores__cta p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.lematelas-stores__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a1a4e;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lematelas-stores__phone:hover {
  background: #2d2d5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(26, 26, 78, 0.4);
}

/* ===== SEO Content Section ===== */
.lematelas-seo {
  padding: 5rem 1rem;
  background: linear-gradient(180deg, #faf9f7 0%, #f5f4f2 100%);
}

.lematelas-seo__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 1024px) {
  .lematelas-seo__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.lematelas-seo__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #1a1a4e;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.lematelas-seo__text {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.lematelas-seo__text p {
  margin-bottom: 1rem;
}

.lematelas-seo__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lematelas-seo__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #374151;
  font-size: 0.9375rem;
}

.lematelas-seo__benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lematelas-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lematelas-benefit__icon {
  width: 40px;
  height: 40px;
  background: rgba(26, 26, 78, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1a1a4e;
}

.lematelas-benefit h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a4e;
  margin: 0 0 0.25rem;
}

.lematelas-benefit p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.lematelas-seo__image {
  position: relative;
}

.lematelas-seo__image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.lematelas-seo__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.lematelas-seo__image-wrapper img:not([src]),
.lematelas-seo__image-wrapper img[src=""] {
  min-height: 400px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.lematelas-seo__image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 78, 0.2), transparent);
}

.lematelas-seo__badge {
  position: absolute;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.lematelas-seo__badge--rating {
  bottom: -1.5rem;
  left: -1.5rem;
  padding: 1rem;
  max-width: 200px;
}

.lematelas-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.lematelas-rating span {
  font-weight: 600;
  color: #1a1a4e;
}

.lematelas-seo__badge--rating p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.lematelas-seo__badge--experience {
  top: -1rem;
  right: -1rem;
  width: 130px;
  height: 130px;
  background: #e91e8c;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
}

.lematelas-experience__number {
  font-size: 1.8rem;
  font-weight: 700;
}

.lematelas-experience__text {
  font-size: 1rem;
  line-height: 1.2;
}

/* ===== FAQ Section ===== */
.lematelas-faq {
  padding: 5rem 1rem;
  background: #ffffff;
}

.lematelas-faq__container {
  max-width: 896px;
  margin: 0 auto;
}

.lematelas-faq__header {
  text-align: center;
  margin-bottom: 3rem;
}

.lematelas-faq__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #1a1a4e;
  margin-bottom: 1rem;
}

.lematelas-faq__description {
  font-size: 1.125rem;
  color: #6b7280;
}

.lematelas-faq__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.lematelas-faq__item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.lematelas-faq__item.is-open {
  box-shadow: 0 4px 20px -4px rgba(26, 26, 78, 0.1);
}

.lematelas-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a4e;
  cursor: pointer;
  transition: background 0.2s;
}

.lematelas-faq__question:hover {
  background: #f9fafb;
}

.lematelas-faq__question svg {
  flex-shrink: 0;
  color: #e91e8c;
  transition: transform 0.3s ease;
}

.lematelas-faq__item.is-open .lematelas-faq__question svg {
  transform: rotate(180deg);
}

.lematelas-faq__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
}

.lematelas-faq__item.is-open .lematelas-faq__answer {
  max-height: 500px;
  opacity: 1;
}

.lematelas-faq__answer p {
  padding: 0 1.5rem 1.5rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
  margin-top: 25px;
}

.lematelas-faq__cta {
  text-align: center;
}

.lematelas-faq__cta-box {
  background: #e8f5f0;
  border-radius: 1rem;
  padding: 2rem;
}

.lematelas-faq__cta-box svg {
  margin: 0 auto 1rem;
}

.lematelas-faq__cta-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a4e;
  margin-bottom: 0.5rem;
}

.lematelas-faq__cta-box p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.lematelas-faq__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .lematelas-faq__buttons {
    flex-direction: row;
  }
}

.lematelas-faq__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lematelas-faq__button--phone {
  background: #1a1a4e;
  color: #ffffff;
}

.lematelas-faq__button--phone:hover {
  background: #2d2d5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(26, 26, 78, 0.4);
}

.lematelas-faq__button--whatsapp {
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lematelas-faq__button--whatsapp:hover {
  background: #128c7e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .lematelas-stores__grid {
    gap: 1.5rem;
  }

  .lematelas-hero__badges {
    grid-template-columns: 1fr;
  }

  .lematelas-seo__benefits {
    grid-template-columns: 1fr;
  }

  .lematelas-seo__badge--rating {
    left: 0.5rem;
    bottom: -1rem;
  }

  .lematelas-seo__badge--experience {
    right: 0.5rem;
    top: -0.5rem;
    width: 80px;
    height: 80px;
  }

  .lematelas-experience__number {
    font-size: 1.25rem;
  }
}

/* ===== Focus Styles for Accessibility ===== */
.lematelas-hero__cta:focus,
.lematelas-store-card__button:focus,
.lematelas-stores__phone:focus,
.lematelas-faq__question:focus,
.lematelas-faq__button:focus {
  outline: 2px solid #e91e8c;
  outline-offset: 2px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .lematelas-hero__scroll {
    animation: none;
  }
}
.lematelas-badge__sup {
    color: #e91e8c; 
    font-weight: bold;
    font-size: 20px;
}

.lematelas-badge__sup:hover {
    color: #1a1a4e; 
}