/* =========================================================
   COFEL — GLASS THEME
   Thème violet / glassmorphism
   ========================================================= */

/* ---------- Variables globales (branding) ---------- */
:root{
  --violet:#5a2d82;
  --violet-2:#7838a7;

  --glass: rgba(255,255,255,.08);
  --glass-hr: rgba(255,255,255,.14);

  --txt:#f5f7ff;
  --txt-dim:#e6e6ff;
  --accent:#c9b7ff;

  --radius:18px;
  --blur:18px;

  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ---------- Fond général pages configurateurs ---------- */
body{
  background:
    radial-gradient(800px 500px at 20% -10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(800px 500px at 110% 10%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, var(--violet), var(--violet-2));
  color:var(--txt);
}

/* =========================================================
   HEADER GLASS COFEL
   ========================================================= */
.cofel-header{
  position:sticky;
  top:0;
  z-index:1000;
  color:#fff;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.14),
    rgba(255,255,255,.06)
  );

  border-bottom:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(var(--blur));
}

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

.cofel-back{
  color:#fff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.35);
  padding:8px 12px;
  border-radius:12px;
  backdrop-filter: blur(10px);
}

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

.cofel-brand img{
  height:36px;
  border-radius:8px;
  object-fit:cover;
}

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

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

h1{
  margin:8px 0 14px;
  text-align:center;
  letter-spacing:.2px;
}

/* =========================================================
   FIELDSETS / BLOCS GLASS
   ========================================================= */
fieldset{
  border:1px solid rgba(255,255,255,.2);
  border-radius:20px;
  padding:16px;
  margin:16px 0;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.16),
    rgba(255,255,255,.06)
  );

  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
  overflow:visible;
  position:relative;
  z-index:1;
}

legend{
  padding:0 10px;
  font-weight:800;
  color:#fff;
  letter-spacing:.2px;
}

/* =========================================================
   FORMULAIRES
   ========================================================= */
label{
  font-weight:700;
  font-size:13px;
  color:var(--accent);
  display:block;
  margin-top:10px;
}

input[type="number"],
input[type="text"],
select{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  min-height:42px;

  background: rgba(255,255,255,.10);
  color:var(--txt);

  border:1px solid rgba(255,255,255,.24);
  border-radius:14px;
  outline:none;

  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;

  position:relative;
  z-index:2;
}

input::placeholder{
  color:#f0edff;
  opacity:.75;
}

input:focus,
select:focus{
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.16);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08) inset;
}

/* Select (options foncées) */
select{
  appearance:auto;
}

select option{
  background:#3c1f61;
  color:#fff;
}

select:focus{
  z-index:1001;
}


/* =========================================================
   RADIOS / CHECKBOX PILLS
   ========================================================= */

.radio-row label,
.pill{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;

  padding:10px 14px;
  border-radius:14px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.18),
    rgba(255,255,255,.08)
  );

  border:1px solid rgba(255,255,255,.24);
  color:#fff;
  font-weight:700;

  box-shadow: var(--shadow);
}

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

/* =========================================================
   TEXTE AIDE / HINTS
   ========================================================= */
.hint{
  color:var(--txt-dim);
  font-size:12px;
  margin-top:6px;
}

/* =========================================================
   BLOC RÉSULTATS
   ========================================================= */
.result{
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.16),
    rgba(255,255,255,.06)
  );

  border:1px solid rgba(255,255,255,.24);
  border-radius:20px;
  padding:16px;
  margin-top:18px;

  text-align:center;
  font-size:18px;

  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
}

.result span{
  font-weight:800;
}

/* =========================================================
   BOUTON AJOUT DEVIS
   ========================================================= */
#btnAddDevis{
  position:fixed;
  right:20px;
  bottom:20px;

  padding:12px 18px;
  background:#fff;
  color:#0b0b0b;

  border:none;
  border-radius:14px;
  cursor:pointer;
  font-weight:800;

  box-shadow:0 10px 24px rgba(0,0,0,.25);
  z-index:2000;

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

#btnAddDevis:active{
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
}

/* =========================================================
   FOOTER
   ========================================================= */
.cofel-footer{
  color:#f3ecff;
  font-size:12px;
  text-align:center;
  padding:24px 10px;
  opacity:.9;
}

/* =========================================================
   COFEL — AJUSTEMENTS GLASS SPÉCIFIQUES (Index / Panels)
   ========================================================= */
/* ================= FIX FINAL GLASS COFEL ================= */

/* Panel glass = simple conteneur */
.panel.glass{
  background: transparent;
}

/* Card glass = vrai effet verre Cofel */
.panel.glass > .card.glass{
  background: linear-gradient(
    160deg,
    rgba(120,56,167,.35),
    rgba(60,25,90,.55)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.18);
}
