/* CYM Devis – assistant public */
.cymd {
	--cymd-accent: #00b86b;
	--cymd-encre: #111111;
	--cymd-gris: #6b7280;
	--cymd-bord: #e5e7eb;
	--cymd-fond: #f7f7f8;
	--cymd-rayon: 12px;
	max-width: 760px;
	margin: 0 auto;
	color: var(--cymd-encre);
	font-size: 16px;
	line-height: 1.45;
}
.cymd *, .cymd *::before, .cymd *::after { box-sizing: border-box; }
.cymd button { font: inherit; }

.cymd-carte-principale {
	background: #fff;
	border: 1px solid var(--cymd-bord);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}
.cymd-entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.cymd-badge { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cymd-accent); }
.cymd-etape-num { font-size: 13px; color: var(--cymd-gris); }
.cymd-progression { height: 5px; background: var(--cymd-fond); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.cymd-progression span { display: block; height: 100%; background: var(--cymd-accent); border-radius: 99px; transition: width .3s ease; }
.cymd-titre { font-size: 26px; line-height: 1.2; margin: 0 0 4px; text-align: center; font-weight: 800; }
.cymd-sous-titre { text-align: center; color: var(--cymd-gris); margin: 0 0 20px; }
.cymd-h3 { font-size: 19px; margin: 26px 0 4px; }
.cymd-groupe { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cymd-gris); margin: 16px 0 8px; }

