/* ============ MIELCO — thème « Ruche & Miel » (inspiré boutique apicole) ============ */
:root {
  /* Brun espresso : sections sombres, texte des titres. */
  --miel-espresso: #33281c;
  --miel-espresso-deep: #2a2015;
  /* Jaune miel : couleur signature. Toujours porteur de texte espresso (8,4:1). */
  --miel-honey: #f6ba1b;
  --miel-honey-deep: #e3a70d;
  --miel-amber: #c68a00; /* décor sur fonds clairs */
  /* Vert olive : secondaire (boutons, icônes). AA : 5,9:1 avec du texte blanc. */
  --miel-olive: #556b1f;
  --miel-olive-deep: #46581a;
  --miel-sage-bg: #ebf1de;
  /* Fonds */
  --miel-cream: #fbf8ef;
  --miel-ink: #524b40;

  /* Alvéoles décoratives : contours d'hexagones épars, très faible opacité. */
  --hexes-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23f6ba1b' stroke-opacity='.1' stroke-width='1.5'%3E%3Cpath d='M30 8 50.8 20v24L30 56 9.2 44V20z'/%3E%3Cpath d='M88 70l15.6 9v18L88 106l-15.6-9V79z'/%3E%3C/g%3E%3C/svg%3E");
  --hexes-honey: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c68a00' stroke-opacity='.22' stroke-width='1.5'%3E%3Cpath d='M30 8 50.8 20v24L30 56 9.2 44V20z'/%3E%3Cpath d='M88 70l15.6 9v18L88 106l-15.6-9V79z'/%3E%3C/g%3E%3C/svg%3E");

  --shadow-soft: 0 14px 36px rgba(51, 40, 28, .12);
  --shadow-pressed: 0 6px 16px rgba(51, 40, 28, .18);

  --bs-primary: var(--miel-honey);
  --bs-primary-rgb: 246, 186, 27;
  --bs-body-color: var(--miel-ink);
  --bs-body-bg: #fff;
  --bs-body-font-family: 'DM Sans', system-ui, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.7;
  --bs-link-color: var(--miel-olive);
  --bs-link-hover-color: var(--miel-amber);
}

/* Chonburi n'existe qu'en graisse unique, déjà très noire. */
h1, h2, h3, h4, .navbar-brand, .display-hero {
  font-family: 'Chonburi', Georgia, serif;
  font-weight: 400;
  color: var(--miel-espresso);
}

body { background-color: var(--bs-body-bg); }

/* Ancres : ne pas passer sous la navbar fixe ; défilement doux si accepté. */
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Focus clavier bien visible, partout. */
:focus-visible {
  outline: 3px solid rgba(198, 138, 0, .85);
  outline-offset: 2px;
}

/* --- Boutons : rectangles francs, capitales espacées, façon boutique --- */
.btn {
  border-radius: .3rem;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .8rem 1.7rem;
  transition: transform .2s ease-out, box-shadow .2s ease-out,
              background-color .2s ease-out, border-color .2s ease-out;
}
.btn-primary {
  --bs-btn-bg: var(--miel-honey);
  --bs-btn-border-color: var(--miel-honey);
  --bs-btn-color: var(--miel-espresso);
  --bs-btn-hover-bg: var(--miel-honey-deep);
  --bs-btn-hover-border-color: var(--miel-honey-deep);
  --bs-btn-hover-color: var(--miel-espresso);
  --bs-btn-active-bg: var(--miel-honey-deep);
  --bs-btn-active-border-color: var(--miel-honey-deep);
  --bs-btn-active-color: var(--miel-espresso);
  --bs-btn-focus-shadow-rgb: 198, 138, 0;
  box-shadow: 0 8px 20px rgba(198, 138, 0, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(198, 138, 0, .34); }
.btn-primary:active { transform: translateY(0) scale(.98); box-shadow: var(--shadow-pressed); }
.btn-olive {
  --bs-btn-bg: var(--miel-olive);
  --bs-btn-border-color: var(--miel-olive);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--miel-olive-deep);
  --bs-btn-hover-border-color: var(--miel-olive-deep);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--miel-olive-deep);
  --bs-btn-active-border-color: var(--miel-olive-deep);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 85, 107, 31;
}
.btn-espresso {
  --bs-btn-bg: var(--miel-espresso);
  --bs-btn-border-color: var(--miel-espresso);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--miel-espresso-deep);
  --bs-btn-hover-border-color: var(--miel-espresso-deep);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--miel-espresso-deep);
  --bs-btn-active-border-color: var(--miel-espresso-deep);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 51, 40, 28;
}
.btn-outline-light:hover { color: var(--miel-espresso); }

