/* ===== INDEX — Page d'accueil LES PALETTES DU FASO ===== */

:root {
  --palette-primary: #8B4513;
  --palette-secondary: #CC7A00;
  --palette-dark: #2c1810;
  --palette-cream: #f8f2eb;
  --palette-warm: #e8d5c4;
  --palette-overlay: rgba(44, 24, 16, 0.65);
  --shadow-soft: 0 8px 32px rgba(139, 69, 19, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ---- Hero Carousel ---- */
.index-hero {
  position: relative;
  overflow: hidden;
}

.index-hero .carousel {
  min-height: 75vh;
}

.index-hero .carousel-inner,
.index-hero .carousel-item {
  min-height: 75vh;
}

.index-hero .carousel-item img {
  width: 100%;
  height: 75vh;
  object-fit: cover;
  object-position: center;
}

.index-hero .carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 3rem;
  text-align: left;
  background: linear-gradient(90deg, var(--palette-overlay) 0%, transparent 60%);
}

.index-hero .hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.index-hero .hero-slogan {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.95);
  max-width: 480px;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.index-hero .btn-hero {
  background: var(--palette-secondary);
  border: none;
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.index-hero .btn-hero:hover {
  background: #b86d00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204, 122, 0, 0.4);
}

.index-hero .carousel-control-prev,
.index-hero .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--palette-overlay);
  border-radius: 50%;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.index-hero .carousel-control-prev { left: 1rem; }
.index-hero .carousel-control-next { right: 1rem; }

.index-hero .carousel-control-prev:hover,
.index-hero .carousel-control-next:hover {
  opacity: 1;
  background: var(--palette-dark);
}

.index-hero .carousel-indicators {
  margin-bottom: 1.5rem;
}

.index-hero .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.6);
  opacity: 1;
}

.index-hero .carousel-indicators .active {
  background-color: var(--palette-secondary);
  transform: scale(1.2);
}

/* ---- Hero split (carousel | panneau) ---- */
.index-hero-split .index-hero-inner {
  display: flex;
  min-height: 75vh;
}

.index-hero-split .index-hero-carousel-wrap {
  flex: 1 1 58%;
  min-width: 0;
  position: relative;
}

.index-hero-split .index-hero-carousel-wrap .carousel,
.index-hero-split .index-hero-carousel-wrap .carousel-inner,
.index-hero-split .index-hero-carousel-wrap .carousel-item,
.index-hero-split .index-hero-carousel-wrap .carousel-item img {
  min-height: 75vh;
  height: 75vh;
}

.index-hero-split .carousel-indicators-inset {
  display: none;
}

.index-hero-split .index-hero-panel {
  flex: 0 0 42%;
  background: linear-gradient(165deg, var(--palette-dark) 0%, #1a0f0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
}

.index-hero-split .index-hero-panel-inner {
  max-width: 420px;
  width: 100%;
}

.index-hero-split .index-hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--palette-secondary);
  margin-bottom: 0.75rem;
}

.index-hero-split .hero-title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  color: #fff;
  text-shadow: none;
  margin-bottom: 0.6rem;
}

.index-hero-split .hero-slogan {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  text-shadow: none;
  margin-bottom: 1.75rem;
  max-width: none;
}

.index-hero-split .index-hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.index-hero-split .hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.index-hero-split .hero-dot:hover {
  background: rgba(255,255,255,0.6);
}

