/* BulgarIMOT UI icons 0.2.0 (03/11/2026), ajout a ui-icons.css.
   6. Titres de champs de tous les formulaires (contact EN/BG sur 126 pages, calculateur de credit,
      micro-app de taxe) et 7. liste d avantages encore en puces (accueil, contact, agences).
   CSS seul, pose avant l affichage : aucun script, aucun decalage (CLS 0). L icone prend la couleur
   du titre : rouge au repos, verte quand le validateur pose bimot-label-valid, saisons et sombre suivent. */

/* 6. Titres de champs */
.elementor-field-group-name > .elementor-field-label::before,
.elementor-field-group-email > .elementor-field-label::before,
.elementor-field-group-field_5c03570 > .elementor-field-label::before,
.elementor-field-group-message > .elementor-field-label::before,
#houzez-calculator-form label::before,
.btg-form label::before {
  font-family: houzez-iconfont !important; font-weight: 400; font-style: normal;
  display: inline-block; width: 1.15em; margin-right: .45em; text-align: center;
  line-height: 1; vertical-align: -.1em; speak: never;
}
.elementor-field-group-name > .elementor-field-label::before { content: "\e939"; }         /* personne */
.elementor-field-group-email > .elementor-field-label::before { content: "\e91d"; }        /* enveloppe */
.elementor-field-group-field_5c03570 > .elementor-field-label::before { content: "\e930"; }/* telephone */
.elementor-field-group-message > .elementor-field-label::before { content: "\e92a"; }      /* bulle */

/* 7. Liste d avantages (meme ordre en EN et en BG) */
.elementor-widget-text-editor ul.fa-ul { list-style: none; padding-left: 0; margin-left: 0; }
.elementor-widget-text-editor ul.fa-ul > li.sgLiContainer { list-style: none; margin-left: 0; }
.elementor-widget-text-editor ul.fa-ul > li.sgLiContainer > i.fa-li { display: none; }
.elementor-widget-text-editor ul.fa-ul > li.sgLiContainer > p { position: relative; padding-left: 1.75em; }
.elementor-widget-text-editor ul.fa-ul > li.sgLiContainer > p::before {
  position: absolute; left: 0; top: .1em; width: 1.25em; text-align: center; line-height: 1.3;
  font-family: houzez-iconfont !important; font-weight: 400; font-size: 1.1em; color: inherit; /* meme couleur que le texte de la raison (Damien, 03/11) */
}
.elementor-widget-text-editor ul.fa-ul > li.sgLiContainer:nth-child(1) > p::before { content: "\e983"; } /* maison verifiee */
.elementor-widget-text-editor ul.fa-ul > li.sgLiContainer:nth-child(2) > p::before { content: "\e946"; } /* horloge */
.elementor-widget-text-editor ul.fa-ul > li.sgLiContainer:nth-child(3) > p::before { content: "\e96e"; } /* liste */
.elementor-widget-text-editor ul.fa-ul > li.sgLiContainer:nth-child(4) > p::before {                    /* sourire */
  content: ""; height: 1.15em; top: .2em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 14.2c1 1.5 2.4 2.3 4 2.3s3-.8 4-2.3'/%3E%3Cpath d='M9 9.6v.4M15 9.6v.4' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 14.2c1 1.5 2.4 2.3 4 2.3s3-.8 4-2.3'/%3E%3Cpath d='M9 9.6v.4M15 9.6v.4' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.elementor-widget-text-editor ul.fa-ul > li.sgLiContainer:nth-child(5) > p::before { content: "\e925"; } /* cadenas */
@media print { .elementor-field-label::before, ul.fa-ul > li > p::before { display: none; } }

/* BulgarIMOT micro-effets « juicy » v1.3.2 (04/11/2026)
   Source : Brand Charter, page motion (Notion 40d0b5c34fbe8102988fc6a39bfc6671).
   Regles : seulement les proprietes individuelles scale / translate (et opacity, box-shadow),
   jamais la taille ni la position reelle (CLS nul) ; tout est coupe par prefers-reduced-motion ;
   aucun son. */

@media (prefers-reduced-motion: no-preference) {

  /* 1. Champ qui gonfle : halo emeraude 4 px et echelle 1,012 pendant la saisie */
  form input:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
  form textarea,
  form select {
    transition: scale .2s cubic-bezier(.2,1.8,.4,1), border-color .3s ease, box-shadow .3s ease !important;
  }
  html body form input:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):focus,
  html body form textarea:focus,
  html body form select:focus {
    scale: 1.012;
    border-color: #03976F !important;
    box-shadow: 0 0 0 4px rgba(3,151,111,.18) !important;
  }
  html[data-bim-theme="dark"] body form input:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):focus,
  html[data-bim-theme="dark"] body form textarea:focus,
  html[data-bim-theme="dark"] body form select:focus {
    border-color: #4CC79A !important;
    box-shadow: 0 0 0 4px rgba(76,199,154,.25) !important;
  }
  /* un champ en erreur garde son cadre rouge meme au focus */
  html body form input.bimot-invalid:focus,
  html body form textarea.bimot-invalid:focus {
    border-color: #C82021 !important;
    box-shadow: 0 0 0 4px rgba(200,32,33,.15) !important;
  }

  /* 2. Coche de validation qui ploppe (0 -> 1,35 x 0,8 -> 1) */
  .bimot-check-icon.visible { animation: bimFxPlop .42s cubic-bezier(.2,1.8,.4,1) both; }
  .bimot-cross-icon.visible { animation: bimFxFade .2s ease both; }

  /* 3. Champ faux qui tremble une fois (classe posee par le script, sur sortie du champ ou envoi) */
  .bim-fx-shake { animation: bimFxShake .35s cubic-bezier(.3,1.4,.4,1); }

  /* 4. Bouton principal qui respire une seule fois a l ouverture d un pop-up */
  .modal.show .houzez_agent_property_form,
  .modal.show .elementor-button[type="submit"],
  .modal.show button[type="submit"].btn-primary {
    animation: bimFxBreathe 2.2s cubic-bezier(.2,.9,.3,1) .35s 1 both;
  }

  /* 5. Envoi confirme : le bouton rebondit, la coche ploppe, un halo menthe s eteint en 1,2 s */
  .bimot-sent { animation: bimFxSent 1.2s cubic-bezier(.2,.9,.3,1) both; }
  .bimot-sent svg { animation: bimFxPlop .5s cubic-bezier(.2,1.8,.4,1) .08s both; }

  /* 6. Favori ajoute : anneau qui s ouvre autour du coeur (classe posee par le script) */
  .add-favorite-js { position: relative; }
  .add-favorite-js.bim-fx-burst::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px;
    margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid #C82021;
    pointer-events: none; animation: bimFxRing .45s cubic-bezier(.2,.9,.3,1) both;
  }
}

