:root{
  --bg:#F6F2FF;
  --card:rgba(255,255,255,.78);
  --card-strong:rgba(255,255,255,.92);
  --border:rgba(120,80,200,.15);
  --border-2:rgba(120,80,200,.10);
  --text:#1f1a2a;
  --muted:rgba(31,26,42,.62);
  --primary:#7B4DFF;
  --primary2:#A88BFF;

  --shadow:0 18px 50px rgba(40,20,80,.12);
  --shadow2:0 10px 34px rgba(30,10,70,.10);

  --r:18px;
  --r2:22px;
  --rsm:14px;

  --focus:0 0 0 4px rgba(123,77,255,.18);
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
}

body{
  min-height:100vh;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(123,77,255,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(168,139,255,.22), transparent 55%),
    var(--bg);
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; }
button{ cursor:pointer; border:0; background:none; }

[hidden]{
  display:none !important;
}

/* =========================================================
   WRAPPER
========================================================= */
.parametre-bg{
  min-height:100vh;
  padding:26px 18px;
}

.parametre-shell{
  max-width:1480px;
  margin:0 auto;
}

.param-page{
  margin-top:16px;
}

/* =========================================================
   TOOLBAR
========================================================= */
.param-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:14px 16px;
  margin:0 0 18px;
  border-radius:18px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(124,92,255,.18);
  box-shadow:0 18px 50px rgba(0,0,0,.08);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.param-toolbar__left,
.param-toolbar__right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.param-toolbar__left{
  min-width:0;
}

.parametre-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(120,80,200,.16);
  color:var(--text);
  font-weight:800;
  font-size:13px;
  box-shadow:0 10px 24px rgba(30,10,70,.07);
}

.parametre-badgeBtn{
  background:rgba(123,77,255,.12);
  border-color:rgba(123,77,255,.20);
}

.tc-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* =========================================================
   BOUTONS
========================================================= */
.tc-btn,
.option-btn,
.btnSmall,
.post-button,
.tc-qty__submit,
.etapePhoto-submit,
.etapePhoto-cancel{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  white-space:nowrap;
  transition:transform .12s ease, background .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.tc-btn,
.option-btn,
.btnSmall,
.etapePhoto-cancel{
  background:rgba(255,255,255,.70);
  color:var(--text);
  border:1px solid rgba(120,80,200,.18);
  box-shadow:0 10px 24px rgba(30,10,70,.07);
}

.tc-btn:hover,
.option-btn:hover,
.btnSmall:hover,
.etapePhoto-cancel:hover{
  transform:translateY(-1px);
  background:rgba(123,77,255,.08);
}

.tc-btn-primary,
.post-button,
.tc-qty__submit,
.etapePhoto-submit{
  border:none;
  color:#fff;
  background:linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow:0 14px 28px rgba(123,77,255,.25);
}

.tc-btn-wide{
  width:100%;
}

/* =========================================================
   GRID
========================================================= */
.param-main{
  display:grid;
  grid-template-columns:minmax(760px,1fr) 360px;
  gap:24px;
  align-items:start;
}

.param-col,
.param-sidebar{
  min-width:0;
}

.param-sidebar{
  position:sticky;
  top:18px;
  align-self:start;
}

/* =========================================================
   HERO
========================================================= */
.parametre-heroCard{
  margin-top:16px;
  background:rgba(255,255,255,.65);
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.parametre-heroMedia{
  position:relative;
  height:360px;
  background-size:cover;
  background-position:center;
}

.parametre-heroOverlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 500px at 30% 20%, rgba(123,77,255,.20), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.35));
}

.parametre-heroContent{
  position:absolute;
  left:18px;
  right:18px;
  bottom:16px;
  color:#fff;
}

.parametre-heroTitle{
  margin:0 0 10px;
  font-size:46px;
  line-height:1.05;
  letter-spacing:.2px;
  text-shadow:0 12px 30px rgba(0,0,0,.35);
}

.parametre-heroBadges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:10px;
}

.parametre-heroBadges .parametre-badge{
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

/* =========================================================
   CARDS
========================================================= */
.param-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  overflow:visible;
}

.param-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--border-2);
  background:rgba(255,255,255,.40);
}

.param-card__title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.param-card__title h2,
.param-card__title h3{
  margin:0;
  font-size:1.05rem;
  font-weight:900;
}

.param-icon{
  width:30px;
  height:30px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(123,77,255,.14);
  color:var(--primary);
  font-weight:900;
}

