/* =============================================================
   STEC-CI — main.css
   Fichier GÉNÉRÉ à partir de assets/scss/main.scss.
   Ne pas modifier directement : éditer le Sass puis `npm run css`.
   ============================================================= */

:root {
  --bs-primary: #0B5C33;
  --bs-primary-rgb: 11, 92, 51;
  --bs-body-bg: #F6F3EC;
  --bs-body-color: #0F1C16;
  --bs-body-font-family: 'Inter', system-ui, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-border-color: rgba(15, 28, 22, 0.1);
  --bs-link-color: #0B5C33;
  --bs-link-hover-color: #B4671C;
  --bs-border-radius: 8px;

  --stec-vert: #0B5C33;
  --stec-vert-fonce: #073D22;
  --stec-vert-clair: #9ED8B4;
  --stec-encre: #0F1C16;
  --stec-creme: #F6F3EC;
  --stec-creme-fonce: #EDE8DC;
  --stec-terre: #B4671C;
  --stec-gris: #48564E;
  --stec-gris-clair: #5C6B62;
}

body {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .titre {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: pretty;
}

p { text-wrap: pretty; }
a { text-decoration: none; }

.surtitre {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #B4671C;
}

.texte-secondaire { color: #48564E; }
.texte-legende { color: #5C6B62; }

.section-encre { background: #0F1C16; color: #fff; }
.section-encre .surtitre { color: #9ED8B4; }
.section-creme { background: #EDE8DC; }

[id] { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Bandeau supérieur ------------------------------------- */
.bandeau-haut {
  background: #073D22;
  color: #EDE7DA;
  font-size: 0.78rem;
}
.bandeau-haut a { color: #EDE7DA; }
.bandeau-haut a:hover { color: #fff; }
.bandeau-haut .lien-whatsapp { color: #9ED8B4; font-weight: 600; }

/* --- En-tête collant ---------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(246, 243, 236, 0.94);
  border-bottom: 1px solid rgba(15, 28, 22, 0.1);
  transition: box-shadow 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.entete::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.entete.est-defile { box-shadow: 0 8px 26px rgba(15, 28, 22, 0.1); }
.entete .logo {
  height: 74px;
  width: auto;
  transition: height 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.entete.est-defile .logo { height: 58px; }
.entete .nav-link {
  color: #0F1C16;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  transition: background 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.entete .nav-link:hover,
.entete .nav-link.actif {
  background: rgba(11, 92, 51, 0.1);
  color: #0B5C33;
}

/* --- Héros ---------------------------------------------------- */
.heros {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background: #0A1A12;
  overflow: hidden;
  color: #fff;
}
.heros__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: stec-pan 22s ease-in-out infinite alternate;
}
.heros__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(7, 26, 17, 0.94) 0%,
    rgba(7, 26, 17, 0.74) 46%,
    rgba(7, 26, 17, 0.25) 100%);
}
.heros__contenu { position: relative; z-index: 1; }
.heros__titre {
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 17ch;
}
.heros--compact { min-height: 420px; }

.etiquette-heros {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(158, 216, 180, 0.45);
  border-radius: 100px;
  color: #9ED8B4;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Barre de recherche ---------------------------------------- */
.recherche {
  background: rgba(246, 243, 236, 0.97);
  border-radius: 14px;
  padding: 0.875rem;
  box-shadow: 0 26px 64px rgba(4, 18, 11, 0.5);
  max-width: 960px;
}
.recherche__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5C6B62;
}

/* --- Bandeau de chiffres ---------------------------------------- */
.chiffres { background: #0B5C33; color: #fff; }
.chiffres__valeur {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}
.chiffres__libelle { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

/* --- Carte de bien ---------------------------------------------- */
.carte-bien {
  background: #fff;
  border: 1px solid rgba(15, 28, 22, 0.1);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #0F1C16;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.carte-bien:hover,
.carte-bien:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 28, 22, 0.16);
  border-color: rgba(11, 92, 51, 0.35);
  color: #0F1C16;
}
.carte-bien__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #E7E2D6 center / cover no-repeat;
}
.carte-bien__photo--large { aspect-ratio: 16 / 10; }
.carte-bien__prix {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: #0B5C33;
}
.carte-bien__meta {
  border-top: 1px solid rgba(15, 28, 22, 0.09);
  font-size: 0.85rem;
  color: #48564E;
}

/* --- Badges ------------------------------------------------------ */
.badge-type {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.375rem 0.7rem;
  border-radius: 6px;
  color: #fff;
  background: #0B5C33;
}
.badge-type--maison { background: #B4671C; }
.badge-type--agricole { background: #0F1C16; }
.badge-type--plantation { background: #3C6B45; }
.badge-type--informatique { background: #4A5A66; }
.badge-type--vehicule { background: #2F4858; }
.badge-type--immeuble { background: #7A3E2B; }

.badge-reference {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 28, 22, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.375rem 0.55rem;
  border-radius: 6px;
}

/* --- Pastilles de filtre ----------------------------------------- */
.pastille {
  padding: 0.5rem 0.95rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  background: #fff;
  color: #48564E;
  border: 1px solid rgba(15, 28, 22, 0.15);
  transition: background 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pastille:hover { border-color: #0B5C33; color: #0B5C33; }
.pastille.est-active { background: #0F1C16; border-color: #0F1C16; color: #fff; }

/* --- Barre de filtres -------------------------------------------- */
.barre-filtres {
  background: #fff;
  border: 1px solid rgba(15, 28, 22, 0.1);
  border-radius: 14px;
}
.barre-filtres__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5C6B62;
}
.barre-filtres .form-select { background-color: #F6F3EC; }

/* --- Grille de métiers -------------------------------------------- */
.grille-metiers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
}
.metier {
  background: #0F1C16;
  padding: 1.6rem 1.5rem;
  transition: background 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.metier:hover { background: #16382A; }
.metier__numero {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #9ED8B4;
  letter-spacing: 0.06em;
}
.metier__texte { font-size: 0.92rem; color: rgba(255, 255, 255, 0.66); }
.metier--cta {
  background: #0B5C33;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.metier--cta:hover { background: #073D22; color: #fff; }

/* --- Sections de service ------------------------------------------- */
.service__visuel {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  background: #E7E2D6 center / cover no-repeat;
}
.service__numero {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #B4671C;
  letter-spacing: 0.08em;
}

.liste-atouts { list-style: none; padding: 0; margin: 0; }
.liste-atouts li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  color: #25332B;
}
.liste-atouts .puce {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0B5C33;
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* --- Média (vidéo / photo) ------------------------------------------ */
.media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0A1A12 center / cover no-repeat;
  cursor: pointer;
  display: block;
  width: 100%;
}
.media__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 26, 17, 0.82) 0%, rgba(7, 26, 17, 0) 58%);
}
.media__legende { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; color: #fff; }
.media--petit { aspect-ratio: 16 / 10; }
.media__fond {
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
}
.media img, .media__fond { transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.media:hover .media__fond { transform: scale(1.04); }

.bouton-lecture {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: #0B5C33;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  animation: stec-pulse 2.6s ease-out infinite;
}
.bouton-lecture--petit {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  font-size: 0.75rem;
  animation: none;
}

/* --- Fiche d'un bien -------------------------------------------------- */
.fiche__photo {
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: #E7E2D6 center / cover no-repeat;
  position: relative;
}
.fiche__vignette {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #E7E2D6 center / cover no-repeat;
  border: 2px solid rgba(15, 28, 22, 0.12);
  opacity: 0.72;
  cursor: pointer;
  padding: 0;
  width: 100%;
  transition: opacity 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fiche__vignette:hover { opacity: 1; }
.fiche__vignette.est-active { border-color: #0B5C33; opacity: 1; }
.fiche__prix {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.025em;
  color: #0B5C33;
  line-height: 1.05;
}

.encart-contact {
  background: #fff;
  border: 1px solid rgba(15, 28, 22, 0.1);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 28, 22, 0.07);
}
@media (min-width: 992px) {
  .encart-contact { position: sticky; top: 100px; }
}

.cle-valeur {
  background: #fff;
  border: 1px solid rgba(15, 28, 22, 0.1);
  border-radius: 11px;
  padding: 0.85rem 1rem;
}
.cle-valeur__cle {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A968E;
}
.cle-valeur__valeur { font-size: 0.95rem; font-weight: 600; }

/* --- Offres du moment (page Nos offres) -------------------------------- */
.carte-bien__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: space-between;
  align-items: flex-start;
}
.carte-bien__badges .badge-type { position: static; }

.badge-statut {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.375rem 0.7rem;
  border-radius: 6px;
  background: #fff;
  color: #0B5C33;
  box-shadow: 0 0 0 1px rgba(11, 92, 51, 0.25);
}
.badge-statut::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge-statut--indisponible { background: #8C2B1F; color: #fff; box-shadow: none; }

.badge-medias {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 28, 22, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.375rem 0.55rem;
  border-radius: 6px;
}

.carte-bien--indisponible .carte-bien__photo { background-color: #CFCBC2; background-blend-mode: luminosity; }
.carte-bien--indisponible .carte-bien__prix { color: #5C6B62; }
.carte-bien--indisponible .bouton-lecture { color: #48564E; }

.pastille__decompte { margin-left: 0.3rem; font-size: 0.75rem; opacity: 0.6; }

.barre-filtres .form-control { background-color: #F6F3EC; }

.offre__visuel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #0A1A12 center / contain no-repeat;
}
.offre__visuel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fiche__vignette--video { position: relative; }
.fiche__vignette--video::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: #0B5C33;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Témoignages -------------------------------------------------------- */
.temoignage {
  background: #fff;
  border: 1px solid rgba(15, 28, 22, 0.1);
  border-radius: 14px;
  height: 100%;
}
.temoignage__portrait { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* --- Actions flottantes / barre mobile ----------------------------------- */
.bouton-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1040;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0B5C33;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(7, 26, 17, 0.35);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
              background 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bouton-whatsapp:hover { background: #073D22; color: #fff; transform: translateY(-2px); }

.barre-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  background: #0F1C16;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.barre-mobile a {
  flex: 1;
  padding: 1rem 0.6rem;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.barre-mobile a + a { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.barre-mobile .est-principal { background: #0B5C33; }

@media (max-width: 991.98px) {
  .bouton-whatsapp { display: none; }
  body { padding-bottom: 56px; }
}
@media (min-width: 992px) {
  .barre-mobile { display: none; }
}

/* --- Pied de page --------------------------------------------------------- */
.pied { background: #0F1C16; color: rgba(255, 255, 255, 0.7); }
.pied a { color: rgba(255, 255, 255, 0.7); }
.pied a:hover { color: #fff; }
.pied__titre { color: #fff; font-weight: 600; }
.pied__logo { height: 52px; width: auto; background: #fff; border-radius: 8px; padding: 7px 10px; }
.pied__mentions { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; }

/* --- Apparition au défilement ---------------------------------------------- */
.revelation {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.revelation.est-visible { opacity: 1; transform: none; }

/* --- Héros : diaporama d'images ------------------------------------------- */
.heros__diaporama { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.heros__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.heros__slide.est-active { opacity: 1; z-index: 1; }
.heros__slide.est-active,
.heros__slide.est-sortante {
  animation: stec-zoom-a calc(var(--duree-image, 7s) + 2.5s) cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.heros__slide:nth-child(even).est-active,
.heros__slide:nth-child(even).est-sortante { animation-name: stec-zoom-b; }
.heros__slide.est-sortante { z-index: 0; }

@keyframes stec-zoom-a {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.18) translate3d(-1.6%, -1.2%, 0); }
}
@keyframes stec-zoom-b {
  from { transform: scale(1.18) translate3d(1.6%, 0.8%, 0); }
  to   { transform: scale(1.06) translate3d(0, 0, 0); }
}

.heros__points {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}
.heros__point {
  position: relative;
  width: 2.25rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.heros__point::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}
.heros__point::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  width: 100%;
  margin-top: -1.5px;
  border-radius: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.heros__point.est-fait::after { transform: scaleX(1); }
.heros__point.est-actif::after {
  animation: stec-progression var(--duree-image, 7s) linear forwards;
}
.heros__diaporama.est-en-pause ~ .heros__points .heros__point.est-actif::after { animation-play-state: paused; }
.heros__point:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@keyframes stec-progression { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .heros__slide.est-active, .heros__slide.est-sortante { animation: none; transform: scale(1.06); }
  .heros__point.est-actif::after { animation: none; transform: scaleX(1); }
}

/* --- Animations ------------------------------------------------------------ */
@keyframes stec-pan {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.14) translateY(-14px); }
}
@keyframes stec-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(11, 92, 51, 0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(11, 92, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 92, 51, 0); }
}
@keyframes stec-apparition {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anime-apparition { animation: stec-apparition 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

/* Lecteurs vidéo (YouTube ou fichier MP4/WebM téléversé) dans les fiches. */
.fiche__photo--video { overflow: hidden; background: #0A1A12; }
.fiche__photo--video iframe,
.fiche__photo--video video,
.offre__visuel video,
[data-projet-video] video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0A1A12;
  object-fit: contain;
}
/* Vignette d'une vidéo téléversée (pas d'aperçu image) : fond sombre + bouton lecture. */
.fiche__vignette--video:not([style]) { background-color: #0A1A12; }

/* --- Page d'une offre (offre.html) -------------------------------------- */
.offre__texte { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.7; }
.offre__encart {
  background: #fff;
  border: 1px solid rgba(15, 28, 22, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}
.offre__recap > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(15, 28, 22, 0.1);
}
.offre__recap dt { font-weight: 500; color: #5C6B62; }
.offre__recap dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
