/* BLACK FRIDAY - habillage.

   Volontairement AUTONOME : ce fichier ne depend d'aucune autre feuille de
   style du site. C'est ce qui permet de deposer exactement les memes fichiers
   sur hydrocureur.fr et sur camionciterne.fr, dont les CSS different.
   Toutes les regles sont prefixees .bf- : aucun risque de collision. */

/* ================= BANDEAU ================= */
.bf-bandeau {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
  margin: 10px 0 0;
  padding: 16px 22px;
  border: 2px solid #000;
  background: linear-gradient(100deg, #0a0a0a 0%, #1c1c1c 55%, #0a0a0a 100%);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.bf-bandeau:hover { border-color: #d71920; }
.bf-bandeau:focus-visible { outline: 3px solid #ffd400; outline-offset: 3px; }

/* Reflet qui balaie le bandeau, pour accrocher l'oeil sans clignoter. */
.bf-bandeau::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.10), transparent);
  animation: bf-reflet 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bf-reflet { 0% { left: -60%; } 55%, 100% { left: 115%; } }
/* Respecte le reglage systeme "reduire les animations". */
@media (prefers-reduced-motion: reduce) {
  .bf-bandeau::after { animation: none; display: none; }
}

.bf-etiquette {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: #ffd400;
  color: #000;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bf-texte { flex: 1 1 320px; min-width: 0; }
.bf-titre {
  display: block;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
}
.bf-accroche {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
  opacity: .85;
}

.bf-prix {
  flex: 0 0 auto;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  color: #ffd400;
  white-space: nowrap;
}

.bf-bouton {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  background: #d71920;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bf-bandeau:hover .bf-bouton { background: #b5141a; }

@media (max-width: 900px) {
  .bf-bandeau { gap: 12px; padding: 13px 15px; }
  .bf-etiquette { font-size: 18px; padding: 6px 11px; }
  .bf-titre { font-size: 21px; }
  .bf-accroche { font-size: 13px; }
  .bf-prix { font-size: 30px; }
  .bf-bouton { padding: 11px 17px; font-size: 14px; }
}
@media (max-width: 600px) {
  .bf-bandeau { gap: 10px; }
  .bf-texte { flex: 1 1 100%; order: 3; }
  .bf-prix { order: 2; margin-left: auto; }
  .bf-bouton { order: 4; width: 100%; justify-content: center; }
  .bf-titre { font-size: 19px; }
}

/* ================= FENETRE ================= */
.bf-modale[hidden] { display: none !important; }
.bf-modale {
  position: fixed;
  inset: 0;
  z-index: 3000;
  font-family: Arial, Helvetica, sans-serif;
}
.bf-fond {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, .82);
}
.bf-boite {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  background: #11161f;
  color: #fff;
  border: 2px solid #ffd400;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bf-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.bf-barre-titre {
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bf-barre-titre span { color: #ffd400; }
.bf-fermer {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.bf-fermer:hover { background: rgba(255,255,255,.22); }

.bf-corps {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
}

/* --- Galerie --- */
.bf-photo-grande {
  display: block;
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  background: #000;
  border: 1px solid rgba(255,255,255,.14);
}
.bf-vignettes {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.bf-vignette {
  width: 84px; height: 62px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.18);
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.bf-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-vignette[aria-current="true"] { border-color: #ffd400; }

/* --- Fiche --- */
.bf-prix-fiche {
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  color: #ffd400;
  margin-bottom: 4px;
}
.bf-prix-mention { font-size: 13px; opacity: .75; margin-bottom: 16px; }

.bf-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.bf-specs th,
.bf-specs td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  text-align: left;
  vertical-align: top;
}
.bf-specs th { width: 48%; font-weight: 700; opacity: .8; }
.bf-specs td { font-weight: 700; }

.bf-contact {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.bf-contact-nom { font-weight: 900; font-size: 16px; }
.bf-contact-role { font-size: 13px; opacity: .75; margin-bottom: 12px; }
.bf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bf-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.bf-action-tel { background: #ffd400; color: #000; }
.bf-action-mail { background: #d71920; color: #fff; }
.bf-action:hover { filter: brightness(1.1); }

@media (max-width: 860px) {
  .bf-corps { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .bf-photo-grande { max-height: 44vh; }
  .bf-prix-fiche { font-size: 36px; }
  .bf-action { flex: 1 1 100%; justify-content: center; }
}

/* Bloque le defilement de la page pendant que la fenetre est ouverte. */
body.bf-ouverte { overflow: hidden; }
