/* ======================================================
   DIMA AGLO — Styles page d'accueil
   ====================================================== */

/* =========  HERO  ========= */
.hero {
  position: relative;
  padding: 5rem 0 7rem;
  overflow: hidden;
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  top: 20%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(196,89,62,0.1) 0%, transparent 65%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 5%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,169,71,0.08) 0%, transparent 65%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay-500);
  margin-bottom: 1.8rem;
  background: rgba(196,89,62,0.08);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(196,89,62,0.2);
}
.hero-tag::before {
  content: ""; width: 6px; height: 6px; background: var(--clay-500); border-radius: 50%;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.8rem;
  color: var(--earth-900);
  font-variation-settings: "opsz" 144;
}
.hero h1 em {
  font-style: italic;
  color: var(--clay-500);
  font-weight: 500;
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.05em;
  width: 100%; height: 0.15em;
  background: var(--sand-200);
  opacity: 0.7;
  z-index: -1;
}

.hero p.lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 2.4rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  max-width: 580px;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--earth-900);
}
.stat-num span { color: var(--clay-500); }
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 640px;
}
.hero-visual-frame {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, var(--sand-200) 0%, var(--sand-300) 60%, var(--clay-500) 100%);
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 40px 80px -30px rgba(45,31,23,0.4),
    0 20px 40px -20px rgba(196,89,62,0.3);
}
.hero-visual-frame svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-visual-frame .hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slideshow {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 28s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slide:nth-child(5) { animation-delay: 16s; }
.hero-slide:nth-child(6) { animation-delay: 20s; }
.hero-slide:nth-child(7) { animation-delay: 24s; }
@keyframes heroFade {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  14%  { opacity: 1; }
  17%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 1; }
  .hero-slide:not(:first-child) { display: none; }
}
.hero-visual-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(232,216,184,0.18) 0%, rgba(45,31,23,0) 35%, rgba(45,31,23,0.18) 100%);
  pointer-events: none;
}
.hero-photo-ref {
  position: absolute;
  top: 1rem; right: 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--sand-50);
  opacity: 0.85;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(45,31,23,0.5);
}

.hero-badge {
  position: absolute;
  bottom: -25px; left: -25px;
  background: var(--earth-900);
  color: var(--sand-100);
  padding: 1.3rem 1.5rem;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  max-width: 220px;
  border-radius: 4px;
  box-shadow: 0 20px 50px -20px rgba(45,31,23,0.5);
  border-left: 4px solid var(--gold);
}
.hero-badge small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 0.4rem;
  color: var(--gold);
}

.hero-meta {
  position: absolute;
  top: 2rem; right: -1.5rem;
  background: var(--sand-50);
  border: 1px solid var(--line);
  padding: 0.9rem 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(45,31,23,0.2);
}
.hero-meta span { color: var(--earth-900); font-weight: 600; }
.hero-meta .dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ab86e; margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

/* =========  Aperçu produits (home)  ========= */
.produits-preview { padding: 6rem 0; }
.produits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.produit-card {
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
  box-shadow: 0 2px 10px -4px rgba(45,31,23,0.08);
  display: block;
  color: inherit;
}
.produit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -15px rgba(45,31,23,0.25);
}
.produit-card-visual {
  aspect-ratio: 4/3;
  background: var(--sand-100);
  position: relative;
  overflow: hidden;
}
.produit-card-visual svg { width: 100%; height: 100%; }
.produit-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.produit-card:hover .produit-card-visual img { transform: scale(1.06); }
.produit-card-body { padding: 1.6rem; }
.produit-card-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--clay-500);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.produit-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--earth-900);
}
.produit-card p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}
.cta-center {
  text-align: center;
  margin-top: 3rem;
}

/* =========  Bandeau services aperçu  ========= */
.services-preview {
  padding: 6rem 0;
  background: var(--earth-900);
  color: var(--sand-100);
  position: relative;
  overflow: hidden;
}
.services-preview::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(196,89,62,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212,169,71,0.1) 0%, transparent 50%);
  z-index: 0;
}
.services-preview .container { position: relative; z-index: 1; }
.services-preview .section-eyebrow { color: var(--gold); }
.services-preview .section-eyebrow::before { background: var(--gold); }
.services-preview .section-title { color: var(--sand-50); }
.services-preview .section-title em { color: var(--gold); }
.services-preview .section-desc { color: var(--sand-200); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.svc-card {
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  transition: all 0.3s;
}
.svc-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.svc-icon {
  width: 48px; height: 48px;
  background: var(--clay-500);
  color: var(--sand-50);
  display: grid; place-items: center;
  margin-bottom: 1.3rem;
  border-radius: 50%;
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-card h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: var(--sand-50);
}
.svc-card p {
  color: var(--sand-200);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* =========  CTA final  ========= */
.cta-band {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(196,89,62,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(212,169,71,0.08) 0%, transparent 50%);
  z-index: -1;
}
.cta-band h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--earth-900);
  max-width: 800px;
  margin-inline: auto;
}
.cta-band h2 em { color: var(--clay-500); font-style: italic; font-weight: 500; }
.cta-band p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* =========  Responsive  ========= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-height: 500px; }
  .produits-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero { padding: 3rem 0 5rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-meta { display: none; }
  .hero-badge { bottom: -15px; left: -10px; padding: 1rem 1.2rem; font-size: 0.85rem; }

  .produits-preview, .services-preview, .cta-band { padding: 4rem 0; }
  .produits-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
}
