/**
 * GB — Devis multi-étapes (Brevo). Design « premium industriel » GB Couverture.
 * Stepper à jalons ronds, tuiles d'activité rondes, récap bleu pâle.
 * Thème cible : Mediverse.
 * Version: 2.0.9
 */

.gb-dv.gb-dv :where(h1, h2, h3, h4, h5, h6, p) { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
.gb-dv.gb-dv :where(a, button, input, select, textarea, label) { text-transform: none; letter-spacing: normal; }
.gb-dv [hidden] { display: none !important; }
.gb-dv * { min-width: 0; }
.gb-dv.gb-dv :where(ol, ul) { list-style: none; margin: 0; padding: 0; }

.gb-dv {
	--gb-dv-cw: 860px;
	--gb-dv-cols: 4;
	--gb-dv-pad-x: 34px;
	--gb-dv-pad-y: 34px;
	--gb-dv-radius: 24px;
	--gb-dv-or: #10529c;
	--gb-dv-or-clair: #4a86cc;
	--gb-dv-encre: #1e2a4b;
	--gb-dv-gris: #5a6a8a;
	--gb-dv-creme: #eef4fb;
	--gb-dv-fond: #ffffff;
	--gb-dv-err: #b3261e;
	--gb-dv-et-on: #10529c;
	--gb-dv-et-off: rgba(16, 82, 156, 0.28);
	--gb-dv-et-done: #ca1e1e;
	--gb-dv-ch-bg: #ffffff;
	--gb-dv-ch-bd: rgba(16, 82, 156, 0.32);
	--gb-dv-ch-radius: 12px;
	--gb-dv-ch-py: 13px;
	--gb-dv-carte-bg: #ffffff;
	--gb-dv-carte-bd: rgba(16, 82, 156, 0.4);
	--gb-dv-carte-radius: 0px;
	--gb-dv-bt-px: 32px;
	--gb-dv-bt-py: 14px;
	--gb-dv-bt-radius: 999px;
	--gb-dv-bt-txt: #ffffff;
	--gb-dv-bt-txt-h: #ffffff;
	--gb-dv-nav-bd: rgba(16, 82, 156, 0.5);
	--gb-dv-nav-txt: #10529c;
	--gb-dv-nav-bg-h: rgba(16, 82, 156, 0.08);
	--gb-dv-nav-txt-h: #10529c;
	--gb-dv-pop-bg: #ffffff;
	--gb-dv-pop-sceau: #10529c;
	--gb-dv-pop-voile: rgba(20, 29, 54, 0.9);
	--gb-dv-ease: cubic-bezier(0.22, 0.7, 0.25, 1);
	overflow-x: clip;
	color: var(--gb-dv-encre);
}
.gb-dv .gb-dv__form {
	max-width: var(--gb-dv-cw);
	margin: 0 auto;
	padding: var(--gb-dv-pad-y) var(--gb-dv-pad-x);
	background: var(--gb-dv-fond);
	border: 1px solid rgba(16, 82, 156, 0.32);
	border-radius: var(--gb-dv-radius);
	box-shadow: 0 26px 52px -30px rgba(30, 42, 75, 0.4);
}

/* ---- En-tête ---- */
.gb-dv .gb-dv__entete {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: var(--gb-dv-cw);
	margin: 0 auto 26px;
	text-align: center;
}
.gb-dv .gb-dv__surtitre {
	display: inline-flex;
	margin-bottom: 12px;
	padding: 8px 24px;
	color: #ffffff;
	background: linear-gradient(135deg, #10529c, #1e2a4b);
	border-radius: 999px;
	box-shadow: 0 12px 26px -14px rgba(16, 82, 156, 0.7);
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.gb-dv .gb-dv__titre {
	position: relative;
	display: inline-block;
	padding-bottom: 14px;
	color: var(--gb-dv-ti, var(--gb-dv-encre, #1e2a4b));
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem);
	font-weight: 800;
}
.gb-dv .gb-dv__titre::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 58px; height: 4px; border-radius: 2px; background: #ca1e1e; }
.gb-dv .gb-dv__intro { margin-top: 10px; color: var(--gb-dv-gris); line-height: 1.65; }

/* ---- Stepper à jalons ronds ---- */
.gb-dv .gb-dv__etapes {
	display: flex;
	justify-content: center;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 0 !important;
	max-width: var(--gb-dv-cw);
	margin: 0 auto 26px;
}
.gb-dv__etape { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gb-dv__etape::before {
	content: '';
	position: absolute;
	top: 24px;
	left: calc(-50% + 26px);
	right: calc(50% + 26px);
	height: 2px;
	background: var(--gb-dv-et-off);
}
.gb-dv__etape:first-child::before { display: none; }
.gb-dv__etape.is-done::before { background: var(--gb-dv-et-done); }
.gb-dv__etape.is-active::before { background: var(--gb-dv-et-done); }
.gb-dv .gb-dv__etape-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #e3ebf7;
	border-radius: 50%;
	color: #5a6a8a;
	font-weight: 800;
	transition: all 260ms var(--gb-dv-ease);
}
.gb-dv__etape.is-active .gb-dv__etape-num {
	background: linear-gradient(135deg, var(--gb-dv-et-on), #1e2a4b);
	color: #ffffff;
	transform: scale(1.08);
	box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px rgba(202, 30, 30, 0.6);
}
.gb-dv__etape.is-done .gb-dv__etape-num {
	background: var(--gb-dv-et-done);
	color: #ffffff;
}
.gb-dv .gb-dv__etape-nom { margin-top: 8px; font-size: 0.84rem; font-weight: 600; color: var(--gb-dv-gris); overflow-wrap: anywhere; }
.gb-dv__etape.is-active .gb-dv__etape-nom { color: var(--gb-dv-or); font-weight: 700; }
.gb-dv__etape.is-done .gb-dv__etape-nom { color: var(--gb-dv-encre); }

/* ---- Panneaux ---- */
.gb-dv__panneau[hidden] { display: none !important; }
.gb-dv__panneau.is-active { animation: gb-dv-entree 420ms var(--gb-dv-ease); }
@keyframes gb-dv-entree {
	from { opacity: 0; transform: translateX(26px); }
	to { opacity: 1; transform: none; }
}
.gb-dv .gb-dv__question {
	position: relative;
	padding-bottom: 12px;
	margin-bottom: 20px;
	font-size: 1.15rem;
	font-weight: 800;
}
.gb-dv .gb-dv__question::after { content: ''; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: #ca1e1e; }

/* Tuiles d'activité rondes */
.gb-dv__cartes { display: grid; grid-template-columns: repeat(var(--gb-dv-cols), minmax(0, 1fr)); gap: 14px; }
.gb-dv__cartes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gb-dv .gb-dv__carte { display: block; cursor: pointer; min-width: 0; }
.gb-dv .gb-dv__carte-in {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 118px;
	padding: 18px 14px;
	background: var(--gb-dv-carte-bg, #ffffff);
	border: 1px solid rgba(16, 82, 156, 0.28);
	border-radius: var(--gb-dv-carte-radius, 22px);
	box-shadow: 0 16px 32px -24px rgba(30, 42, 75, 0.4);
	text-align: center;
	transition: background 240ms var(--gb-dv-ease), color 240ms var(--gb-dv-ease), transform 240ms var(--gb-dv-ease);
}
.gb-dv .gb-dv__carte:hover .gb-dv__carte-in { transform: translateY(-3px); }
.gb-dv .gb-dv__carte-ico { display: inline-flex; color: var(--gb-dv-or); font-size: 1.5rem; transition: color 240ms var(--gb-dv-ease), transform 320ms var(--gb-dv-ease); }
.gb-dv .gb-dv__carte-ico i, .gb-dv .gb-dv__carte-ico svg { line-height: 1 !important; vertical-align: middle; }
.gb-dv .gb-dv__carte-ico svg { width: 1em; height: 1em; }
.gb-dv .gb-dv__carte-txt { font-weight: 700; font-size: 0.94rem; overflow-wrap: anywhere; text-transform: none; letter-spacing: normal; }
.gb-dv .gb-dv__carte input:checked + .gb-dv__carte-in,
.gb-dv .gb-dv__carte:has(input:checked) .gb-dv__carte-in {
	background: linear-gradient(135deg, #10529c, #1e2a4b);
	border-color: transparent;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 18px 34px -20px rgba(16, 82, 156, 0.8);
	color: #ffffff;
}
.gb-dv .gb-dv__carte input:checked + .gb-dv__carte-in .gb-dv__carte-ico,
.gb-dv .gb-dv__carte:has(input:checked) .gb-dv__carte-ico { color: #ffffff; transform: scale(1.08); }
.gb-dv .gb-dv__carte input:focus-visible + .gb-dv__carte-in { outline: 2px solid var(--gb-dv-or); outline-offset: 3px; }

/* Pastilles radio (oui/non, budgets…) */
.gb-dv__pastilles { display: flex; flex-wrap: wrap; gap: 12px; }
.gb-dv__pastilles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gb-dv .gb-dv__pastille {
	display: inline-flex;
	padding: 11px 24px;
	border: 1px solid var(--gb-dv-ch-bd);
	border-radius: 999px;
	background: #ffffff;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: all 220ms var(--gb-dv-ease);
}
.gb-dv .gb-dv__pastille:hover { border-color: var(--gb-dv-or); color: var(--gb-dv-or); }
.gb-dv .gb-dv__pastille:has(input:checked) {
	background: linear-gradient(135deg, #10529c, #1e2a4b);
	border-color: transparent;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
	color: #ffffff;
}
.gb-dv .gb-dv__pastille:has(input:focus-visible) { outline: 2px solid var(--gb-dv-or); outline-offset: 3px; }

/* ---- Champs ---- */
.gb-dv__panneau { display: flex; flex-direction: column; gap: 16px; }
.gb-dv__panneau[hidden] { display: none !important; }
.gb-dv__duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gb-dv__champ { display: flex; flex-direction: column; min-width: 0; }
.gb-dv .gb-dv__label { margin-bottom: 7px; font-weight: 700; font-size: 0.92rem; }
.gb-dv .gb-dv__requis { color: #ca1e1e; margin-left: 3px; }
.gb-dv .gb-dv__input {
	width: 100%;
	padding: var(--gb-dv-ch-py) 16px;
	background: var(--gb-dv-ch-bg);
	border: 1px solid var(--gb-dv-ch-bd);
	border-bottom-width: 2px;
	border-radius: var(--gb-dv-ch-radius);
	color: var(--gb-dv-encre);
	font: inherit;
	font-size: 16px;
	outline: none;
	transition: border-color 200ms var(--gb-dv-ease), box-shadow 200ms var(--gb-dv-ease);
}
.gb-dv .gb-dv__input:focus { border-color: var(--gb-dv-or); border-bottom-color: #ca1e1e; box-shadow: inset 0 -2px 0 0 #ca1e1e; }
.gb-dv .gb-dv__input.is-invalide { border-color: var(--gb-dv-err); }
.gb-dv .gb-dv__textarea { min-height: 120px; resize: vertical; }
.gb-dv .gb-dv__select { appearance: none; cursor: pointer; }
.gb-dv .gb-dv__erreur { color: var(--gb-dv-err); font-size: 0.85rem; margin-top: 6px; }
.gb-dv .gb-dv__erreur--bloc { padding: 12px 16px; background: rgba(179, 38, 30, 0.08); border: 1px solid rgba(179, 38, 30, 0.35); border-radius: 12px; }
.gb-dv__pot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Consentement */
.gb-dv__consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.gb-dv__consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gb-dv .gb-dv__consent-case {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	background: #dbe6f5;
	border-radius: 50%;
	transition: background 200ms var(--gb-dv-ease), transform 200ms var(--gb-dv-ease);
}
.gb-dv__consent input:checked + .gb-dv__consent-case { background: linear-gradient(135deg, #ca1e1e, #8f1414); transform: scale(1.08); }
.gb-dv__consent input:focus-visible + .gb-dv__consent-case { outline: 2px solid var(--gb-dv-or); outline-offset: 2px; }
.gb-dv .gb-dv__consent-txt { color: var(--gb-dv-gris); font-size: 0.88rem; line-height: 1.5; }
.gb-dv__mention { margin-top: 2px; }
.gb-dv .gb-dv__mention-titre { color: var(--gb-dv-or); font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.gb-dv .gb-dv__mention-corps { margin-top: 8px; padding: 14px 16px; background: var(--gb-dv-creme); border-radius: 12px; color: var(--gb-dv-gris); font-size: 0.86rem; line-height: 1.6; }

/* Récapitulatif : fond bleu pâle */
.gb-dv__recap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 24px;
	background: var(--gb-dv-creme);
	border: 1px solid rgba(16, 82, 156, 0.24);
	border-radius: var(--gb-dv-radius);
}
.gb-dv__recap li { display: flex; justify-content: space-between; gap: 16px; color: var(--gb-dv-gris); font-size: 0.94rem; flex-wrap: wrap; }
.gb-dv__recap li strong, .gb-dv__recap li b { color: var(--gb-dv-encre); }
.gb-dv .gb-dv__recap-cle { color: var(--gb-dv-gris); }
.gb-dv .gb-dv__recap-val { color: var(--gb-dv-encre); font-weight: 700; text-align: right; overflow-wrap: anywhere; }

/* ---- Navigation ---- */
.gb-dv__nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.gb-dv .gb-dv__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--gb-dv-bt-py) var(--gb-dv-bt-px);
	border: 0;
	border-radius: var(--gb-dv-bt-radius);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: transform 220ms var(--gb-dv-ease), box-shadow 220ms var(--gb-dv-ease), background 220ms var(--gb-dv-ease), color 220ms var(--gb-dv-ease);
}
.gb-dv .gb-dv__btn--action {
	margin-left: auto;
	background: linear-gradient(135deg, var(--gb-dv-bt-bg1, #10529c), var(--gb-dv-bt-bg2, #1e2a4b));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 14px 30px -16px rgba(16, 82, 156, 0.7);
	color: var(--gb-dv-bt-txt, #ffffff);
}
.gb-dv .gb-dv__btn--action:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg, var(--gb-dv-bt-bg1-h, #0e4886), var(--gb-dv-bt-bg2-h, #141d36));
	box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.6), 0 20px 36px -16px rgba(16, 82, 156, 0.8);
	color: var(--gb-dv-bt-txt-h, #ffffff);
}
.gb-dv .gb-dv__btn--retour { background: transparent; box-shadow: inset 0 0 0 2px var(--gb-dv-nav-bd); color: var(--gb-dv-nav-txt); }
.gb-dv .gb-dv__btn--retour:hover { background: var(--gb-dv-nav-bg-h); color: var(--gb-dv-nav-txt-h); }
.gb-dv .gb-dv__btn:focus-visible { outline: 2px solid var(--gb-dv-or); outline-offset: 3px; }
.gb-dv__spinner {
	display: none;
	width: 18px;
	height: 18px;
	margin-left: 10px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: gb-dv-tour 800ms linear infinite;
}
@keyframes gb-dv-tour { to { transform: rotate(360deg); } }
.gb-dv__btn.is-envoi { opacity: 0.85; pointer-events: none; }
.gb-dv__btn.is-envoi .gb-dv__spinner { display: inline-block; }

/* ---- Popup à sceau rond ---- */
.gb-dvp { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gb-dvp[hidden] { display: none !important; }
.gb-dvp__voile { position: absolute; inset: 0; background: var(--gb-dv-pop-voile, rgba(20, 29, 54, 0.9)); cursor: pointer; }
.gb-dvp__panneau {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	padding: 40px 34px 34px;
	background: var(--gb-dv-pop-bg, #ffffff);
	border: 1px solid rgba(16, 82, 156, 0.32);
	border-radius: 24px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
	text-align: center;
}
.gb-dvp__sceau {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	margin-bottom: 18px;
	color: #ffffff;
	background: linear-gradient(135deg, var(--gb-dv-pop-sceau, #10529c), #1e2a4b);
	border-radius: 50%;
	box-shadow: 0 0 0 6px #ffffff, 0 0 0 8px rgba(202, 30, 30, 0.5), 0 24px 44px -20px rgba(16, 82, 156, 0.6);
}
.gb-dvp__sceau svg { width: 58px; height: 58px; }
.gb-dvp__halo { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.1); }
.gb-dvp__anneau { stroke: #ffffff; stroke-dasharray: 327; stroke-dashoffset: 327; animation: gb-dvp-trace 900ms var(--gb-dv-ease, cubic-bezier(0.22, 0.7, 0.25, 1)) 200ms forwards; }
.gb-dvp__check { stroke: #ffffff; stroke-dasharray: 70; stroke-dashoffset: 70; stroke-linecap: round; stroke-linejoin: round; stroke-width: 6; animation: gb-dvp-trace 600ms var(--gb-dv-ease, cubic-bezier(0.22, 0.7, 0.25, 1)) 800ms forwards; }
@keyframes gb-dvp-trace { to { stroke-dashoffset: 0; } }
.gb-dvp .gb-dvp__titre { font-size: 1.4rem; font-weight: 800; color: #1e2a4b; margin-bottom: 8px; }
.gb-dvp .gb-dvp__texte { color: var(--gb-dv-gris, #5a6a8a); line-height: 1.6; margin-bottom: 18px; }
.gb-dvp__etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; text-align: left; list-style: none; padding: 0; }
.gb-dvp__etape { display: flex; align-items: center; color: #1e2a4b; }
.gb-dvp__puce {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-right: 14px;
	background: linear-gradient(135deg, #10529c, #1e2a4b);
	border-radius: 50%;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(202, 30, 30, 0.5);
	color: #ffffff;
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1 !important;
}
.gb-dvp__etape-txt { min-width: 0; }
.gb-dvp__suite { margin-bottom: 18px; text-align: left; }
.gb-dvp .gb-dvp__suite-titre { font-weight: 800; color: #1e2a4b; font-size: 1.02rem; margin-bottom: 8px; }
.gb-dvp__tel { display: block; padding: 14px 16px; background: var(--gb-dv-creme, #eef4fb); border-radius: 14px; margin-bottom: 18px; text-decoration: none; }
.gb-dvp .gb-dvp__tel-label { display: block; color: var(--gb-dv-gris, #5a6a8a); font-size: 0.82rem; }
.gb-dvp .gb-dvp__tel-num { color: var(--gb-dv-or, #10529c); font-size: 1.2rem; font-weight: 800; }
.gb-dvp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 34px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #10529c, #1e2a4b);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
	color: #ffffff;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: transform 220ms var(--gb-dv-ease, cubic-bezier(0.22, 0.7, 0.25, 1)), box-shadow 220ms var(--gb-dv-ease, cubic-bezier(0.22, 0.7, 0.25, 1));
}
.gb-dvp__btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.6); }
.gb-dvp__btn:focus-visible { outline: 2px solid var(--gb-dv-or, #10529c); outline-offset: 3px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
	.gb-dv__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gb-dv__duo { grid-template-columns: minmax(0, 1fr); }
	.gb-dv .gb-dv__etape-nom { display: none; }
}
@media (max-width: 480px) {
	.gb-dv .gb-dv__form { padding: 24px 16px; }
	/* Deux colonnes compactes : 8 prestations = 4 rangées, pas 8 */
	.gb-dv__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.gb-dv .gb-dv__carte-in { padding: 14px 10px; gap: 8px; }
	.gb-dv .gb-dv__carte-ico { font-size: 1.15rem; }
	.gb-dv .gb-dv__carte-txt { font-size: 0.85rem; line-height: 1.3; }
	.gb-dv__nav { flex-direction: column-reverse; }
	.gb-dv .gb-dv__btn--action { margin-left: 0; width: 100%; }
	.gb-dv .gb-dv__btn--retour { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.gb-dv__panneau.is-active { animation: none; }
	.gb-dv__spinner, .gb-dvp__anneau, .gb-dvp__check { animation: none; }
	.gb-dvp__anneau, .gb-dvp__check { stroke-dashoffset: 0; }
}
