/* ===========================================================================
   Hulpproject — surcouche de Bootstrap 5.3.
   Palette « bosgroen & zand ». Bootstrap fait la grille, la navbar, l'accordéon,
   le carrousel du hero et les formulaires ; ce fichier ne fait que l'habiller.
   =========================================================================== */

:root {
  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;

  --forest: #10261f;
  --forest-2: #1d3d31;
  --sand: #c98f4f;
  --sand-soft: #e3c79c;
  --sand-ink: #8a5a22;  /* accent portant du texte : #c98f4f sur blanc échoue au contraste AA */
  --on-sand: #3a2408;   /* texte sur bouton sable : foncé, jamais blanc */
  --cream: #f7f5f0;
  --paper: #ffffff;
  --ink: #10261f;
  --muted: #5f6f67;
  --line: #e2ded4;

  --bs-body-font-family: var(--body);
  --bs-body-color: var(--ink);
}

body { font-family: var(--body); color: var(--ink); background: var(--paper); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); }

/* --------------------------------- Header --------------------------------
   Bootstrap définit `.navbar-nav .nav-link.active` (3 classes) — plus
   spécifique que `.hp-nav-link.active` (2 classes) — avec la couleur d'une
   navbar CLAIRE, soit un quasi-noir : l'onglet actif devenait illisible sur le
   fond vert. On ne se bat pas à coups de !important, on renseigne les variables
   que Bootstrap lit lui-même.
   ------------------------------------------------------------------------- */
.hp-header {
  background: var(--forest);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.hp-header.scrolled { box-shadow: 0 8px 28px rgba(0,0,0,.22); border-bottom-color: rgba(255,255,255,.10); }

.hp-header .navbar {
  --bs-navbar-color: rgba(255,255,255,.82);
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-active-color: var(--sand-soft);   /* ← l'onglet actif, enfin visible */
  --bs-navbar-disabled-color: rgba(255,255,255,.4);
  --bs-navbar-brand-color: #ffffff;
  --bs-navbar-brand-hover-color: #ffffff;
  --bs-navbar-toggler-border-color: transparent;
  --bs-navbar-toggler-focus-width: 0;
  padding-top: 18px;
  padding-bottom: 18px;
}
.hp-header .navbar-toggler { color: #fff; }
.hp-logo { height: 40px; width: auto; display: block; }
.navbar-brand { display: flex; align-items: center; margin-right: 0; }

/* Onglets : de l'air autour du texte, et un soulignement qui ne bouge pas
   quand on change le padding (pseudo-élément, pas un border-bottom). */
.hp-header .hp-nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 15px;
  margin: 0 2px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.hp-header .hp-nav-link::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}
.hp-header .hp-nav-link:hover { background: rgba(255,255,255,.06); }
.hp-header .hp-nav-link:hover::after,
.hp-header .hp-nav-link.active::after { transform: scaleX(1); }
.hp-header .hp-nav-link.active { color: var(--sand-soft); }

/* Bouton d'appel à l'action, décollé des onglets */
.hp-nav-cta { margin-left: 18px; }
.hp-nav-cta .hp-btn { padding: 12px 20px; }

@media (max-width: 991.98px) {
  .hp-header .navbar { padding-top: 12px; padding-bottom: 12px; }
  .navbar-collapse { border-top: 1px solid rgba(255,255,255,.1); margin-top: 12px; padding-top: 6px; }
  .hp-header .hp-nav-link {
    padding: 14px 4px;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .hp-header .hp-nav-link::after { display: none; } /* pas de soulignement en menu vertical */
  .hp-nav-cta { margin: 16px 0 6px; }
  .hp-nav-cta .hp-btn { width: 100%; justify-content: center; }
}

/* -------------------------------- Boutons -------------------------------- */
.hp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 700; border: 1px solid transparent;
  transition: transform .15s, filter .15s;
}
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn-primary { background: var(--sand); color: var(--on-sand); }
.hp-btn-primary:hover { background: var(--sand); color: var(--on-sand); filter: brightness(1.06); }
.hp-btn-dark { background: var(--forest); color: #fff; }
.hp-btn-dark:hover { background: var(--forest-2); color: #fff; }
.hp-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.hp-btn-ghost:hover { background: var(--cream); color: var(--ink); }
.hp-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hp-btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; }

.hp-round-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.3); cursor: pointer;
}
.hp-round-btn-light { color: var(--ink); border-color: var(--line); }
.hp-round-btn:disabled { opacity: .35; cursor: default; }
.hp-flip { display: grid; transform: rotate(180deg); }