.cymd-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cymd-cartes--2 { grid-template-columns: repeat(2, 1fr); }
.cymd-liste { display: grid; gap: 10px; }
.cymd-carte {
	display: flex; flex-direction: column; justify-content: center; gap: 2px;
	min-height: 74px; padding: 14px; text-align: left;
	background: #fff; border: 1.5px solid var(--cymd-bord); border-radius: var(--cymd-rayon);
	cursor: pointer; transition: border-color .15s, background .15s, transform .1s; color: var(--cymd-encre);
}
.cymd-liste .cymd-carte { min-height: 54px; }
.cymd-carte:hover { border-color: var(--cymd-encre); }
.cymd-carte:active { transform: scale(.99); }
.cymd-carte.is-choisi { border-color: var(--cymd-accent); background: color-mix(in srgb, var(--cymd-accent) 9%, #fff); }
.cymd-carte__titre { font-weight: 700; }
.cymd-carte__sous { font-size: 13px; color: var(--cymd-gris); }

.cymd-grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cymd-champ { display: block; margin-bottom: 14px; }
.cymd-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cymd-input {
	width: 100%; padding: 12px 14px; font: inherit; color: var(--cymd-encre);
	border: 1.5px solid var(--cymd-bord); border-radius: 10px; background: var(--cymd-fond);
}
.cymd-input:focus { outline: none; border-color: var(--cymd-encre); background: #fff; }
textarea.cymd-input { resize: vertical; }
.cymd-aide { display: block; font-size: 13px; color: var(--cymd-gris); margin-top: 6px; }
.cymd-binaire { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cymd-choix { padding: 12px; border: 1.5px solid var(--cymd-bord); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; color: var(--cymd-encre); }
.cymd-choix:hover { border-color: var(--cymd-encre); }
.cymd-choix.is-choisi { border-color: var(--cymd-accent); background: color-mix(in srgb, var(--cymd-accent) 9%, #fff); }
.cymd-case { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--cymd-gris); margin-top: 6px; }
.cymd-case input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--cymd-accent); flex: none; }
.cymd-case a { color: inherit; text-decoration: underline; }
.cymd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.cymd-autocomplete { position: relative; }
.cymd-suggestions { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--cymd-bord); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); overflow: hidden; }
.cymd-suggestions button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: #fff; cursor: pointer; color: var(--cymd-encre); }
.cymd-suggestions button:hover { background: var(--cymd-fond); }

.cymd-info { padding: 10px 14px; border-radius: 10px; font-size: 14px; background: var(--cymd-fond); color: var(--cymd-gris); }
.cymd-info.is-alerte { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.cymd-info.is-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.cymd-erreur { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 14px; }

.cymd-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }
.cymd-btn {
	background: var(--cymd-accent); color: #0b0b0b; border: 0; border-radius: 10px;
	padding: 13px 22px; font-weight: 700; cursor: pointer; transition: filter .15s;
}
.cymd-btn:hover { filter: brightness(.95); }
.cymd-btn[disabled] { opacity: .6; cursor: wait; }
.cymd-btn--ghost { background: transparent; color: var(--cymd-encre); border: 1.5px solid var(--cymd-bord); }

.cymd-prix { text-align: center; background: var(--cymd-encre); color: #fff; border-radius: var(--cymd-rayon); padding: 20px; margin-bottom: 14px; }
.cymd-prix__label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--cymd-accent); font-weight: 700; }
.cymd-prix__total { font-size: 40px; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.cymd-prix__total small { font-size: 16px; font-weight: 600; opacity: .7; }
.cymd-prix__num { font-size: 13px; opacity: .7; }
.cymd-lignes { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.cymd-lignes td { padding: 9px 0; border-bottom: 1px solid var(--cymd-bord); vertical-align: top; }
.cymd-lignes td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 600; }
.cymd-notes { font-size: 13px; color: var(--cymd-gris); padding-left: 18px; margin: 12px 0 0; }
.cymd-avantages { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font-size: 13px; font-weight: 600; margin-top: 14px; }
.cymd-avantages span { color: var(--cymd-encre); }
.cymd-paiement { text-align: center; font-size: 12.5px; color: #555; margin: 10px 0 0; }

.cymd-jours { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x mandatory; }
.cymd-jour {
	position: relative; flex: 0 0 66px; scroll-snap-align: start;
	display: flex; flex-direction: column; align-items: center; gap: 0;
	padding: 8px 4px; border: 1.5px solid var(--cymd-bord); border-radius: 10px; background: #fff; cursor: pointer; font-size: 12px; color: var(--cymd-gris);
}
.cymd-jour strong { font-size: 20px; color: var(--cymd-encre); }
.cymd-jour.is-actif { border-color: var(--cymd-encre); background: var(--cymd-encre); color: #ddd; }
.cymd-jour.is-actif strong { color: #fff; }
.cymd-pastille { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--cymd-accent); }
.cymd-plages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.cymd-plage { padding: 12px 6px; border: 1.5px solid var(--cymd-bord); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; color: var(--cymd-encre); }
.cymd-plage.is-choisi { border-color: var(--cymd-accent); background: color-mix(in srgb, var(--cymd-accent) 12%, #fff); }
.cymd-choisis { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.cymd-choisis li { display: flex; justify-content: space-between; align-items: center; background: var(--cymd-fond); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.cymd-retirer { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--cymd-gris); }
.cymd-details { margin-top: 18px; border-top: 1px solid var(--cymd-bord); padding-top: 12px; }
.cymd-details summary { cursor: pointer; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.cymd-lien { color: var(--cymd-encre); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cymd-confirmation { text-align: center; padding: 10px 0; }
.cymd-confirmation h3 { font-size: 22px; margin: 10px 0 6px; }
.cymd-check { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--cymd-accent); color: #0b0b0b; font-size: 28px; font-weight: 800; display: grid; place-items: center; }
.cymd-recap { list-style: none; padding: 0; font-weight: 600; }

@media (max-width: 640px) {
	.cymd-carte-principale { padding: 20px 16px; border-radius: 14px; }
	.cymd-titre { font-size: 22px; }
	.cymd-cartes { grid-template-columns: 1fr 1fr; }
	.cymd-grille2 { grid-template-columns: 1fr; gap: 0; }
	.cymd-prix__total { font-size: 34px; }
}

.cymd-suite { margin-top: 22px; padding: 18px; border-radius: var(--cymd-rayon); background: color-mix(in srgb, var(--cymd-accent) 8%, #fff); border: 1.5px solid color-mix(in srgb, var(--cymd-accent) 40%, #fff); text-align: center; }
.cymd-suite p { margin: 6px 0 14px; color: var(--cymd-gris); font-size: 14px; }
.cymd-btn--large { display: inline-block; padding: 15px 24px; text-decoration: none; font-size: 16px; }

.cymd-code-ok { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #166534; }
.cymd-code-ko { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #b91c1c; }
.cymd-remise { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #f0fdf4; color: #166534; font-weight: 600; font-size: 14px; text-align: center; }
.cymd-label strong { color: var(--cymd-encre); }

.cymd-carte--case.is-choisi .cymd-carte__titre { color: #0a7a43; }
.cymd-depot { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1.5px dashed #bbb; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; background: #fff; }
.cymd-depot:hover { border-color: var(--cymd-encre); }
.cymd-depot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cymd-fichiers { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.cymd-fichiers li { display: flex; justify-content: space-between; align-items: center; background: var(--cymd-fond); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
