/* HomTec Devis — styles autonomes (fonctionnent aussi sans le thème HomTec). */
.htd{--htd-rouge:#EB0738;--htd-rouge-600:#C4062F;--htd-noir:#111111;--htd-g200:#E4DEDC;--htd-g500:#615C5D;--htd-r50:#FFF3EF;display:flex;flex-direction:column;gap:20px}
.htd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border-radius:999px;border:0;cursor:pointer;font-weight:600;font-size:15px;background:linear-gradient(135deg,#F01E45 0%,#C4062F 100%);color:#FFFFFF;text-decoration:none}
.htd-btn:hover{background:linear-gradient(135deg,#C4062F 0%,#7A0319 100%);color:#FFFFFF}
.htd-btn--sombre{background:#111111}.htd-btn--sombre:hover{background:#3A3536}
.htd-btn--contour{background:#FFFFFF;color:#111111;box-shadow:inset 0 0 0 1.5px #E4DEDC}.htd-btn--contour:hover{background:#FFFFFF;color:#111111;box-shadow:inset 0 0 0 1.5px #111111}
.htd-btn--grand{min-height:56px;font-size:16px;padding:0 30px}
.htd-ajout{display:flex;flex-direction:column;gap:12px;margin:16px 0}
.htd-ajout--liste{margin:10px 0 0}
.htd-ligne{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.htd-champ{display:flex;flex-direction:column;gap:6px;margin:0}
.htd-champ label{font-weight:600;font-size:14px}
.htd-champ--qte input{width:96px}
.htd-facultatif{font-weight:400;color:#615C5D}
.htd-aide{font-size:13px;color:#615C5D;margin:0}
.htd-code-article{display:block;margin-top:6px;font-size:14px;color:#615C5D}
.htd-compteur{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;background:#FFF3EF;color:#111111;font-weight:600;font-size:14px;text-decoration:none}
.htd-compteur__n{min-width:22px;height:22px;border-radius:999px;background:#EB0738;color:#FFFFFF;font-size:12px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.htd-etape{background:#FFFFFF;border-radius:24px;box-shadow:0 0 0 1px #E4DEDC;padding:clamp(18px,3vw,28px)}
.htd-etape h2{display:flex;align-items:center;gap:12px;font-size:22px;margin:0 0 16px}
.htd-num{width:40px;height:40px;border-radius:999px;background:#EB0738;color:#FFFFFF;display:inline-flex;align-items:center;justify-content:center;font-size:17px}
.htd-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:16px}
.htd-large{grid-column:1/-1}
.htd-case{flex-direction:row;align-items:flex-start;gap:10px}
.htd-case input{width:20px;height:20px;margin-top:2px;accent-color:#EB0738}
.htd-erreur{color:#C4062F;font-weight:600;font-size:13px}
.htd [aria-invalid=true]{border-color:#C4062F!important;border-width:2px!important}
.htd-resume-erreurs{border:2px solid #C4062F;border-radius:16px;background:#FFF3EF;padding:14px 18px}
.htd-resume-erreurs a{color:#C4062F;font-weight:600}
.htd-table{width:100%;border-collapse:collapse}
.htd-table th{text-align:left;font-size:13px;color:#615C5D;font-weight:600;padding:8px 6px;border-bottom:1px solid #E4DEDC}
.htd-table td{padding:14px 6px;border-bottom:1px solid #F0EBE9;vertical-align:middle}
.htd-table td a{font-weight:600;color:#111111}
.htd-table input[type=number]{width:90px;min-height:44px;border-radius:12px;border:1.5px solid #E4DEDC;padding:0 10px}
.htd-sku,.htd-options{display:block;font-size:13px;color:#615C5D;margin-top:3px}
.htd-sku{color:#C4062F;font-weight:700}
.htd-retirer{width:44px;height:44px;border-radius:12px;border:0;background:#F7F4F3;cursor:pointer;font-size:16px}
.htd-retirer:hover{background:#FFE5DD}
.htd-actions{margin:14px 0 0}
.htd-vide{color:#615C5D;margin:0}
.htd-envoi{display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.htd-envoi span{font-size:13px;color:#615C5D;max-width:420px}
.htd-confirmation{border-radius:36px;background:linear-gradient(140deg,#2F2B2C 0%,#111111 60%,#3E1416 100%);color:#FFFFFF;padding:clamp(28px,5vw,56px)}
.htd-confirmation h2{color:#FFFFFF;margin:0 0 10px}
.htd-numero strong{font-size:20px}
.htd-piege{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
@media (max-width:600px){.htd-table thead{display:none}.htd-table td{display:block;border:0;padding:6px 0}.htd-table tr{display:block;padding:12px 0;border-bottom:1px solid #E4DEDC}}

/* ---------- Menus déroulants modernisés ---------- */
.htd .htd-select{appearance:none;-webkit-appearance:none;width:100%;min-height:52px;box-sizing:border-box;border-radius:16px;border:1.5px solid #E4DEDC;background:#FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center;padding:12px 48px 12px 16px;font:500 15px/1.4 inherit;color:#111111;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.htd .htd-select:hover{border-color:#B9B1AF}
.htd .htd-select:focus,.htd .htd-select:focus-visible{border-color:#111111;box-shadow:0 0 0 4px rgba(235,7,56,.12);outline:none}
@supports (appearance:base-select){
	.htd .htd-select,.htd .htd-select::picker(select){appearance:base-select}
	.htd .htd-select{display:flex;align-items:center;background-image:none}
	.htd .htd-select::picker-icon{content:"";width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center;transition:transform .2s;margin-left:auto}
	.htd .htd-select:open::picker-icon{transform:rotate(180deg)}
	.htd .htd-select{padding-right:16px}
	.htd .htd-select::picker(select){border:0;border-radius:18px;padding:8px;margin-top:8px;background:#FFFFFF;box-shadow:0 24px 48px -16px rgba(17,17,17,.28),0 0 0 1px #E4DEDC}
	.htd .htd-select option{border-radius:12px;padding:11px 14px;font:500 15px/1.3 inherit;color:#111111;cursor:pointer}
	.htd .htd-select option:hover,.htd .htd-select option:focus-visible{background:#FFF3EF;outline:none}
	.htd .htd-select option:checked{background:#FFF3EF;color:#C4062F;font-weight:600}
	.htd .htd-select option::checkmark{content:"";width:0}
	.htd .htd-select option[value=""]{color:#8A8384}
}

/* ---------- Zone de dépôt des fichiers ---------- */
.htd-label{font-weight:600;font-size:14px}
.htd-depot{position:relative;display:flex;align-items:center;gap:16px;padding:18px 20px;border:1.5px dashed #D9D2D0;border-radius:20px;background:#FFFFFF;cursor:pointer;transition:border-color .15s,background .15s}
.htd-depot:hover,.htd-depot--survol{border-color:#EB0738;background:#FFF3EF}
.htd-depot:focus-within{border-style:solid;border-color:#111111;box-shadow:0 0 0 4px rgba(235,7,56,.12)}
.htd-depot--rempli{border-style:solid;border-color:#EB0738}
.htd-depot__icone{flex:none;width:48px;height:48px;border-radius:999px;background:linear-gradient(135deg,#F01E45 0%,#C4062F 100%);color:#FFFFFF;display:inline-flex;align-items:center;justify-content:center}
.htd-depot__texte{display:flex;flex-direction:column;gap:2px}
.htd-depot__titre{font-weight:700;font-size:15px;color:#111111}
.htd-depot__aide{font-size:13px;color:#615C5D}
.htd-depot__input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.htd-depot__liste{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.htd-depot__liste:empty{display:none}
.htd-depot__liste li{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:#F7F4F3;font-size:13px;font-weight:600;color:#111111}
.htd-depot__liste li.htd-depot__trop{background:#FFF3EF;color:#C4062F}