/* ------------------------------- Sections -------------------------------- */
.hp-section { padding: 86px 0; }
.hp-bg-cream { background: var(--cream); }
.hp-bg-forest { background: var(--forest); }
.hp-head { max-width: 720px; margin: 0 0 48px; }
.hp-head.text-center { margin-left: auto; margin-right: auto; }
.hp-h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; margin: 0 0 16px; }
.hp-h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin: 0 0 16px; }
.hp-h2-sm { font-size: 24px; }
.hp-h3 { font-size: 18px; margin: 0 0 8px; }
.hp-muted { color: var(--muted); font-size: 15px; line-height: 1.75; }
.hp-muted-light { color: rgba(255,255,255,.72); line-height: 1.7; }
.hp-note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.hp-icon-ink { color: var(--sand-ink); }

.hp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand-ink); margin-bottom: 14px;
}
.hp-eyebrow-light { color: var(--sand-soft); }
.hp-eyebrow-line { width: 26px; height: 2px; background: currentColor; display: block; }

.hp-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hp-card-media { position: relative; height: 190px; background: var(--cream); }
.hp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-card-icon {
  position: absolute; top: 16px; left: 16px; width: 42px; height: 42px; border-radius: 10px;
  background: var(--paper); color: var(--sand-ink); display: grid; place-items: center;
}
.hp-img-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.hp-box-dark { background: var(--forest); color: rgba(255,255,255,.72); border-radius: 14px; padding: 24px 26px; line-height: 1.7; font-size: 14.5px; }
.hp-step { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--sand); letter-spacing: .1em; }

/* ---------------------------------- Hero --------------------------------- */
.hp-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 120% at 80% 0%, var(--forest-2) 0%, var(--forest) 55%); }
.hp-hero-bg { position: absolute; inset: 0; }
.hp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hp-hero-img.show { opacity: .16; }
.hp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--forest) 8%, rgba(16,38,31,.55) 60%, rgba(16,38,31,.25) 100%),
              radial-gradient(50% 50% at 88% 18%, rgba(227,199,156,.18), transparent);
}
.hp-hero .carousel-inner { z-index: 1; }
.hp-hero-inner { padding: 96px 12px 60px; min-height: 480px; display: flex; align-items: center; }
.hp-hero-col { max-width: 640px; }
.hp-hero-title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.01em; margin-bottom: 20px; }
.hp-hero-text { color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.75; max-width: 560px; margin-bottom: 32px; }
.hp-badge-big { font-family: var(--display); font-size: 30px; color: var(--sand-soft); }
.hp-badge-small { font-size: 13.5px; color: rgba(255,255,255,.6); }
.hp-hero-controls { z-index: 2; display: flex; align-items: center; gap: 12px; padding-bottom: 34px; }
.hp-dots { position: static; margin: 0 0 0 8px; }
.hp-dots [data-bs-slide-to] { width: 10px; height: 6px; border-radius: 999px; border: 0; background: rgba(255,255,255,.3); opacity: 1; margin: 0 4px; transition: width .25s, background .25s; }
.hp-dots [data-bs-slide-to].active { width: 30px; background: var(--sand); }

/* --------------------------------- Bande --------------------------------- */
.hp-band { background: var(--sand); padding: 26px 0; }
.hp-band-item { color: var(--on-sand); font-weight: 700; font-size: 15px; }

/* ------------------------- Slider maison (services, avis) ----------------
   Le carrousel Bootstrap n'affiche qu'un « item » à la fois : impossible de
   montrer 3 cartes côte à côte sans le détourner. On garde donc une piste et
   un translateX, pilotés par assets/js/app.js.
   ------------------------------------------------------------------------- */
.hp-slider-viewport { overflow: hidden; }
.hp-slider-track { display: flex; gap: 24px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hp-slide { flex: 0 0 calc((100% - 48px) / 3); }
@media (max-width: 1024px) { .hp-slide { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px)  { .hp-slide { flex-basis: 100%; } }
.hp-slider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.hp-slider-dots { display: flex; gap: 8px; }
.hp-slider-dots button { width: 9px; height: 6px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: var(--line); transition: width .25s, background .25s; }
.hp-slider-dots button.active { width: 28px; background: var(--sand); }
.hp-dots-light button { background: rgba(255,255,255,.28); }
@media (prefers-reduced-motion: reduce) { .hp-slider-track { transition: none; } }

/* ------------------------------- Simulateur ------------------------------ */
.hp-sim { padding: 30px; }
.hp-sim-label { font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.hp-sim-result { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.hp-sim-monthly { font-family: var(--display); font-size: 36px; }
.hp-sim-row { font-size: 14px; padding: 4px 0; }
.hp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--sand), var(--sand-soft)); cursor: pointer; padding: 0; }
.hp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--sand); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.hp-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--sand); }

