/* =========================================================
   COFEL – COMPONENTS
   Composants réutilisables (structure & UX)
   Aucune couleur de thème ici (géré par cofel-glass.css)
   ========================================================= */

/* ---------- Layout ---------- */
.cofel-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 820px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Header ---------- */
.cofel-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cofel-header .row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cofel-back {
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 12px;
}

.cofel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cofel-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.cofel-title {
  margin: 0;
  font-size: 18px;
}

/* ---------- Fieldsets ---------- */
/* ---------- Form elements (encapsulés Cofel) ---------- */
.cofel-form fieldset {
  border-radius: 20px;
  padding: 16px;
  margin: 16px 0;
}

.cofel-form legend {
  padding: 0 10px;
  font-weight: 800;
}

.cofel-form label {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 13px;
}

.cofel-form input[type="number"],
.cofel-form input[type="text"],
.cofel-form select {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  min-height: 42px;
  border-radius: 14px;
  outline: none;
}


.cofel-form input:disabled {
  opacity: 0.75;
}

.cofel-form input::placeholder {
  opacity: 0.7;
}


/* ---------- Radio / checkbox pills ---------- */
.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.radio-row label,
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
}

.radio-row input[type="radio"],
.radio-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* ---------- Hint / helper text ---------- */
.hint {
  font-size: 12px;
  margin-top: 6px;
  opacity: 0.85;
}

/* ---------- Result block ---------- */
.result {
  border-radius: 20px;
  padding: 16px;
  margin-top: 18px;
  text-align: center;
  font-size: 18px;
}

.result span {
  font-weight: 800;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  font-weight: 800;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

/* Floating action button (ajout devis) */
.btn-fab{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
}

/* ---------- Footer ---------- */
.cofel-footer {
  font-size: 12px;
  text-align: center;
  padding: 24px 10px;
  opacity: 0.9;
}
/* =========================================================
   Cofel — Custom Select (pour configurateurs avancés)
   Utilisé par : Enseignes Drapeaux
   ========================================================= */

.native-select{
  position:absolute !important;
  opacity:0 !important;
  pointer-events:none !important;
  width:0;
  height:0;
  margin:0;
  padding:0;
  border:0;
}

.cselect{
  position:relative;
  margin-top:6px;
}

.cselect-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:14px;
  cursor:pointer;
  user-select:none;
}

.cselect-label{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:1;
}

.cselect-caret{
  width:10px;
  height:10px;
  flex:0 0 auto;
  opacity:.9;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--txt) 50%),
    linear-gradient(135deg, var(--txt) 50%, transparent 50%);
  background-size:6px 6px, 6px 6px;
  background-position:right top, right bottom;
  background-repeat:no-repeat;
  transform: translateY(1px);
}

.cselect[aria-expanded="true"] .cselect-caret{
  transform: rotate(180deg);
}

.cselect-menu{
  position:fixed;
  left:0;
  top:0;
  width:280px;
  z-index:99999;
  max-height:320px;
  overflow:auto;
  padding:6px;
  border-radius:14px;
  display:none;
}

.cselect-option{
  border-radius:10px;
  margin:4px 0;
  padding:10px 12px;
  cursor:pointer;
}

/* ===== UTILITAIRES ===== */
.hidden{ display:none !important; }

.text-right{ text-align:right; }
.text-center{ text-align:center; }

.mt-16{ margin-top:16px; }
.flex{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.input-compact{
  width:100%;
  padding:6px 8px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.10);
  color:var(--txt);
}
.input-compact.text-center{ text-align:center; }
.input-compact.text-right{ text-align:right; }

.btn-sm{
  padding:6px 10px;
  font-size:13px;
}
.admin-links{
  position:fixed;
  top:12px;
  right:12px;
  z-index:9999;
  background:var(--cofel);
  color:white;
  padding:8px 15px;
  border-radius:12px;
  font-size:14px;
}
.admin-links a{
  color:white;
  text-decoration:none;
  margin-right:10px;
}
.admin-links a:last-child{ margin-right:0; }