.param-icon-btn{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:rgba(31,26,42,.55);
  transition:background .12s ease;
}

.param-icon-btn:hover{
  background:rgba(123,77,255,.10);
}

.param-muted{
  color:var(--muted);
  font-weight:800;
}

/* =========================================================
   SEARCH
========================================================= */
.tc-inline-search{
  position:relative;
  padding:14px 16px 14px;
  display:flex;
  align-items:center;
  gap:10px;
}

.tc-inline-search .tc-muted{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:rgba(123,77,255,.10);
  border:1px solid rgba(120,80,200,.14);
  color:rgba(31,26,42,.70);
}

.form-control{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(120,80,200,.18);
  background:rgba(255,255,255,.92);
  padding:11px 12px;
  outline:none;
  color:var(--text);
}

.form-control:focus{
  border-color:rgba(123,77,255,.45);
  box-shadow:var(--focus);
  background:#fff;
}

.tc-inline-search input[type="search"],
.tc-inline-search .chercheIngredient{
  height:44px;
  padding:0 14px;
}

#resultatsIngredients.results{
  margin:0 16px 14px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(120,80,200,.16);
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 50px rgba(40,20,80,.12);
  max-height:320px;
  overflow:auto;
  display:none;
}

#resultatsIngredients.results ul{
  list-style:none;
  margin:0;
  padding:0;
}

#resultatsIngredients.results li{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  cursor:pointer;
  transition:background .12s ease, transform .10s ease;
}

#resultatsIngredients.results li:hover{
  background:rgba(123,77,255,.08);
  transform:translateY(-1px);
}

/* =========================================================
   TABLE
========================================================= */
.param-split{
  padding:14px 16px 16px;
}

.param-pane__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.param-pane__head h3{
  margin:0;
  font-size:1rem;
  font-weight:900;
}

.param-table-wrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(120,80,200,.12);
  background:rgba(255,255,255,.60);
}

.param-table{
  width:100%;
  min-width:760px;
  border-collapse:separate;
  border-spacing:0;
}

.param-table thead th{
  position:sticky;
  top:0;
  z-index:1;
  background:rgba(245,240,255,.92);
  border-bottom:1px solid rgba(120,80,200,.14);
  padding:12px;
  text-align:left;
  font-size:.92rem;
  white-space:nowrap;
}

.param-table tbody td{
  padding:12px;
  border-bottom:1px solid rgba(120,80,200,.10);
  background:rgba(255,255,255,.55);
  vertical-align:middle;
}

.param-table tbody tr:hover td{
  background:rgba(123,77,255,.06);
}

.imageColumn{
  width:92px;
}

.ingredientImageWrapper{
  position:relative;
  width:64px;
  height:64px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(120,80,200,.14);
  background:rgba(123,77,255,.10);
}

.ingredientAvatar{
  width:100%;
  height:100%;
  object-fit:cover;
}

.editOverlay{
  position:absolute;
  inset:auto 8px 8px 8px;
  padding:6px 8px;
  border-radius:12px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(120,80,200,.14);
  font-size:.82rem;
  text-align:center;
  display:none;
}

.ingredientImageWrapper:hover .editOverlay{
  display:block;
}

.js-gramme-valeur{
  font-weight:800;
}

.modificationGramme,
.btnParametreType{
  color:var(--primary);
  font-weight:800;
}

.selectPreparation{
  width:100%;
  min-width:170px;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid rgba(120,80,200,.18);
  background:rgba(255,255,255,.92);
  outline:none;
}

.selectPreparation:focus{
  border-color:rgba(123,77,255,.45);
  box-shadow:var(--focus);
}

.btnDelete,
.supprimerIngredient{
  color:#b00020 !important;
  font-weight:900;
}

