/**
 * DARNÉO — refonte homepage (hors hero stage).
 * Accent or #B8966A : CTA primaires, filets, surtitres uniquement.
 */

body.darneo-home {
  --home-gold: #B8966A;
  --home-ink: #1a1a1a;
  --home-muted: rgba(26, 26, 26, 0.68);
  --home-line: rgba(26, 26, 26, 0.1);
  --home-radius: 8px;
}

/* Espacement vertical sections
   Sélecteurs avec id pour battre darneo-design-system (body.darneo-home > section#…) */
body.darneo-home > section.home-section,
body.darneo-home > section#darneo-trust-strip,
body.darneo-home > section#darneo-portfolio-teaser,
body.darneo-home > section#services,
body.darneo-home > section#temoignages,
body.darneo-home > section#pourquoi-darneo,
body.darneo-home > section#estimation-ia-promo,
body.darneo-home > section#processus,
body.darneo-home > section#mdm {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}
@media (min-width: 1024px) {
  body.darneo-home > section.home-section,
  body.darneo-home > section#darneo-trust-strip,
  body.darneo-home > section#darneo-portfolio-teaser,
  body.darneo-home > section#services,
  body.darneo-home > section#temoignages,
  body.darneo-home > section#pourquoi-darneo,
  body.darneo-home > section#estimation-ia-promo,
  body.darneo-home > section#processus,
  body.darneo-home > section#mdm {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }
}

/* Estimation : un peu plus compacte que les autres sections */
body.darneo-home > section#estimation-ia-promo.home-ia-compact {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}
@media (min-width: 1024px) {
  body.darneo-home > section#estimation-ia-promo.home-ia-compact {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
}

/* Trust strip : bande fine */
body.darneo-home > section#darneo-trust-strip {
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
}

body.darneo-home .home-section-eyebrow {
  color: var(--home-gold);
  letter-spacing: 0.14em;
  font-family: Inter, system-ui, sans-serif;
}

/* Eyebrow au-dessus du H2 (évite inline-flex + .section-title-accent inline-block sur la même ligne) */
body.darneo-home #services .home-section-eyebrow {
  display: block;
  width: 100%;
  text-align: center;
}

body.darneo-home .home-btn-primary {
  background: var(--home-gold);
  color: #fff !important;
  border: 1px solid var(--home-gold);
  border-radius: var(--home-radius);
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
body.darneo-home .home-btn-primary:hover {
  background: #a6845c;
  border-color: #a6845c;
  color: #fff !important;
}

body.darneo-home .home-link-gold {
  color: var(--home-gold);
  text-decoration: none;
}
body.darneo-home .home-link-gold:hover {
  text-decoration: underline;
}

/* Cartes sobres */
body.darneo-home .home-card {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  box-shadow: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
body.darneo-home .home-card:hover {
  box-shadow: 0 4px 18px rgba(26, 26, 26, 0.06);
  border-color: rgba(184, 150, 106, 0.35);
}
.dark body.darneo-home .home-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Bande chiffres */
body.darneo-home .home-trust-strip {
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: #f7f3ee;
  padding: 1.15rem 1rem;
}
.dark body.darneo-home .home-trust-strip {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
body.darneo-home .home-trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
}
@media (min-width: 768px) {
  body.darneo-home .home-trust-strip__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  body.darneo-home .home-trust-strip__item {
    border-right: 1px solid var(--home-line);
  }
  body.darneo-home .home-trust-strip__item:last-child {
    border-right: none;
  }
}
body.darneo-home .home-trust-strip__item {
  text-align: center;
  padding: 0.35rem 0.5rem;
}
body.darneo-home .home-trust-strip__value {
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--home-ink);
  line-height: 1.2;
}
@media (min-width: 768px) {
  body.darneo-home .home-trust-strip__value {
    font-size: 1.6rem;
  }
}
.dark body.darneo-home .home-trust-strip__value {
  color: #f5f2ed;
}
body.darneo-home .home-trust-strip__label {
  font-size: 0.7rem;
  color: var(--home-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}
@media (min-width: 768px) {
  body.darneo-home .home-trust-strip__label {
    font-size: 0.8rem;
  }
}

/* Galerie réalisations — ratio 4:3 */
body.darneo-home .home-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  body.darneo-home .home-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}
@media (min-width: 1024px) {
  body.darneo-home .home-portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
body.darneo-home .home-portfolio-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: #fff;
  transition: box-shadow 0.2s ease;
}
body.darneo-home .home-portfolio-card:hover {
  box-shadow: 0 4px 18px rgba(26, 26, 26, 0.06);
}
body.darneo-home .home-portfolio-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e2da;
}
body.darneo-home .home-portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.darneo-home .home-portfolio-card__cap {
  margin: 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--home-muted);
}

/* Services : icônes sobres */
body.darneo-home #services .darneo-icon-service {
  background: rgba(184, 150, 106, 0.1);
  color: var(--home-gold);
  border-radius: 6px;
}

/* Engagements */
body.darneo-home .home-engagement__num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--home-gold);
  margin-bottom: 0.5rem;
}

/* Estimation compacte */
body.darneo-home .home-ia-compact {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 1024px) {
  body.darneo-home .home-ia-compact {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
body.darneo-home .home-ia-block {
  background: #f7f3ee;
}

/* Processus timeline */
body.darneo-home .home-process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
@media (min-width: 900px) {
  body.darneo-home .home-process-timeline {
    flex-direction: row;
    gap: 0;
  }
  body.darneo-home .home-process-timeline::before {
    content: "";
    position: absolute;
    top: 1.1rem;
    left: 4%;
    right: 4%;
    height: 1px;
    background: rgba(184, 150, 106, 0.45);
  }
}
body.darneo-home .home-process-step {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--home-line);
  position: relative;
}
body.darneo-home .home-process-step:last-child {
  border-bottom: none;
}
@media (min-width: 900px) {
  body.darneo-home .home-process-step {
    flex: 1;
    flex-direction: column;
    border-bottom: none;
    padding: 0 1rem;
    text-align: center;
    align-items: center;
  }
}
body.darneo-home .home-process-step__num {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--home-gold);
  color: var(--home-gold);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 1;
}
.dark body.darneo-home .home-process-step__num {
  background: #1a1a1a;
}

/* CTA band homepage : accent or sur primaire */
body.darneo-home .home-cta-band {
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  max-width: none;
}
body.darneo-home .home-cta-band .darneo-cta-devis__btn--primary {
  background: var(--home-gold);
  border-color: var(--home-gold);
}
body.darneo-home .home-cta-band .darneo-cta-devis__btn--primary:hover {
  background: #a6845c;
  border-color: #a6845c;
}

body.darneo-home .home-google-link {
  text-decoration: none;
  color: inherit;
}
body.darneo-home .home-google-link:hover {
  color: var(--home-gold);
}

/* Témoignages : sans barre terracotta lourde */
body.darneo-home .home-testimonial .temoignage-stars {
  color: var(--home-gold);
}

/* MDM court */
body.darneo-home #mdm.home-section {
  background: #fff;
}
.dark body.darneo-home #mdm.home-section {
  background: transparent;
}

/* Réduire animations agressives sur sections refaites */
body.darneo-home #services .animate-on-scroll,
body.darneo-home #processus .animate-on-scroll,
body.darneo-home #pourquoi-darneo .animate-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}
