/* Can See Productions – configurateur de commande et devis */
.cspc {
	--c-nuit: var(--wp--preset--color--primary, #302452);
	--c-jaune: var(--wp--preset--color--primary-alt, #ffcf31);
	--c-orange: var(--wp--preset--color--orange, #e0653e);
	--c-lavande: var(--wp--preset--color--primary-alt-accent, #796bb2);
	--c-lavande-pale: var(--wp--preset--color--primary-accent, #ece9f6);
	--c-creme: var(--wp--preset--color--tertiary, #f5f4e0);
	--c-gris: var(--wp--preset--color--secondary, #5a5275);
	--c-blanc: #fff;
	--f-titre: var(--wp--preset--font-family--bungee, Bungee, sans-serif);
	--f-texte: var(--wp--preset--font-family--lexend, Lexend, sans-serif);
	font-family: var(--f-texte);
	color: var(--c-nuit);
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}
.cspc *, .cspc *::before, .cspc *::after { box-sizing: border-box; }
.cspc [hidden] { display: none !important; }
.cspc-grille { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) {
	.cspc-grille { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
	.cspc-resume { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 20px); }
}
@media (max-width: 999px) {
	.cspc-form { display: contents; }
	.cspc-grille > * , .cspc-etape { order: 1; }
	.cspc-resume { order: 2; }
	#cspc-coordonnees { order: 3; }
}

/* étapes */
.cspc-etape { background: var(--c-blanc); border-radius: 20px; padding: clamp(20px, 4vw, 36px); margin: 0 0 24px; box-shadow: 0 2px 0 rgba(48, 36, 82, .06); border: 1px solid var(--c-lavande-pale); }
.cspc-grille .cspc-etape:last-child { margin-bottom: 0; }
.cspc-surtitre { color: var(--c-orange); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.cspc-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-orange); color: #fff; font-size: .8rem; letter-spacing: 0; }
.cspc-titre { font-family: var(--f-texte); font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.2; margin: 0 0 20px; color: var(--c-nuit); }
.cspc-intro { margin: -8px 0 16px; color: var(--c-gris); }

/* champs */
.cspc-champ { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.cspc-champ > span, .cspc-champ > legend { display: block; font-weight: 700; font-size: .95rem; margin: 0 0 6px; padding: 0; }
.cspc input:not([type]), .cspc input[type=text], .cspc input[type=email], .cspc input[type=tel], .cspc select, .cspc textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--c-nuit); background: var(--c-blanc);
	border: 2px solid var(--c-lavande-pale); border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
.cspc select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-nuit) 50%), linear-gradient(135deg, var(--c-nuit) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.cspc input:not([type=checkbox]):not([type=radio]):focus, .cspc select:focus, .cspc textarea:focus { outline: none; border-color: var(--c-lavande); box-shadow: 0 0 0 3px var(--c-lavande-pale); }
.cspc-ligne2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .cspc-ligne2 { grid-template-columns: 1fr 1fr; } }
.cspc-case { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; cursor: pointer; line-height: 1.45; }
.cspc-case input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-orange); flex: none; }
.cspc-case small { color: var(--c-gris); }
.cspc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* conseil et alertes */
.cspc-conseil, .cspc-passerelle { background: var(--c-lavande-pale); border-radius: 14px; padding: 16px 18px; margin-top: 4px; }
.cspc-conseil p, .cspc-passerelle p { margin: 0 0 12px; }
.cspc-passerelle { margin: 16px 0 0; border-left: 4px solid var(--c-orange); }
.cspc-passerelle .cspc-surtitre { margin-bottom: 6px; }
.cspc-alerte { background: var(--c-creme); border-radius: 14px; padding: 14px 16px; margin: 16px 0 0; font-size: .92rem; line-height: 1.5; }

/* offres */
.cspc-offres { display: grid; gap: 14px; }
@media (min-width: 700px) { .cspc-offres { grid-template-columns: repeat(3, 1fr); } }
.cspc-offre { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; border: 2px solid var(--c-lavande-pale); border-radius: 20px; cursor: pointer; transition: border-color .15s, background .15s; }
.cspc-offre input { position: absolute; opacity: 0; pointer-events: none; }
.cspc-offre:hover { border-color: var(--c-lavande); }
.cspc-offre.is-on { border-color: var(--c-nuit); background: var(--c-nuit); color: var(--c-creme); }
.cspc-offre:focus-within { box-shadow: 0 0 0 3px var(--c-jaune); }
.cspc-offre-nom { color: var(--c-orange); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.cspc-offre.is-on .cspc-offre-nom { color: var(--c-jaune); }
.cspc-offre-titre { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.cspc-offre-prix { font-family: var(--f-titre); font-size: 1.6rem; line-height: 1.1; margin: 6px 0 8px; }
.cspc-offre-prix small { font-family: var(--f-texte); font-size: .8rem; font-weight: 400; }
.cspc-offre ul, .cspc-infos { list-style: none; margin: 0; padding: 0; font-size: .88rem; line-height: 1.4; }
.cspc-offre li { display: flex; gap: 6px; margin: 4px 0; }
.cspc svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.cspc-offre li svg { fill: var(--c-orange); margin-top: 1px; }
.cspc-offre.is-on li svg { fill: var(--c-jaune); }

/* options */
.cspc-groupe { font-size: 1.05rem; font-weight: 800; margin: 22px 0 10px; font-family: var(--f-texte); }
.cspc-groupe:first-child { margin-top: 0; }
.cspc-tuiles { display: grid; gap: 10px; }
@media (min-width: 640px) { .cspc-tuiles { grid-template-columns: 1fr 1fr; } }
.cspc-tuile { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 2px solid var(--c-lavande-pale); border-radius: 14px; background: var(--c-blanc); min-height: 72px; }
label.cspc-tuile { cursor: pointer; }
label.cspc-tuile:hover { border-color: var(--c-lavande); }
.cspc-tuile input { position: absolute; opacity: 0; pointer-events: none; }
.cspc-tuile:focus-within { box-shadow: 0 0 0 3px var(--c-jaune); }
.cspc-tuile-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.cspc-tuile-txt strong { font-size: .98rem; }
.cspc-tuile-txt small { color: var(--c-gris); font-size: .82rem; }
.cspc-coche { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c-lavande-pale); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cspc-coche svg { opacity: 0; fill: #fff; }
.cspc-tuile.is-on { border-color: var(--c-orange); background: #fff8f4; }
.cspc-tuile.is-on .cspc-coche { background: var(--c-orange); border-color: var(--c-orange); }
.cspc-tuile.is-on .cspc-coche svg { opacity: 1; }
.cspc-tuile.is-inclus { background: var(--c-lavande-pale); border-color: var(--c-lavande-pale); }
.cspc-tuile.is-off { opacity: .55; border-style: dashed; }
.cspc-etat { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; text-align: right; flex: none; max-width: 45%; }
.cspc-tuile.is-inclus .cspc-etat svg { fill: var(--c-orange); }
.cspc-qte { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.cspc-qte button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c-nuit); background: var(--c-blanc); color: var(--c-nuit); font: inherit; font-size: 1.15rem; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; }
.cspc-qte button:disabled { opacity: .3; cursor: default; }
.cspc-qte button:not(:disabled):hover { background: var(--c-nuit); color: #fff; }
.cspc-qte output { min-width: 18px; text-align: center; font-weight: 800; }

/* pilules de lieu */
.cspc-lieux { display: flex; flex-wrap: wrap; gap: 8px; }
.cspc-pilule { cursor: pointer; }
.cspc-pilule input { position: absolute; opacity: 0; pointer-events: none; }
.cspc-pilule span { display: inline-block; padding: 10px 16px; border: 2px solid var(--c-lavande-pale); border-radius: 999px; font-size: .92rem; font-weight: 700; }
.cspc-pilule input:checked + span { background: var(--c-nuit); border-color: var(--c-nuit); color: var(--c-creme); }
.cspc-pilule input:focus-visible + span { box-shadow: 0 0 0 3px var(--c-jaune); }

/* boutons */
.cspc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; padding: 14px 24px; border-radius: 10px; border: 2px solid var(--c-jaune); background: var(--c-jaune); color: var(--c-nuit); cursor: pointer; text-decoration: none; transition: filter .15s; }
.cspc-btn:hover { filter: brightness(.95); }
.cspc-btn:disabled { opacity: .6; cursor: default; }
.cspc-btn--contour { background: transparent; border-color: var(--c-nuit); color: var(--c-nuit); }
.cspc-btn--petit { padding: 10px 16px; font-size: .92rem; }
.cspc-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cspc-boutons--col { flex-direction: column; margin-top: 20px; }
.cspc-boutons--col .cspc-btn { width: 100%; }
.cspc-note { font-size: .85rem; color: var(--c-gris); margin: 14px 0 0; }
.cspc-erreur { background: #fdece6; color: #8a2c0f; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.cspc-merci h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; }

/* résumé */
.cspc-carte { background: var(--c-nuit); color: var(--c-creme); border-radius: 20px; padding: 28px 24px; }
.cspc-carte .cspc-surtitre { color: var(--c-jaune); }
.cspc-resume-titre { font-family: var(--f-texte); font-weight: 800; font-size: 1.25rem; line-height: 1.25; margin: 0 0 16px; color: #fff; }
.cspc-lignes { list-style: none; margin: 0 0 14px; padding: 0; font-size: .92rem; }
.cspc-lignes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(245, 244, 224, .15); }
.cspc-lignes li span:last-child { white-space: nowrap; font-weight: 700; }
.cspc-lignes em { font-style: normal; color: var(--c-jaune); }
.cspc-totaux { margin: 0; font-size: .92rem; }
.cspc-totaux div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.cspc-totaux dt, .cspc-totaux dd { margin: 0; }
.cspc-totaux dd { white-space: nowrap; }
.cspc-total { font-size: 1.05rem; padding: 6px 0 !important; }
.cspc-total dd { font-family: var(--f-titre); font-size: 1.7rem; color: var(--c-jaune); line-height: 1; }
.cspc-acompte { color: rgba(245, 244, 224, .8); }
.cspc-infos { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(245, 244, 224, .15); }
.cspc-infos li { padding: 2px 0; }
.cspc-carte .cspc-passerelle { background: rgba(255, 255, 255, .08); color: var(--c-creme); }
.cspc-carte .cspc-passerelle .cspc-surtitre { color: var(--c-orange); }
.cspc-carte .cspc-alerte { background: rgba(255, 207, 49, .14); color: var(--c-creme); }
.cspc-carte .cspc-btn--contour { border-color: var(--c-creme); color: var(--c-creme); }

/* modalités */
.cspc-modalites { margin: 48px 0 0; padding: clamp(24px, 4vw, 40px); background: var(--c-creme); border-radius: 20px; }
.cspc-modalites ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: cspc; }
@media (min-width: 900px) { .cspc-modalites ol { grid-template-columns: repeat(5, 1fr); } }
.cspc-modalites li { counter-increment: cspc; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; line-height: 1.5; }
.cspc-modalites li::before { content: counter(cspc, decimal-leading-zero); font-family: var(--f-titre); color: var(--c-orange); font-size: 1.6rem; line-height: 1; }
.cspc-modalites strong { font-size: 1rem; }

/* barre mobile */
.cspc-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--c-nuit); color: var(--c-creme); box-shadow: 0 -4px 16px rgba(0, 0, 0, .15); }
.cspc-barre span { display: flex; flex-direction: column; line-height: 1.2; }
.cspc-barre small { font-size: .75rem; opacity: .8; }
.cspc-barre strong { font-family: var(--f-titre); color: var(--c-jaune); font-size: 1.25rem; }
.cspc-barre .cspc-btn { padding: 10px 16px; }
@media (min-width: 1000px) { .cspc-barre { display: none !important; } }

/* ------------------ devis imprimable ------------------ */
.cspc-print-root { display: none; }
@media print {
	@page { size: A4; margin: 14mm 14mm 16mm; }
	body > *:not(.cspc-print-root) { display: none !important; }
	html, body { background: #fff !important; }
	.cspc-print-root { display: block; }
}
.cspd { font-family: var(--wp--preset--font-family--lexend, Lexend, sans-serif); color: #302452; font-size: 10.5pt; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cspd h1 { font-family: var(--wp--preset--font-family--bungee, Bungee, sans-serif); font-size: 26pt; margin: 0 0 4px; color: #302452; font-weight: 400; }
.cspd h2 { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .06em; color: #e0653e; margin: 0 0 4px; font-weight: 800; }
.cspd p { margin: 0; }
.cspd-tete { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 3px solid #302452; margin-bottom: 14px; }
.cspd-tete img { max-height: 54px; max-width: 200px; display: block; margin-bottom: 6px; }
.cspd-ref { text-align: right; }
.cspd-ref small { color: #5a5275; font-size: 8pt; }
.cspd-blocs { display: flex; gap: 20px; margin-bottom: 14px; }
.cspd-blocs > div { flex: 1; background: #f5f4e0; border-radius: 8px; padding: 10px 12px; }
.cspd-vide { line-height: 2; color: #5a5275; }
.cspd-alerte { border: 2px solid #e0653e; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-weight: 700; }
.cspd-table, .cspd-totaux { width: 100%; border-collapse: collapse; }
.cspd-table th { background: #302452; color: #fff; text-align: left; font-size: 9pt; padding: 6px 8px; }
.cspd-table td { padding: 7px 8px; border-bottom: 1px solid #ece9f6; vertical-align: top; }
.cspd-table th:nth-child(n+2), .cspd-table td:nth-child(n+2) { text-align: right; white-space: nowrap; width: 1%; }
.cspd-table ul { margin: 4px 0 0; padding-left: 16px; color: #5a5275; font-size: 9pt; }
.cspd-totaux { width: 55%; margin: 10px 0 14px auto; }
.cspd-totaux td { padding: 4px 8px; }
.cspd-totaux td:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.cspd-ttc td { background: #ffcf31; font-size: 12pt; font-weight: 800; }
.cspd-conditions ul { margin: 0 0 14px; padding-left: 16px; font-size: 8.5pt; color: #302452; }
.cspd-signatures { display: flex; gap: 20px; page-break-inside: avoid; }
.cspd-signatures > div { flex: 1; border: 1px solid #796bb2; border-radius: 8px; padding: 10px 12px; min-height: 90px; font-size: 8.5pt; color: #5a5275; }
.cspd footer { margin-top: 16px; padding-top: 8px; border-top: 1px solid #ece9f6; font-size: 7.5pt; color: #5a5275; text-align: center; }
@media (max-width: 999px) { .cspc-etape { margin: 0; } .cspc-modalites { margin-top: 32px; } }

/* v2 : offre fixée, options repliées */
.cspc-visuel-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cspc-votre-offre { background: var(--c-blanc); border-radius: 20px; padding: clamp(20px, 4vw, 32px); margin: 0 0 24px; border-left: 6px solid var(--c-orange); display: grid; gap: 14px 32px; }
@media (min-width: 760px) { .cspc-votre-offre { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; } }
.cspc-vo-tete p { margin: 0; }
.cspc-vo-nom { font-weight: 800; font-size: 1.2rem; line-height: 1.25; margin: 2px 0 6px !important; }
.cspc-vo-prix { font-family: var(--f-titre); font-size: 2rem; line-height: 1.1; }
.cspc-vo-prix small { font-family: var(--f-texte); font-size: .85rem; }
.cspc-votre-offre ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; line-height: 1.4; display: grid; gap: 6px; }
.cspc-votre-offre li { display: flex; gap: 8px; }
.cspc-votre-offre li svg { fill: var(--c-orange); }
.cspc-details { border: 2px solid var(--c-lavande-pale); border-radius: 14px; }
.cspc-details > summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 800; position: relative; }
.cspc-details > summary::-webkit-details-marker { display: none; }
.cspc-details > summary small { font-weight: 400; color: var(--c-gris); }
.cspc-details > summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--c-orange); color: #fff; font-size: 1.2rem; line-height: 28px; text-align: center; }
.cspc-details[open] > summary::after { content: '−'; }
.cspc-details > summary:focus-visible { outline: 3px solid var(--c-jaune); border-radius: 12px; }
.cspc-details > div { padding: 0 14px 14px; }
@media (max-width: 999px) { .cspc-votre-offre { order: 0; margin: 0; } }

/* v3 : choix de date en cartes, mention champs obligatoires */
.cspc-quand { display: grid; gap: 10px; }
@media (min-width: 560px) { .cspc-quand { grid-template-columns: 1fr 1fr; } }
.cspc-qd { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--c-lavande-pale); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.cspc-qd:hover { border-color: var(--c-lavande); }
.cspc-qd input { position: absolute; opacity: 0; pointer-events: none; }
.cspc-qd-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--c-lavande-pale); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .15s; }
.cspc-qd-ico svg { width: 22px; height: 22px; fill: var(--c-nuit); }
.cspc-qd-txt { display: flex; flex-direction: column; line-height: 1.3; }
.cspc-qd-txt strong { font-size: 1rem; }
.cspc-qd-txt small { color: var(--c-gris); font-size: .85rem; }
.cspc-qd:has(input:checked) { border-color: var(--c-orange); background: #fff8f4; }
.cspc-qd:has(input:checked) .cspc-qd-ico { background: var(--c-orange); }
.cspc-qd:has(input:checked) .cspc-qd-ico svg { fill: #fff; }
.cspc-qd:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--c-jaune); }
.cspc-obligatoire { font-size: .85rem; color: var(--c-gris); margin: -8px 0 16px; }
.cspd-signatures > div { flex: 0 1 55%; margin-left: auto; }
.cspd-tete img { max-height: 80px; }
/* v4 : en-tête du devis */
.cspd-tete { align-items: flex-start; }
.cspd-id { display: flex; align-items: center; gap: 16px; }
.cspd-tete .cspd-id img { max-height: 96px; max-width: 96px; margin: 0; }
.cspd-id p { font-size: 10.5pt; line-height: 1.4; }
.cspd-id strong { font-size: 12pt; }
.cspd-contact { margin-top: 8px !important; font-size: 9.5pt; color: #5a5275; }