/* =========================================================
   SIDEBAR / STEPS
========================================================= */
.param-steps{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.step-card{
  background:rgba(255,255,255,.75);
  border:1px solid rgba(120,80,200,.12);
  border-radius:18px;
  padding:14px 14px 12px;
  box-shadow:0 10px 24px rgba(30,10,70,.06);
}

.step-card-body{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.step-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.step-number{
  font-weight:900;
}

.step-text{
  color:rgba(31,26,42,.78);
  line-height:1.5;
}

.step-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:8px;
  border-top:1px solid rgba(120,80,200,.10);
}

.sp-play{
  border:1px solid rgba(120,80,200,.18);
  background:rgba(255,255,255,.70);
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  transition:transform .12s ease, background .12s ease;
}

.sp-play:hover{
  transform:translateY(-1px);
  background:rgba(123,77,255,.08);
}

.sp-status{
  color:var(--muted);
  font-weight:900;
}

/* =========================================================
   FORM STACK
========================================================= */
.tc-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.param-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.param-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.param-meta b{
  font-weight:900;
}

.param-choice{
  display:flex;
  align-items:center;
  gap:10px;
}

.erreurType,
.erreurEtape,
.erreurTemps,
.erreurDifficulte,
.erreurCompartiment,
.erreurMateriel{
  min-height:18px;
  color:#b00020;
  font-weight:900;
}

/* =========================================================
   BODY LOCK
========================================================= */
body.modal-open{
  overflow:hidden;
}

/* =========================================================
   OVERLAYS PARAM
========================================================= */
.param-overlay{
  position:fixed;
  inset:0;
  z-index:9998;
  background:rgba(20,10,40,.38);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.param-overlay[hidden]{
  display:none !important;
}

/* compat éventuelle si ancien HTML traîne encore */
.tc-qty__overlay,
#qtyOverlay,
.etapePhoto-overlay{
  position:fixed;
  inset:0;
  z-index:9998;
  background:rgba(20,10,40,.38);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.tc-qty__overlay[hidden],
#qtyOverlay[hidden],
.etapePhoto-overlay[hidden]{
  display:none !important;
}

/* =========================================================
   CONTENEURS DE MODALES PARAM
========================================================= */
.param-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.param-modal[hidden]{
  display:none !important;
}

.param-modal[aria-hidden="true"]{
  display:none;
}

.param-modal--with-bg{
  background:rgba(20,10,40,.38);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

/* compat ancien HTML */
.tc-modal,
.modalParametre,
#qtyModal,
.etapePhoto-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.tc-modal[hidden],
.modalParametre[hidden],
#qtyModal[hidden],
.etapePhoto-modal[hidden]{
  display:none !important;
}

.tc-modal[aria-hidden="true"],
.modalParametre[aria-hidden="true"],
#qtyModal[aria-hidden="true"],
.etapePhoto-modal[aria-hidden="true"]{
  display:none;
}

/* =========================================================
   CARTES DE MODALES PARAM
========================================================= */
.param-modal__card{
  position:relative;
  width:min(620px, 100%);
  max-width:100%;
  max-height:90vh;
  overflow:auto;
  margin:auto;
  background:var(--card-strong);
  border-radius:22px;
  border:1px solid rgba(120,60,200,.15);
  box-shadow:0 25px 70px rgba(0,0,0,.25);
  padding:20px 20px 18px;
}

.param-modal__card--xs{
  width:min(560px, 100%);
}

.param-modal__card--sm{
  width:min(520px, 100%);
}

.param-modal__card--md{
  width:min(680px, 100%);
}

.param-modal__card--lg{
  width:min(720px, 100%);
  max-height:min(82vh, 760px);
}

/* compat ancien HTML */
.tc-modal__card{
  position:relative;
  width:min(620px, 100%);
  max-width:100%;
  max-height:90vh;
  overflow:auto;
  margin:auto;
  background:var(--card-strong);
  border-radius:22px;
  border:1px solid rgba(120,60,200,.15);
  box-shadow:0 25px 70px rgba(0,0,0,.25);
  padding:20px 20px 18px;
}

#modalTemps .tc-modal__card,
#difficulteModal .tc-modal__card{
  width:min(520px, 100%);
}

#compartimentsModal .tc-modal__card{
  width:min(620px, 100%);
}

#equipmentModal .tc-modal__card{
  width:min(720px, 100%);
  max-height:min(82vh, 760px);
  overflow:auto;
}

#etapeModal .tc-modal__card{
  width:min(680px, 100%);
}

/* =========================================================
   EN-TÊTES DE MODALES
========================================================= */
.param-modal__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-right:55px;
}

.param-modal__titleRow{
  display:flex;
  align-items:center;
  gap:10px;
}

.param-modal__title{
  margin:0;
  font-size:20px;
  font-weight:900;
}

.param-modal__subtitle{
  margin-top:6px;
  margin-bottom:0;
  font-size:14px;
  line-height:1.4;
  color:rgba(31,22,51,.7);
}

.param-modal__body{
  margin-top:14px;
}

/* compat ancien HTML */
.tc-modal__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-right:55px;
}

