/* Configurateur, maquettes 2a et 6d */
.ec { border: 2px solid var(--encre); border-radius: 4px; background: #fff; overflow: hidden; }
.ec__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: var(--encre); color: #fff; }
.ec__tete h2 { margin: 0; font: 700 18px var(--titre); letter-spacing: -.3px; }
.ec__tete span { color: var(--magenta-clair); font: 500 11px var(--mono); text-transform: uppercase; white-space: nowrap; }
.ec__corps { padding: 22px 24px 24px; }
.ec-groupe { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.ec-groupe legend { display: block; width: 100%; margin: 0 0 10px; padding: 0; color: var(--texte); font: 600 11px var(--mono); letter-spacing: 1.5px; text-transform: uppercase; }
.ec-groupe legend span { color: var(--magenta-fonce); }
.ec-groupe legend em { color: var(--texte-3); font-style: normal; letter-spacing: .5px; }

.ec input[type="radio"], .ec input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ec-option:has(input:focus-visible), .ec-palier:has(input:focus-visible), .ec-delai:has(input:focus-visible), .ec-depot:has(input:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 2px; }

.ec-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-choix--radio { flex-direction: column; gap: 7px; }
.ec-option {
	position: relative; display: flex; align-items: center; gap: 7px; margin: 0; cursor: pointer;
	padding: 9px 16px; border: 1px solid rgba(20, 20, 20, .25); border-radius: 3px;
	color: var(--texte-2); font: 600 13px var(--corps); transition: border-color .12s, color .12s;
}
.ec-option:hover { border-color: var(--encre); color: var(--texte); }
.ec-option.est-actif { margin: -1px; padding: 9px 16px; border: 2px solid var(--encre); color: var(--texte); font-weight: 700; }
.ec-choix--chips .ec-option.est-actif::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--magenta); }
.ec-option.est-inactif { opacity: .4; cursor: not-allowed; }
.ec-option.est-inactif:hover { border-color: rgba(20, 20, 20, .25); color: var(--texte-2); }
/* Valeur relevée avec d'autres choix : cliquable, les autres choix s'ajustent (le client en est averti) */
.ec-option.est-ailleurs { border-style: dashed; color: #8A867F; }
.ec-option.est-ailleurs:hover { border-style: solid; color: var(--texte); }
.ec-liste option.est-ailleurs { color: #8A867F; }
/* Ajustement : message sous le choix cliqué, choix modifiés soulignés d'un filet magenta */
.ec-ajustement { margin: 10px 0 0; padding: 9px 12px; border-left: 3px solid var(--magenta); background: var(--fond); font-size: 12.5px; line-height: 1.5; color: var(--texte); }
.ec-groupe.est-ajuste > legend { color: var(--magenta); }
.ec-groupe.est-ajuste .ec-liste, .ec-groupe.est-ajuste .ec-option.est-actif { box-shadow: 0 0 0 3px rgba(230, 0, 126, .18); }
.ec-choix--radio .ec-option { gap: 11px; padding: 10px 14px; font-size: 13.5px; }
.ec-choix--radio .ec-option.est-actif { margin: 0; padding: 9px 13px; }
.ec-rond { width: 15px; height: 15px; flex: none; border: 1.5px solid rgba(20, 20, 20, .4); border-radius: 50%; }
.ec-option.est-actif .ec-rond { border: 5px solid var(--magenta); }
/* Choix nombreux (papiers, formats) : liste déroulante */
.ec-liste {
	width: 100%; padding: 11px 40px 11px 14px; cursor: pointer; appearance: none; -webkit-appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 2px solid var(--encre); border-radius: 3px; color: var(--texte); font: 600 13.5px var(--corps);
}
.ec-liste:hover { border-color: var(--magenta); }
.ec-liste:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.ec-liste option:disabled { color: #A8A49C; }
.ec-option__ecart { margin-left: auto; padding-left: 10px; color: var(--texte-3); font: 500 11.5px var(--mono); text-transform: uppercase; white-space: nowrap; }

.ec-paliers { overflow: hidden; border: 1px solid rgba(20, 20, 20, .2); border-radius: 3px; font: 500 12px var(--mono); }
.ec-paliers__tete, .ec-palier { display: grid; grid-template-columns: repeat(4, 1fr); }
.ec-paliers__tete { padding: 8px 14px; border-bottom: 1px solid rgba(20, 20, 20, .12); color: var(--texte-3); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.ec-palier { position: relative; margin: 0; padding: 10px 14px; cursor: pointer; color: var(--texte-2); border-bottom: 1px solid rgba(20, 20, 20, .12); }
.ec-palier:last-child { border-bottom: 0; }
.ec-palier:hover { background: var(--fond); }
.ec-palier__ht { font-weight: 600; }
.ec-palier.est-actif { background: var(--encre); color: #fff; }
.ec-palier.est-actif::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--magenta); }
.ec-palier.est-actif .ec-palier__qte { font-weight: 600; }

.ec-delais { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ec-delais__note { margin: 8px 0 0; color: var(--texte-3, #6E6A63); font-size: 12px; line-height: 1.45; }
.ec-delai { position: relative; display: flex; flex-direction: column; margin: 0; padding: 11px 12px; cursor: pointer; border: 1px solid rgba(20, 20, 20, .25); border-radius: 3px; }
.ec-delai:hover { border-color: var(--encre); }
.ec-delai strong { color: var(--texte-2); font: 600 13px var(--corps); }
.ec-delai small { margin-top: 2px; color: var(--texte-3); font: 500 10.5px var(--mono); }
.ec-delai.est-actif { padding: 10px 11px; border: 2px solid var(--magenta); }
.ec-delai.est-actif strong { color: var(--magenta); font-weight: 700; }
.ec-delai.est-inactif { opacity: .45; cursor: not-allowed; }

.ec-depot { display: block; margin: 0 0 10px; padding: 20px; cursor: pointer; text-align: center; border: 1.5px dashed rgba(20, 20, 20, .4); border-radius: 3px; transition: border-color .12s; }
.ec-depot:hover, .ec-depot.est-rempli { border-color: var(--magenta); }
.ec-depot svg { display: block; margin: 0 auto 8px; }
.ec-depot strong { display: block; margin-bottom: 3px; font: 700 14px var(--corps); overflow-wrap: anywhere; }
.ec-depot small { color: var(--texte-3); font: 500 11px var(--mono); text-transform: uppercase; }
.ec-plus-tard { margin: 0; color: var(--texte-2); font-size: 12.5px; text-align: center; }
.ec-plus-tard strong { border-bottom: 1.5px solid var(--magenta); }
.ec-offert { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 11px 14px; background: var(--fond); border: 1px solid var(--filet); border-radius: 3px; font: 600 12.5px var(--corps); }
.ec-offert span { color: var(--magenta); }
.ec-alerte { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--magenta); background: var(--fond); font-size: 13px; }

.ec-total { padding: 18px 20px; background: var(--encre); color: #fff; border-radius: 3px; }
.ec-total p { display: flex; justify-content: space-between; margin: 0 0 6px; color: rgba(255, 255, 255, .65); font: 500 13px var(--mono); }
.ec-total p:nth-child(2) { margin-bottom: 10px; }
.ec-total .ec-total__ttc { align-items: baseline; margin-bottom: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); color: #fff; font: 700 15px var(--corps); }
.ec-total__ttc strong { font: 800 28px var(--titre); }
.ec-ajout { width: 100%; padding: 15px; border: 0; border-radius: 3px; cursor: pointer; background: var(--magenta); color: #fff; font: 700 15.5px var(--corps); transition: background-color .15s; }
.ec-ajout:hover { background: var(--magenta-fonce); }
.ec-ajout:disabled { opacity: .6; cursor: progress; }
.ec-total small { display: block; margin-top: 12px; color: rgba(255, 255, 255, .55); font: 500 10.5px var(--mono); text-align: center; text-transform: uppercase; }
.ec-barre { display: none; }

@media (max-width: 991px) {
	.ec { border: 0; background: none; overflow: visible; }
	.ec__tete { display: none; }
	.ec__corps { padding: 18px 0 0; }
	.ec-groupe { margin-bottom: 16px; }
	.ec-groupe legend { margin-bottom: 8px; font-size: 10px; letter-spacing: 1.2px; }
	.ec-choix { gap: 6px; }
	.ec-choix--chips .ec-option { flex: 1 1 auto; justify-content: center; padding: 11px 12px; font-size: 12.5px; }
	.ec-choix--radio .ec-option { padding: 12px 13px; font-size: 12.5px; background: #fff; }
	.ec-option__ecart { font-size: 10px; }
	.ec-paliers { background: #fff; }
	.ec-paliers__tete, .ec-palier { grid-template-columns: 1fr 1.2fr 1.2fr; }
	.ec-masque-etroit { display: none; }
	.ec-palier { padding: 12px 13px; font-size: 11px; }
	.ec-delais { grid-template-columns: 1fr; }
	.ec-delai { background: #fff; }
	.ec-depot { padding: 16px; background: #fff; }
	.ec-offert { margin-bottom: 18px; padding: 9px 12px; background: #fff; font-size: 11px; }
	.ec-total { display: none; }
	.ec-barre {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 14px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--encre); color: #fff; border-top: 3px solid var(--magenta);
	}
	.ec-barre small { display: block; color: rgba(255, 255, 255, .6); font: 500 9.5px var(--mono); text-transform: uppercase; white-space: nowrap; }
	.ec-barre strong { display: block; font: 800 22px/1.1 var(--titre); letter-spacing: -.5px; }
	.ec-barre .ec-ajout { flex: 1; padding: 14px 8px; font-size: 14px; }
	body#product { padding-bottom: 86px; }
}

.ec-ajout--lien { display: block; text-align: center; }
.ec-ajout--lien, .ec-ajout--lien:hover { color: #fff; }
.ec-devis__texte { margin: 0 0 16px; color: var(--texte-2); font-size: 14.5px; line-height: 1.6; }
.ec-offert--devis { margin: 16px 0 0; }
@media (max-width: 991px) {
	.ec--devis .ec__corps { padding: 18px 0 0; }
}