/* --- Navbar : crème pleine, entrées ponctuées d'un point de miel --- */
.navbar-mielco {
  background: var(--miel-cream);
  transition: box-shadow .25s ease, padding .25s ease;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.navbar-mielco.is-scrolled {
  box-shadow: 0 2px 16px rgba(51, 40, 28, .14);
  padding-top: .35rem;
  padding-bottom: .35rem;
}
.navbar-mielco .nav-link {
  color: var(--miel-espresso);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}
.navbar-mielco .nav-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--miel-honey);
  margin-right: .5rem;
  flex: none;
  transition: background-color .2s ease;
}
.navbar-mielco .nav-link.active,
.navbar-mielco .nav-link:hover { color: var(--miel-amber); }
.navbar-mielco .nav-link.active::before { background: var(--miel-olive); }
.navbar-mielco .navbar-brand img { height: 44px; transition: height .25s ease; }
.navbar-mielco.is-scrolled .navbar-brand img { height: 34px; }

/* --- Hero : brun espresso, alvéoles en filigrane, titre crémeux --- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--miel-espresso);
  color: #fff;
}
.hero-slide {
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  background:
    var(--hexes-dark),
    linear-gradient(100deg, rgba(42, 32, 21, .95) 0%, rgba(42, 32, 21, .72) 45%, rgba(198, 138, 0, .3) 100%),
    var(--hero-image, none), var(--miel-espresso);
  background-size: auto, cover, cover, auto;
  background-position: center;
  /* réserve pour la vague et les indicateurs du bas */
  padding-bottom: 6rem;
  padding-top: 5rem;
}
.hero .hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-family: 'Chonburi', Georgia, serif;
  font-weight: 400;
  color: #fff;
  text-wrap: balance;
}
.hero .hero-title em {
  font-style: normal;
  color: var(--miel-honey);
}
.hero .lead { max-width: 38rem; color: rgba(251, 248, 239, .9); }
.hero .carousel-indicators {
  bottom: clamp(40px, 6vw, 78px);
  margin-bottom: 0;
  z-index: 3;
}
.hero .carousel-indicators [data-bs-target] {
  width: 34px; height: 5px;
  border-radius: 5px;
  background-color: rgba(251, 248, 239, .55);
  border: 0;
  opacity: 1;
  transition: background-color .25s ease;
}
.hero .carousel-indicators .active { background-color: var(--miel-honey); }
.hero .carousel-control-prev,
.hero .carousel-control-next { width: 8%; z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .hero .carousel-item { transition: none; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(246, 186, 27, .14);
  border: 1px solid rgba(246, 186, 27, .65);
  color: var(--miel-honey);
  border-radius: 2rem;
  padding: .4rem 1.2rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
}

/* --- Vagues de transition entre sections --- */
.wave {
  display: block;
  line-height: 0;
  margin-top: -1px;
  margin-bottom: -1px;
}
.wave svg { display: block; width: 100%; height: clamp(34px, 6vw, 72px); }
.wave-overlap-up { position: relative; z-index: 1; margin-top: calc(-1 * clamp(34px, 6vw, 72px)); }

/* --- Sections --- */
.section { padding: 5rem 0; }
.section-cream { background-color: var(--miel-cream); }
.section-title {
  margin-bottom: .5rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  position: relative;
}
/* piste de butinage sous les titres centrés : tirets de miel */
.text-center .section-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin: .9rem auto 0;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg,
    var(--miel-honey) 0 12px, transparent 12px 18px);
}
.section-subtitle { color: #6d6557; max-width: 42rem; margin: 0 auto 2.75rem; }
.text-honey { color: var(--miel-amber); }

/* --- À propos : photo adoucie, ourlet de miel --- */
.img-organic {
  border-radius: 1rem;
  border-bottom: 6px solid var(--miel-honey);
  box-shadow: var(--shadow-soft);
}

/* --- Produits : cartes boutique --- */
.prod-item { text-align: center; }
.prod-frame {
  display: block;
  aspect-ratio: 4 / 3;
  margin: 0 auto 1.1rem;
  border-radius: .9rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #efe9dc;
  box-shadow: 0 6px 18px rgba(51, 40, 28, .07);
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.prod-frame img { width: 100%; height: 100%; object-fit: cover; }
.prod-item:hover .prod-frame { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.prod-item h3 { font-size: 1.15rem; }
.prod-item p { max-width: 22rem; margin-inline: auto; }

/* --- Services : cartes blanches, icône sur pastille sauge --- */
.card-mielco {
  border: 1px solid #f0ebe1;
  border-radius: .9rem;
  background-color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.card-mielco:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--miel-sage-bg);
  color: var(--miel-olive);
  font-size: 1.65rem;
}

/* --- Atouts --- */
.atout i { color: var(--miel-olive); font-size: 1.5rem; }

/* --- Timeline processus : numéros en alvéoles de miel --- */
.process-step { text-align: center; position: relative; }
.process-step .step-num {
  width: 58px;
  height: 64px;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(160deg, var(--miel-honey), var(--miel-honey-deep));
  color: var(--miel-espresso);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.process-step .step-num > span {
  font-family: 'Chonburi', Georgia, serif;
  font-size: 1.25rem;
}
@media (min-width: 992px) {
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute; top: 30px; left: calc(50% + 44px);
    width: calc(100% - 88px); height: 0;
    border-top: 3px dotted rgba(198, 138, 0, .55);
  }
}

/* --- Impact : ruche de nuit, alvéoles dorées --- */
.section-impact {
  background-color: var(--miel-espresso);
  background-image: var(--hexes-dark);
  color: #fff;
}
.section-impact h2, .section-impact h3 { color: #fff; }
.section-impact .section-subtitle { color: rgba(255, 255, 255, .85); }
.section-impact .icon-circle {
  background: rgba(255, 255, 255, .12);
  color: var(--miel-honey);
}

/* --- Témoignages : fiche blanche sur crème --- */
.testimonial {
  background-color: #fff;
  border-radius: .9rem;
  padding: 2.25rem;
  border: 1px solid #f0ebe1;
  box-shadow: var(--shadow-soft);
  max-width: 44rem;
  margin: 0 auto;
}
.testimonial .bi-quote { font-size: 2.75rem; color: var(--miel-honey); }
.testimonial blockquote { font-size: 1.1rem; color: var(--miel-espresso); }
#carouselTemoignages .carousel-indicators [data-bs-target].active { background-color: var(--miel-amber); }

/* --- CTA final : bande de miel alvéolée, texte espresso --- */
.section-cta {
  background-color: var(--miel-honey);
  background-image: var(--hexes-honey);
  color: var(--miel-espresso);
}
.section-cta h2 { color: var(--miel-espresso); }
.section-cta .section-subtitle { color: rgba(51, 40, 28, .8) !important; }
.btn-whatsapp {
  --bs-btn-bg: #1a7a41;
  --bs-btn-border-color: #1a7a41;
  --bs-btn-hover-bg: #146334;
  --bs-btn-hover-border-color: #146334;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

/* --- Contact / footer --- */
.contact-info i { color: var(--miel-olive); font-size: 1.25rem; }
.footer {
  background-color: var(--miel-espresso-deep);
  background-image: var(--hexes-dark);
  color: #cfc7b8;
}
.footer h3 { color: #fff; }
.footer a { color: var(--miel-honey); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* --- Compteurs --- */
.counter-value {
  font-family: 'Chonburi', Georgia, serif;
  font-size: 2.6rem;
  color: var(--miel-amber);
}

/* --- Apparition au scroll --- */
/* Le masquage initial n'est appliqué que lorsque le contrôleur Stimulus a
   ajouté .js-reveal : sans JavaScript (ou à l'impression), tout reste visible. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .25s ease-out, transform .25s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .card-mielco, .navbar-mielco, .btn, .prod-frame { transition: none; }
  .card-mielco:hover, .prod-item:hover .prod-frame, .btn-primary:hover { transform: none; }
}

/* --- Formulaire --- */
.form-control, .form-select { border-radius: .5rem; border-color: #e2dacb; }
.form-control:focus, .form-select:focus {
  border-color: var(--miel-honey);
  box-shadow: 0 0 0 .25rem rgba(246, 186, 27, .25);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