.tc-modal__titleRow{
  display:flex;
  align-items:center;
  gap:10px;
}

.tc-modal__title{
  margin:0;
  font-size:20px;
  font-weight:900;
}

.tc-modal__subtitle{
  margin-top:6px;
  margin-bottom:0;
  font-size:14px;
  line-height:1.4;
  color:rgba(31,22,51,.7);
}

.tc-modal__body{
  margin-top:14px;
}

/* =========================================================
   BOUTONS FERMER DE MODALES
========================================================= */
.param-modal__close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:none;
  border-radius:14px;
  background:rgba(120,80,255,.12);
  color:#3d2663;
  font-size:22px;
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.param-modal__close:hover{
  background:rgba(120,80,255,.18);
}

/* compat ancien HTML */
.tc-modal__close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:none;
  border-radius:14px;
  background:rgba(120,80,255,.12);
  color:#3d2663;
  font-size:22px;
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tc-modal__close:hover{
  background:rgba(120,80,255,.18);
}

/* =========================================================
   MODALE PARAMÈTRE UNITÉ
========================================================= */
.modalParametre{
  background:rgba(20,10,40,.38);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.modalParametreContent{
  position:relative;
  width:min(520px, 100%);
  max-width:100%;
  max-height:90vh;
  overflow:auto;
  margin:auto;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(120,80,200,.16);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(40,20,80,.18);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  padding:18px 16px 16px;
}

.modalParametreContent h2{
  margin:0 44px 14px 0;
  font-size:1.1rem;
  font-weight:900;
}

.closeParametre{
  position:absolute;
  top:10px;
  right:10px;
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(123,77,255,.18);
  background:rgba(123,77,255,.10);
  color:rgba(31,26,42,.75);
  font-size:22px;
  line-height:1;
}

#parametreForm{
  display:flex;
  flex-direction:column;
  gap:10px;
}

#parametreForm label{
  font-weight:900;
  color:rgba(31,26,42,.85);
  font-size:.95rem;
}

#parametreForm select{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(120,80,200,.18);
  background:rgba(255,255,255,.92);
  padding:11px 12px;
  outline:none;
}

.submitType input[type="submit"]{
  width:100%;
  border:none;
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg, var(--primary), var(--primary2));
}

/* =========================================================
   MODALE QUANTITÉ
========================================================= */
.tc-qty__card{
  position:relative;
  width:min(560px, 100%);
  max-width:100%;
  max-height:90vh;
  overflow:auto;
  margin:auto;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(120,80,200,.16);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(40,20,80,.18);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  padding:16px 16px 14px;
}

.tc-qty__close{
  position:absolute;
  top:10px;
  right:10px;
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid rgba(123,77,255,.18);
  background:rgba(123,77,255,.10);
  color:rgba(31,26,42,.75);
  font-size:22px;
  line-height:1;
  display:grid;
  place-items:center;
}

.tc-qty__form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.tc-qty__title{
  margin:0;
  font-size:20px;
  font-weight:900;
}

.tc-qty__error{
  color:#b00020;
  font-weight:900;
}

.tc-qty__loader{
  display:flex;
  justify-content:center;
  align-items:center;
}

/* =========================================================
   MODALE ÉTAPE
========================================================= */
.etape-modal__card{
  width:min(680px, 100%);
}

.etape-modal__header{
  padding-right:55px;
  margin-bottom:14px;
}

.etape-modal__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  background:rgba(120,80,255,.12);
  color:#6a38c2;
  margin-bottom:8px;
}

.etape-modal__title{
  margin:0;
  font-size:20px;
  font-weight:900;
  color:#1f1633;
}

.etape-modal__subtitle{
  margin-top:6px;
  margin-bottom:0;
  font-size:14px;
  line-height:1.4;
  color:rgba(31,22,51,.7);
}

#etapeContenu.form-control{
  min-height:120px;
  resize:vertical;
  border-radius:18px;
  padding:14px;
  background:rgba(120,80,255,.04);
}