/* ===== v1.1.0 (03/11/2026) : deuxieme serie ===== */
@media (prefers-reduced-motion: no-preference) {

  /* 7. Icone du titre de champ vivante : elle saute de 4 px quand on entre dans le champ,
        puis ploppe en vert quand le champ devient bon (icones posees par ui-icons 0.2.0) */
  .elementor-field-group:focus-within > .elementor-field-label::before { animation: bimFxHop .45s cubic-bezier(.2,1.8,.4,1); }
  .elementor-field-label.bimot-label-valid::before { animation: bimFxPlop .42s cubic-bezier(.2,1.8,.4,1); }

  /* 8. Barre de progression du formulaire : un filet emeraude se remplit a chaque champ bon
        (largeur fixe, seule l echelle bouge : aucun decalage). --bim-p est pose par le script. */
  form.elementor-form { position: relative; }
  form.elementor-form[data-bim-p]::before {
    content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, #03976F, #4CC79A); transform-origin: 0 50%;
    scale: var(--bim-p, 0) 1; transition: scale .5s cubic-bezier(.3,1.4,.4,1); pointer-events: none;
  }
  form.elementor-form[data-bim-p="1"]::before { background: linear-gradient(90deg, #03976F, #F4C430); }

  /* 9. Bouton telephone du haut : il sonne une seule fois par visite, au premier defilement apres 5 s
        (1.2.2 : plus au chargement, l animation tardive repoussait la fin de l affichage mesuree par PageSpeed) */
  .elementor-location-header a[href^="tel:"].bim-fx-ring .elementor-button-icon svg,
  .bim-fx-phone.bim-fx-ring svg { transform-origin: 50% 60%; animation: bimFxRing 1s ease-in-out; }

  /* 10. Cartes d annonces : sur ordinateur la carte se souleve et la photo avance un peu ;
         au doigt elle s enfonce legerement */
  @media (hover: hover) {
    /* 1.3.1 : sans ombre portee (demande de Damien du 04/11/2026) */
    .item-listing-wrap { transition: translate .3s cubic-bezier(.2,.9,.3,1); }
    .item-listing-wrap:hover { translate: 0 -3px; }
    .item-listing-wrap .listing-thumb img, .item-listing-wrap .ph-img { transition: scale .5s cubic-bezier(.2,.9,.3,1); }
    .item-listing-wrap:hover .listing-thumb img, .item-listing-wrap:hover .ph-img { scale: 1.04; }
  }
  .item-listing-wrap:active { scale: .985; transition: scale .12s ease; }

  /* 11. Menu mobile : les entrees arrivent une a une a l ouverture */
  .e-n-menu-toggle[aria-expanded="true"] ~ .e-n-menu-wrapper .e-n-menu-item,
  .bim-fx-menu.open > * { animation: bimFxUp .34s cubic-bezier(.2,.9,.3,1) both; }
  .e-n-menu-toggle[aria-expanded="true"] ~ .e-n-menu-wrapper .e-n-menu-item:nth-child(2), .bim-fx-menu.open > :nth-child(2) { animation-delay: .03s; }
  .e-n-menu-toggle[aria-expanded="true"] ~ .e-n-menu-wrapper .e-n-menu-item:nth-child(3), .bim-fx-menu.open > :nth-child(3) { animation-delay: .06s; }
  .e-n-menu-toggle[aria-expanded="true"] ~ .e-n-menu-wrapper .e-n-menu-item:nth-child(4), .bim-fx-menu.open > :nth-child(4) { animation-delay: .09s; }
  .e-n-menu-toggle[aria-expanded="true"] ~ .e-n-menu-wrapper .e-n-menu-item:nth-child(5), .bim-fx-menu.open > :nth-child(5) { animation-delay: .12s; }
  .e-n-menu-toggle[aria-expanded="true"] ~ .e-n-menu-wrapper .e-n-menu-item:nth-child(6), .bim-fx-menu.open > :nth-child(6) { animation-delay: .15s; }
  .e-n-menu-toggle[aria-expanded="true"] ~ .e-n-menu-wrapper .e-n-menu-item:nth-child(n+7), .bim-fx-menu.open > :nth-child(n+7) { animation-delay: .18s; }
}
@keyframes bimFxHop  { 0%,100% { translate: 0 0; } 40% { translate: 0 -4px; } 70% { translate: 0 1px; } }
@keyframes bimFxRing { 0%,100% { rotate: 0deg; } 10%,30%,50% { rotate: -14deg; } 20%,40%,60% { rotate: 14deg; } 70% { rotate: 0deg; } }
@keyframes bimFxUp   { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* ===== 12. Logo : reflet (option B, choisie par Damien le 03/11/2026), au survol et au clic =====
   En-tete seulement (le logo blanc du pied de page ne bouge pas). Sur ordinateur, un reflet glisse une fois
   sur « IMOT » ; sur telephone l en-tete n affiche que l escargot (12/10/2026) : son bloc rouge s eclaire.
   Clic : classe bim-fx-go posee par le script. */
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .elementor-location-header a:hover .bim-logo__imot { animation: bimFxSheen .9s cubic-bezier(.4,0,.2,1) both; }
    #bimot-brand-mb a:hover .bim-ic-r { animation: bimFxGlint .9s ease both; }
  }
  .elementor-location-header .bim-logo.bim-fx-go .bim-logo__imot { animation: bimFxSheen .9s cubic-bezier(.4,0,.2,1) both; }
  #bimot-brand-mb .bim-logo.bim-fx-go .bim-ic-r { animation: bimFxGlint .9s ease both; }
  .elementor-location-header a:hover .bim-logo__imot,
  .elementor-location-header .bim-logo.bim-fx-go .bim-logo__imot {
    background: linear-gradient(105deg, #C82021 42%, #FFB3AD 50%, #C82021 58%) 100% 0 / 250% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
}
@keyframes bimFxSheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes bimFxGlint { 0%,100% { fill: #C82021; stroke: #C82021; } 45% { fill: #FF8A80; stroke: #FF8A80; } }

/* ===== 13. Menu de l en-tete (1.3.0, 04/11/2026, demande de Damien) ===== */
@media (prefers-reduced-motion: no-preference) {
  /* ordinateur : soulignement emeraude qui pousse sous l entree survolee ou ouverte */
  @media (min-width: 1025px) and (hover: hover) {
    .elementor-location-header .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title { position: relative; }
    .elementor-location-header .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title::after {
      content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 2px; border-radius: 2px;
      background: #03976F; scale: 0 1; transition: scale .3s cubic-bezier(.3,1.4,.4,1); pointer-events: none;
      border: 0 !important; /* 1.3.2 : ce pseudo-element est aussi le separateur natif d Elementor, dont on herite sinon un trait noir */
    }
    html[data-bim-theme="dark"] .elementor-location-header .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title::after { background: #4CC79A; }
    .elementor-location-header .e-n-menu-heading > .e-n-menu-item:hover > .e-n-menu-title::after,
    .elementor-location-header .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title:focus-within::after,
    .elementor-location-header .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title:has([aria-expanded="true"])::after { scale: 1 1; }
    /* liens du sous-menu : petit pas vers la droite au survol */
    .elementor-location-header .e-n-menu-content .elementor-icon-list-item > a { transition: translate .22s cubic-bezier(.2,1.8,.4,1); }
    .elementor-location-header .e-n-menu-content .elementor-icon-list-item > a:hover { translate: 4px 0; }
  }
  /* sous-menu : le panneau glisse en s ouvrant, ses liens arrivent un a un */
  .elementor-location-header .e-n-menu-content.e-active > .e-con { animation: bimFxDrop .24s cubic-bezier(.2,.9,.3,1) both; transform-origin: 50% 0; }
  .elementor-location-header .e-n-menu-content.e-active .elementor-icon-list-item { animation: bimFxUp .3s cubic-bezier(.2,.9,.3,1) both; }
  .elementor-location-header .e-n-menu-content.e-active .elementor-icon-list-item:nth-child(2) { animation-delay: .03s; }
  .elementor-location-header .e-n-menu-content.e-active .elementor-icon-list-item:nth-child(3) { animation-delay: .06s; }
  .elementor-location-header .e-n-menu-content.e-active .elementor-icon-list-item:nth-child(4) { animation-delay: .09s; }
  .elementor-location-header .e-n-menu-content.e-active .elementor-icon-list-item:nth-child(5) { animation-delay: .12s; }
  .elementor-location-header .e-n-menu-content.e-active .elementor-icon-list-item:nth-child(n+6) { animation-delay: .15s; }
  /* telephone : les entrees glissent depuis la droite (plus visible qu en 1.2) et l icone de fermeture tourne */
  .e-n-menu-toggle[aria-expanded="true"] ~ .e-n-menu-wrapper .e-n-menu-item { animation-name: bimFxSlideIn; animation-duration: .38s; }
  .e-n-menu-toggle[aria-expanded="true"] .e-n-menu-toggle-icon.e-close { animation: bimFxSpinIn .35s cubic-bezier(.2,1.8,.4,1) both; }
  /* lien clique : il pulse doucement jusqu a l arrivee de la page suivante */
  a.bim-fx-going { animation: bimFxPulse 1s ease-in-out infinite; }
}
/* 14. Barre de chargement en haut de l ecran, posee par le script au clic sur un lien du site.
       Avec « moins d animations » elle reste visible, fixe a 60 %. */
.bim-fx-load { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2147483000; pointer-events: none;
  transform-origin: 0 50%; scale: 0 1; background: linear-gradient(90deg, #03976F, #4CC79A 60%, #F4C430);
  box-shadow: 0 0 8px rgba(3,151,111,.45); }
.bim-fx-load.go { scale: .6 1; }
@media (prefers-reduced-motion: no-preference) {
  .bim-fx-load.go { animation: bimFxLoad 8s cubic-bezier(.1,.7,.2,1) forwards; }
}
@keyframes bimFxDrop    { from { opacity: 0; translate: 0 -6px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes bimFxSlideIn { from { opacity: 0; translate: 18px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes bimFxSpinIn  { from { rotate: -90deg; scale: .6; } to { rotate: 0deg; scale: 1; } }
@keyframes bimFxPulse   { 50% { opacity: .55; } }
@keyframes bimFxLoad    { 0% { scale: 0 1; } 6% { scale: .35 1; } 30% { scale: .6 1; } 100% { scale: .92 1; } }

/* 1.3.2 (04/11/2026) : menu telephone et tablette en mode clair, un filet sous chaque entree comme en mode sombre
   (jumeau de la regle de bimot-dark : html[data-bim-theme="dark"] [data-id="11ca99e1"] ... border-bottom #2C3E38) */
@media (max-width: 1279px) {
  html:not([data-bim-theme="dark"]) [data-id="11ca99e1"] .e-n-menu-heading > .e-n-menu-item { border-bottom: 1px solid #E6ECE9; }
}

@keyframes bimFxPlop  { 0% { scale: 0; } 55% { scale: 1.35 .8; } 80% { scale: .94 1.06; } 100% { scale: 1; } }
@keyframes bimFxFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes bimFxShake  { 0%,100% { translate: 0; } 20% { translate: -5px; } 40% { translate: 5px; } 60% { translate: -3px; } 80% { translate: 2px; } }
@keyframes bimFxBreathe { 0%,100% { scale: 1; box-shadow: none; } 45% { scale: 1.04; box-shadow: 0 8px 22px rgba(3,72,49,.28); } }
@keyframes bimFxSent   { 0% { scale: 1; box-shadow: 0 0 0 0 rgba(3,151,111,.45); } 18% { scale: 1.06 .9; } 36% { scale: .98 1.03; } 50% { scale: 1; } 100% { box-shadow: 0 0 0 14px rgba(3,151,111,0); } }
@keyframes bimFxRing   { from { scale: .4; opacity: .9; } to { scale: 1.6; opacity: 0; } }
