
/* GFA v1.4.7 — Appearance UX refinement */
#gfa-dm-box-v114{
  scrollbar-width:none !important;
  -ms-overflow-style:none !important;
}
#gfa-dm-box-v114::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
  display:none !important;
}

/* Keep only one final save button for branding/content. */
#gfa-brand-save,
#gfa-home-save-v133a{
  display:none!important;
}

#gfa-save-all-footer-v146{
  margin-top:22px;
  padding:18px 0 4px;
  border-top:1px solid #e8edf3;
  display:flex;
  align-items:center;
  gap:14px;
}
#gfa-save-all-v146{
  width:100%;
  min-height:48px;
  border:0;
  border-radius:10px;
  padding:12px 20px;
  background:#0c67ad;
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(12,103,173,.18);
}
#gfa-save-all-v146:hover{filter:brightness(.97)}
#gfa-save-all-v146:disabled{opacity:.6;cursor:wait}
#gfa-save-all-status-v146{
  white-space:nowrap;
  font-size:12px;
  color:#65758b;
}


/* Quick access to public Home */
#gfa-home-preview-v147{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:10px 15px;
  border-radius:10px;
  border:1px solid #dce5ef;
  background:#f7f9fc;
  color:#163b63;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
#gfa-home-preview-v147:hover{
  background:#eef4fa;
  color:#0c67ad;
  text-decoration:none;
}
#gfa-theme-apply-hint-v147{
  margin:8px 0 0;
  font-size:11px;
  color:#708096;
}
#gfa-save-all-footer-v146{
  flex-wrap:wrap;
}
#gfa-save-all-footer-v146 #gfa-save-all-v146{
  flex:1 1 360px;
}


/* =========================================================
   GFA v1.4.8 — Apparence compacte desktop + responsive
   ========================================================= */

/* Desktop large: une seule vue, sans scrollbar interne */
@media (min-width: 1200px) and (min-height: 760px){
  #gfa-dm-box-v114{
    width:min(1180px, calc(100vw - 48px)) !important;
    max-width:1180px !important;
    height:auto !important;
    max-height:calc(100vh - 32px) !important;
    overflow:hidden !important;
    padding:18px 26px 14px !important;
    box-sizing:border-box !important;
  }

  #gfa-dm-box-v114 h1,
  #gfa-dm-box-v114 h2,
  #gfa-dm-box-v114 h3{
    margin-top:0 !important;
    margin-bottom:6px !important;
    line-height:1.15 !important;
  }

  #gfa-dm-box-v114 p{
    margin-top:3px !important;
    margin-bottom:7px !important;
  }

  /* Réduit les grands espacements hérités */
  #gfa-dm-box-v114 > div,
  #gfa-dm-box-v114 > section{
    margin-top:0 !important;
  }

  /* Ligne modèle + installation */
  #gfa-dm-box-v114 select,
  #gfa-dm-box-v114 input,
  #gfa-dm-box-v114 textarea,
  #gfa-dm-box-v114 button,
  #gfa-dm-box-v114 a{
    min-height:38px !important;
  }

  #gfa-dm-box-v114 textarea{
    min-height:58px !important;
    max-height:64px !important;
    resize:none !important;
  }

  /* Blocs identité + contenu plus compacts */
  #gfa-brand-block,
  #gfa-home-content-v132{
    padding-top:10px !important;
    padding-bottom:10px !important;
    margin-top:10px !important;
  }

  /* Couleurs en une ligne */
  #gfa-brand-block .gfa-brand-grid,
  #gfa-brand-block [style*="grid"]{
    gap:10px !important;
  }

  /* Contenu home sur 2 colonnes quand possible */
  #gfa-home-content-v132{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    column-gap:14px !important;
    row-gap:8px !important;
    align-items:start !important;
  }

  #gfa-home-content-v132 > :first-child,
  #gfa-home-content-v132 > h3,
  #gfa-home-content-v132 > p{
    grid-column:1 / -1 !important;
  }

  /* Champs longs prennent toute la largeur */
  #gfa-home-content-v132 textarea,
  #gfa-home-content-v132 [data-full-width="1"]{
    grid-column:1 / -1 !important;
  }

  /* Footer final compact */
  #gfa-save-all-footer-v146{
    margin-top:10px !important;
    padding-top:12px !important;
    gap:10px !important;
  }

  #gfa-save-all-v146{
    min-height:42px !important;
  }

  #gfa-home-preview-v147{
    min-height:42px !important;
  }

  #gfa-theme-apply-hint-v147{
    margin-top:4px !important;
    margin-bottom:0 !important;
  }
}

/* Ordinateur standard / petit laptop */
@media (min-width: 992px) and (max-width: 1199px){
  #gfa-dm-box-v114{
    width:calc(100vw - 36px) !important;
    max-width:none !important;
    max-height:calc(100vh - 24px) !important;
    padding:16px 20px !important;
  }
  #gfa-home-content-v132{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px 12px !important;
  }
}

/* Tablettes */
@media (min-width: 768px) and (max-width: 991px){
  #gfa-dm-box-v114{
    width:calc(100vw - 24px) !important;
    max-width:none !important;
    max-height:calc(100vh - 24px) !important;
    overflow-y:auto !important;
    padding:16px !important;
  }

  #gfa-home-content-v132{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px 12px !important;
  }

  #gfa-save-all-footer-v146{
    position:sticky !important;
    bottom:0 !important;
    background:#fff !important;
    padding-bottom:8px !important;
    z-index:5 !important;
  }
}

/* Téléphones */
@media (max-width: 767px){
  #gfa-dm-box-v114{
    width:calc(100vw - 12px) !important;
    max-width:none !important;
    max-height:calc(100vh - 12px) !important;
    overflow-y:auto !important;
    padding:14px 12px !important;
    border-radius:14px !important;
  }

  #gfa-home-content-v132{
    display:block !important;
  }

  #gfa-save-all-footer-v146{
    position:sticky !important;
    bottom:0 !important;
    background:#fff !important;
    padding:10px 0 6px !important;
    z-index:5 !important;
  }

  #gfa-save-all-v146,
  #gfa-home-preview-v147{
    width:100% !important;
    flex:1 1 100% !important;
  }
}