/* =========================================================
   MODALE PHOTO ÉTAPE
========================================================= */
.etapePhoto-card{
  position:relative;
  width:min(560px, 100%);
  max-width:100%;
  max-height:90vh;
  overflow:auto;
  margin:auto;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(122,92,255,.18);
  border-radius:26px;
  box-shadow:0 22px 48px rgba(40,18,120,.18);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.etapePhoto-close{
  position:absolute;
  top:14px;
  right:14px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(122,92,255,.20);
  background:rgba(122,92,255,.10);
  color:var(--text);
  font-size:24px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.etapePhoto-header{
  padding:22px 22px 14px;
  text-align:center;
}

.etapePhoto-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  letter-spacing:.6px;
  background:rgba(122,92,255,.14);
  border:1px solid rgba(122,92,255,.20);
}

.etapePhoto-title{
  margin:10px 0 6px;
  font-size:22px;
}

.etapePhoto-subtitle{
  margin:0;
  font-size:14px;
  color:var(--muted);
}

#form-photoEtape{
  padding:0 22px 18px;
}

.etapePhoto-drop{
  margin-top:12px;
}

.etapePhoto-drop input[type="file"]{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.etapePhoto-dropLabel{
  width:100%;
  min-height:96px;
  border-radius:18px;
  border:2px dashed rgba(122,92,255,.35);
  background:rgba(122,92,255,.07);
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  cursor:pointer;
}

.etapePhoto-dropIcon{
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(122,92,255,.20);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
}

.etapePhoto-dropText strong{
  display:block;
  font-size:15px;
  font-weight:900;
}

.etapePhoto-dropText span{
  display:block;
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
}

.etapePhoto-previewWrap{
  margin-top:14px;
  display:flex;
  justify-content:center;
}

.etapePhoto-preview{
  width:min(320px, 100%);
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:18px;
  border:1px solid rgba(122,92,255,.18);
  box-shadow:0 14px 30px rgba(40,18,120,.14);
}

.etapePhoto-message{
  margin-top:12px;
  text-align:center;
  font-size:14px;
}

.etapePhoto-loader{
  margin-top:10px;
  display:flex;
  justify-content:center;
}

.etapePhoto-actions{
  margin-top:14px;
  display:flex;
  gap:12px;
  justify-content:space-between;
}

/* =========================================================
   MODALE MATÉRIEL
========================================================= */
#equipmentModal .param-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.70);
  border:1px solid rgba(120,80,200,.12);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1200px){
  .param-main{
    grid-template-columns:minmax(0,1fr);
  }

  .param-sidebar{
    position:static;
    top:auto;
  }
}

@media (max-width: 768px){
  .parametre-bg{
    padding:18px 12px;
  }

  .param-toolbar{
    padding:12px;
  }

  .parametre-heroMedia{
    height:280px;
  }

  .parametre-heroTitle{
    font-size:32px;
  }

  .param-card__head,
  .param-split,
  .param-steps{
    padding-left:12px;
    padding-right:12px;
  }

  .tc-inline-search{
    padding:12px;
  }

  .param-modal,
  .tc-modal,
  .modalParametre,
  #qtyModal,
  .etapePhoto-modal{
    padding:12px;
    align-items:flex-end;
  }

  .param-modal__card,
  .tc-modal__card,
  .modalParametreContent,
  .tc-qty__card,
  .etapePhoto-card{
    width:min(100%, 100%);
    max-height:92vh;
    border-radius:20px 20px 16px 16px;
  }
}

@media (max-width: 560px){
  .parametre-heroTitle{
    font-size:26px;
  }

  .param-toolbar__left,
  .param-toolbar__right{
    width:100%;
  }

  .param-modal__header,
  .tc-modal__header{
    padding-right:48px;
  }

  .param-modal__close,
  .tc-modal__close,
  .etapePhoto-close,
  .tc-qty__close,
  .closeParametre{
    width:38px;
    height:38px;
    font-size:20px;
  }

  .etapePhoto-actions{
    flex-direction:column;
  }

  .etapePhoto-actions > *{
    width:100%;
  }
}
/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 860px){
  .param-toolbar{
    flex-direction:column;
    align-items:stretch;
  }

  .param-toolbar__right{
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .param-main{
    grid-template-columns:1fr;
  }

  .param-sidebar{
    position:relative;
    top:auto;
  }
}

@media (max-width: 640px){
  .parametre-bg{
    padding:16px 12px;
  }

  .tc-modal,
  #qtyModal,
  #etapeModal,
  .etapePhoto-modal,
  .modalParametre{
    padding:10px;
  }

  .parametre-heroMedia{
    height:280px;
  }

  .parametre-heroTitle{
    font-size:30px;
  }

  .etapePhoto-actions{
    flex-direction:column;
  }

  .etapePhoto-submit,
  .etapePhoto-cancel{
    width:100%;
  }
}