/* ===== Messages ===== */
.gc-msg{ margin: 0 0 12px; }
.gc-msg--err{ color:#a00; }

/* ===== Barre du haut ===== */
.gc-toolbar{
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: none !important;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.gc-info{ font-size: 13px; color: #6b7280; }
.gc-global-status{ margin-left: auto; font-size: 13px; }
.gc-global-status.gc-err{ color:#b91c1c; }
.gc-global-status.gc-ok{ color:#1B6B46; }

/* ===== Bouton Enregistrer ===== */
.gc-saveall{
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  background: #EACD90 !important;
  color: #1E274A !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-weight: 700;
  transform: translateZ(0);
  transition: transform .18s ease;
}
.gc-saveall:hover,
.gc-saveall:focus,
.gc-saveall:active{
  background: #EACD90 !important;
  color: #1E274A !important;
  transform: scale(1.04);
}
.gc-saveall:active{ transform: scale(0.98); }
.gc-saveall[disabled]{ opacity:.6; cursor:not-allowed; transform:none; }

/* ===== Grille ===== */
.gc-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

/* ===== Carte ===== */
.gc-card{
  background: #FFF8E4 !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 12px;
  box-shadow: none !important;
}

.gc-media{
  aspect-ratio: 1 / 1;
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* ===== Champ ===== */
.gc-field{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.gc-card .gc-input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px !important;
  font-size: 14px;
  background: #fff;
  color: #1E274A !important;
  outline: none;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, padding-right .15s ease;
}
.gc-card .gc-input::placeholder{ color:#9ca3af; }
.gc-card .gc-input:focus{
  border-color:#EACD90 !important;
  box-shadow: 0 0 0 3px rgba(234,205,144,.15) !important;
}

/* ===== Etat "modifié" ===== */
.gc-dirty .gc-input{
  border-color:#10B981 !important;
  background:#D1FAE5 !important;
}

/* ===== Etat "enregistré" : coche ===== */
.gc-field.gc-saved .gc-input{
  padding-right:36px;
  border-color:#10B981 !important;
  background:#fff !important;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'>\
<circle cx='10' cy='10' r='10' fill='%2310B981'/>\
<path d='M6 10.5l2.5 2.5L14 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
  background-repeat:no-repeat;
  background-position:right 10px center;
  background-size:20px;
}

/* ===== Statuts ===== */
.gc-status{ display:none !important; }
.gc-status.gc-err{ display:block !important; color:#b91c1c !important; }