/* --------------------------------- Stats --------------------------------- */
.hp-stat { border-top: 2px solid var(--sand); padding-top: 18px; }
.hp-stat-big { font-family: var(--display); font-size: 40px; color: #fff; }
.hp-stat-label { color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.6; margin-top: 6px; }

/* ------------------------------ Témoignages ------------------------------
   Étoiles en `sand`, pas en vert Trustpilot : afficher les couleurs d'une
   marque de notation sans être connecté à cette marque induit en erreur.
   Le vrai TrustBox s'active dans includes/config.php.
   ------------------------------------------------------------------------- */
.hp-stars { display: flex; gap: 3px; color: var(--sand); }
.hp-testi { background: var(--paper); border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.hp-testi-foot { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; gap: 12px; margin-top: auto; }
.hp-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: var(--sand-soft); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: 0 0 auto; }
/* Photo du client. Carrée à la source, rognée en rond ici. */
.hp-testi-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 2px solid var(--line); background: var(--cream); }

/* ---------------------------------- FAQ ---------------------------------- */
.hp-faq { max-width: 820px; }
.hp-acc-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: 12px; overflow: hidden; }
.hp-acc-btn { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ink); padding: 20px 22px; box-shadow: none !important; }
.hp-acc-btn:not(.collapsed) { background: var(--cream); color: var(--ink); }
.hp-acc-btn::after { filter: sepia(1) saturate(3) hue-rotate(340deg); }

/* --------------------------- Page hero (internes) ------------------------ */
.hp-page-hero { background: radial-gradient(120% 120% at 80% 0%, var(--forest-2) 0%, var(--forest) 55%); color: #fff; padding: 84px 0 72px; }
.hp-page-hero-sub { color: rgba(255,255,255,.72); font-size: 16.5px; line-height: 1.7; max-width: 640px; margin: 0; }

/* -------------------------------- Contact -------------------------------- */
.hp-info { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; color: inherit; }
.hp-info:hover { border-color: var(--sand); color: inherit; }
.hp-info-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); color: var(--sand-ink); display: grid; place-items: center; flex: 0 0 auto; }
.hp-info-value { font-size: 15.5px; font-weight: 600; }
.hp-map { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hp-map iframe { width: 100%; height: 340px; border: 0; display: block; }
.hp-map-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.hp-map-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sand-ink); text-decoration: none; }
.hp-form-foot { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ------------------------------ Formulaires ------------------------------ */
.hp-label { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: block; }
.hp-input { padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 15px; }
.hp-input:focus { border-color: var(--sand); box-shadow: 0 0 0 3px rgba(201,143,79,.15); }
.hp-check .form-check-input:checked { background-color: var(--sand); border-color: var(--sand); }
.hp-check .form-check-label { font-size: 14px; color: var(--muted); line-height: 1.6; }
.hp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* honeypot */
.hp-alert-ok { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 32px; font-size: 16.5px; line-height: 1.7; }
.hp-alert-err { background: #fdf0f0; border: 1px solid #e6c4c4; color: #a32d2d; border-radius: 10px; padding: 14px 16px; font-size: 14.5px; margin-bottom: 8px; }

/* --------------------------------- Footer -------------------------------- */
.hp-footer { background: var(--forest); color: rgba(255,255,255,.72); padding-bottom: 30px; }
.hp-foot-title { color: #fff; font-size: 16px; margin-bottom: 16px; }
.hp-foot-text { line-height: 1.75; font-size: 14.5px; max-width: 340px; }
.hp-foot-link { color: rgba(255,255,255,.72); text-decoration: none; font-size: 14.5px; }
.hp-foot-link:hover { color: var(--sand-soft); }
.hp-social { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; }
.hp-disclaimer { font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.5); }
.hp-foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 22px; font-size: 13px; }

/* ------------------------------- WhatsApp -------------------------------- */
.hp-wa { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; z-index: 80; box-shadow: 0 10px 28px rgba(37,211,102,.5); transition: transform .2s; }
.hp-wa:hover { transform: scale(1.08); color: #fff; }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