.index-hero-split .hero-dot.active {
  background: var(--palette-secondary);
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .index-hero-split .index-hero-inner {
    flex-direction: column;
    min-height: auto;
  }

  .index-hero-split .index-hero-carousel-wrap {
    flex: none;
    min-height: 50vh;
  }

  .index-hero-split .index-hero-carousel-wrap .carousel,
  .index-hero-split .index-hero-carousel-wrap .carousel-inner,
  .index-hero-split .index-hero-carousel-wrap .carousel-item,
  .index-hero-split .index-hero-carousel-wrap .carousel-item img {
    min-height: 50vh;
    height: 50vh;
  }

  .index-hero-split .index-hero-panel {
    flex: none;
    min-height: 0;
    padding: 2rem 1.5rem;
  }

  .index-hero-split .index-hero-panel-inner {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .index-hero .carousel,
  .index-hero .carousel-inner,
  .index-hero .carousel-item,
  .index-hero .carousel-item img {
    min-height: 55vh;
    height: 55vh;
  }
  .index-hero .carousel-caption {
    background: linear-gradient(180deg, transparent 0%, var(--palette-overlay) 70%);
    justify-content: flex-end;
    padding: 2rem 1.25rem;
  }
}

/* ---- Trust bar ---- */
.index-trust {
  background: var(--palette-dark);
  color: rgba(255,255,255,0.9);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.index-trust a {
  color: var(--palette-secondary);
  text-decoration: none;
  font-weight: 600;
}

.index-trust a:hover {
  color: #e8a04a;
}

/* ---- Section commune ---- */
.index-section {
  padding: 4rem 0;
}

.index-section-alt {
  background: var(--palette-cream);
}

.index-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--palette-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.index-section-subtitle {
  color: #6b5344;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ---- À propos ---- */
.index-about {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.index-about-text {
  flex: 1 1 320px;
}

.index-about-text .lead {
  color: var(--palette-dark);
  font-size: 1.1rem;
  line-height: 1.7;
}

.index-about-visual {
  flex: 1 1 380px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.index-about-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.index-about-cta {
  margin-top: 1.5rem;
}

.index-about-cta .btn {
  background: var(--palette-primary);
  border: none;
  color: #fff;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.index-about-cta .btn:hover {
  background: #6d3410;
  color: #fff;
}

/* ---- Services carousel ---- */
.index-services .carousel-inner {
  padding: 0.5rem 0;
}

.index-services .carousel-item {
  padding: 0 0.5rem;
}

.index-service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08);
  border: 1px solid rgba(139, 69, 19, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.index-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.index-service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--palette-primary), var(--palette-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.index-service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--palette-dark);
  margin-bottom: 0.5rem;
}

.index-service-card p {
  font-size: 0.9rem;
  color: #6b5344;
  margin: 0;
  line-height: 1.5;
}

.index-services .carousel-control-prev,
.index-services .carousel-control-next {
  width: 40px;
  height: 40px;
  background: var(--palette-dark);
  border-radius: 50%;
  opacity: 0.9;
  top: 50%;
  transform: translateY(-50%);
}

.index-services .carousel-control-prev { left: -0.5rem; }
.index-services .carousel-control-next { right: -0.5rem; }

@media (max-width: 768px) {
  .index-services .carousel-control-prev { left: 0.25rem; }
  .index-services .carousel-control-next { right: 0.25rem; }
}

/* ---- Avantages (Pourquoi nous choisir) ---- */
.index-avantages .row {
  row-gap: 1.5rem;
}

.index-avantage-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08);
  border: 1px solid rgba(139, 69, 19, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
}

.index-avantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.index-avantage-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--palette-primary), var(--palette-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.index-avantage-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--palette-dark);
  margin-bottom: 0.5rem;
}

.index-avantage-card p {
  font-size: 0.9rem;
  color: #6b5344;
  margin: 0;
  line-height: 1.5;
}

/* ---- Produits phares carousel ---- */
.index-products .carousel-inner {
  padding: 0.5rem 0;
}

.index-product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08);
  border: 1px solid rgba(139, 69, 19, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.index-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.index-product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.index-product-card .img-wrap {
  height: 220px;
  overflow: hidden;
  background: var(--palette-warm);
}

.index-product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.index-product-card:hover .img-wrap img {
  transform: scale(1.06);
}

.index-product-card .card-body {
  padding: 1.25rem;
}

.index-product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--palette-dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index-product-card .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--palette-secondary);
}

.index-products .carousel-control-prev,
.index-products .carousel-control-next {
  width: 44px;
  height: 44px;
  background: var(--palette-dark);
  border-radius: 50%;
  opacity: 0.9;
  top: 50%;
  transform: translateY(-50%);
}

.index-products .carousel-control-prev { left: -0.5rem; }
.index-products .carousel-control-next { right: -0.5rem; }

@media (max-width: 768px) {
  .index-products .carousel-control-prev { left: 0.25rem; }
  .index-products .carousel-control-next { right: 0.25rem; }
  .index-product-card .img-wrap { height: 180px; }
}

/* ---- Newsletter ---- */
.index-newsletter {
  background: linear-gradient(135deg, var(--palette-primary), var(--palette-secondary));
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.index-newsletter h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.index-newsletter p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.index-newsletter .form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.index-newsletter input {
  flex: 1 1 240px;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: var(--radius);
}

.index-newsletter button {
  background: var(--palette-dark);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  white-space: nowrap;
}

.index-newsletter button:hover {
  background: #1a0f0a;
  color: #fff;
}

/* ---- Footer (réutilise les classes existantes) ---- */
.index-footer .social-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.2s;
}

.index-footer .social-link:hover .social-icon {
  transform: scale(1.15);
}

.index-footer .logo-texte {
  display: flex;
  align-items: center;
  gap: 10px;
}

.index-footer .logo {
  width: 38px;
  height: auto;
}

.index-footer .texte {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}
