/* CDB Estimation — styles
   Palette : #FFCF23 (jaune) · #000000 · #FFFFFF · #C9C9C9 · #F8F8F8
   Typos   : "Nothing You Could Do" (manuscrit) · "Hanken Grotesk" (texte)

   NOTE SPÉCIFICITÉ : chaque sélecteur est préfixé par .cdb-est ou .cdb-nl
   et tous les pseudo-états (:hover/:focus/:active/:visited/:focus-visible)
   sont couverts pour neutraliser les couleurs d'accent du thème (Hello
   Elementor applique du rose par défaut). Les propriétés que le thème
   manipule (background/color/border-color/box-shadow/outline) sont
   verrouillées avec !important sur les états interactifs. */

.cdb-est,
.cdb-est *,
.cdb-nl,
.cdb-nl * { box-sizing: border-box; }

.cdb-est {
	font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #000000;
	background: #FFFFFF;
}

/* Force la police sur TOUS les descendants : bat les règles du thème
   (body, h1-h6, button, input...) qui ciblent les éléments enfants.
   Seul l'eyebrow manuscrit fait exception (réglé plus bas). */
.cdb-est :where(h1, h2, h3, h4, h5, h6, p, span, div, button, a, input, textarea, label, li, ul) {
	font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===========================================================
   RESET CIBLÉ : neutralise les états du thème sur NOS éléments
   =========================================================== */
.cdb-est button,
.cdb-est a,
.cdb-est input,
.cdb-est textarea,
.cdb-nl button,
.cdb-nl a,
.cdb-nl input {
	font-family: "Hanken Grotesk", sans-serif;
	transition: background-color .15s, border-color .15s, color .15s, filter .15s;
}

/* Tout bouton du formulaire : pas de style natif/thème par défaut */
.cdb-est button,
.cdb-nl button {
	box-shadow: none;
	text-decoration: none;
}
.cdb-est button:hover,
.cdb-est button:focus,
.cdb-est button:active,
.cdb-est button:focus-visible,
.cdb-nl button:hover,
.cdb-nl button:focus,
.cdb-nl button:active,
.cdb-nl button:focus-visible {
	box-shadow: none;
	outline: none;
}

/* Liens : jamais la couleur du thème, jamais violet "visited" */
.cdb-est a,
.cdb-est a:link,
.cdb-est a:visited,
.cdb-nl a,
.cdb-nl a:link,
.cdb-nl a:visited {
	text-decoration: none;
}

/* ---- Champs partagés ---- */
.cdb-est .cdb-input,
.cdb-nl .cdb-input {
	border: 1px solid #C9C9C9;
	padding: 14px 15px;
	font-size: 14.5px;
	color: #000000;
	outline: none;
	width: 100%;
	background: #FFFFFF;
	border-radius: 0;
}
.cdb-est .cdb-input:hover,
.cdb-nl .cdb-input:hover { border-color: #C9C9C9 !important; }
.cdb-est .cdb-input:focus,
.cdb-est .cdb-input:focus-visible,
.cdb-nl .cdb-input:focus,
.cdb-nl .cdb-input:focus-visible {
	border-color: #FFCF23 !important;
	box-shadow: 0 0 0 2px rgba(255,207,35,.25) !important;
	outline: none !important;
}
.cdb-est .cdb-input::placeholder,
.cdb-nl .cdb-input::placeholder { color: #C9C9C9; opacity: 1; }
.cdb-est .cdb-label {
	font-size: 13px;
	font-weight: 600;
	color: #000000;
	margin-bottom: 6px;
	display: block;
}

/* ===========================================================
   WIZARD
   =========================================================== */
.cdb-est .cdb-est-wizard-wrap {
	background: #F8F8F8;
	padding: 56px 40px 80px;
}
.cdb-est .cdb-est-card,
.cdb-est .cdb-est-confirm {
	max-width: 820px;
	margin: 0 auto;
}
.cdb-est .cdb-est-card {
	background: #FFFFFF;
	border: 1px solid #C9C9C9;
}

/* progress */
.cdb-est .cdb-est-progress { padding: 26px 36px 0; }
.cdb-est .cdb-est-progress-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 10px;
}
.cdb-est .cdb-est-step-label { font-weight: 700; font-size: 14px; color: #000000; }
.cdb-est .cdb-est-step-pct { font-size: 13px; color: #C9C9C9; }
.cdb-est .cdb-est-progress-bar { height: 7px; background: #F8F8F8; border: 1px solid #C9C9C9; overflow: hidden; }
.cdb-est .cdb-est-progress-fill { height: 100%; background: #FFCF23; transition: width .25s ease; }

/* head */
.cdb-est .cdb-est-head { padding: 30px 36px 8px; }
.cdb-est .cdb-est-step-eyebrow {
	font-family: "Nothing You Could Do", cursive;
	color: #FFCF23;
	font-size: 24px;
	line-height: 1.2;
	margin-bottom: 4px;
	min-height: 26px;
}
.cdb-est .cdb-est-head h2 {
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 4px;
	letter-spacing: -.01em;
	color: #000000;
}
.cdb-est .cdb-est-head p { font-size: 14.5px; color: #000000; opacity: .55; margin: 0; }

/* body */
.cdb-est .cdb-est-body { padding: 18px 36px 8px; }
.cdb-est .cdb-est-field { margin-bottom: 24px; }
.cdb-est .cdb-est-field:last-child { margin-bottom: 0; }

.cdb-est .cdb-est-list { display: flex; flex-direction: column; gap: 12px; }
.cdb-est .cdb-est-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cdb-est .cdb-est-chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- OPTIONS (boutons sélectionnables) ----
   Tous les états forcés : sinon le thème colore hover/focus en rose. */
.cdb-est .cdb-est-opt {
	cursor: pointer;
	text-align: left;
	background: #FFFFFF;
	border: 2px solid #C9C9C9;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	color: #000000;
	border-radius: 0;
}
.cdb-est .cdb-est-opt:hover,
.cdb-est .cdb-est-opt:focus,
.cdb-est .cdb-est-opt:active,
.cdb-est .cdb-est-opt:focus-visible {
	background: #FFFFFF !important;
	border-color: #000000 !important;
	color: #000000 !important;
	box-shadow: none !important;
	outline: none !important;
}
.cdb-est .cdb-est-opt.is-selected,
.cdb-est .cdb-est-opt.is-selected:hover,
.cdb-est .cdb-est-opt.is-selected:focus,
.cdb-est .cdb-est-opt.is-selected:active,
.cdb-est .cdb-est-opt.is-selected:focus-visible {
	background: #FFCF23 !important;
	border-color: #FFCF23 !important;
	color: #000000 !important;
}
.cdb-est .cdb-est-opt-text { display: block; }
.cdb-est .cdb-est-opt-label { display: block; font-weight: 700; font-size: 16px; color: #000000; }
.cdb-est .cdb-est-opt-sub { display: block; font-size: 13px; color: #000000; opacity: .55; margin-top: 2px; }
.cdb-est .cdb-est-opt.is-selected .cdb-est-opt-sub { opacity: .75; }

/* options compactes (grille) */
.cdb-est .cdb-est-grid2 .cdb-est-opt { padding: 16px 18px; gap: 14px; }
.cdb-est .cdb-est-grid2 .cdb-est-opt-label { font-size: 15px; }

/* chips surface */
.cdb-est .cdb-est-opt-chip {
	width: auto;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 13.5px;
	color: #000000;
	gap: 0;
}

/* ---- VILLE autocomplete ---- */
.cdb-est .cdb-est-ville-field { position: relative; }
.cdb-est .cdb-est-suggest {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	position: absolute;
	left: 0;
	right: 0;
	z-index: 30;
	background: #FFFFFF;
	border: 1px solid #C9C9C9;
	max-height: 260px;
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.cdb-est .cdb-est-suggest-item {
	padding: 11px 15px;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	color: #000000;
	background: #FFFFFF;
}
.cdb-est .cdb-est-suggest-item:hover,
.cdb-est .cdb-est-suggest-item:focus {
	background: #FFCF23 !important;
	color: #000000 !important;
}
.cdb-est .cdb-est-suggest-cp { color: #C9C9C9; font-size: 12.5px; font-weight: 600; }
.cdb-est .cdb-est-suggest-item:hover .cdb-est-suggest-cp { color: #000000; }

/* ---- RÉCAP ---- */
.cdb-est .cdb-est-recap {
	background: #F8F8F8;
	border: 1px solid #C9C9C9;
	padding: 16px 18px;
	margin-bottom: 22px;
}
.cdb-est .cdb-est-recap-title {
	font-size: 12px;
	font-weight: 700;
	color: #C9C9C9;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: 10px;
}
.cdb-est .cdb-est-recap-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cdb-est .cdb-est-recap-tag {
	background: #FFFFFF;
	border: 1px solid #C9C9C9;
	font-size: 12.5px;
	font-weight: 600;
	color: #000000;
	padding: 6px 12px;
}

/* ---- FORMULAIRE FINAL ---- */
.cdb-est .cdb-est-final { display: flex; flex-direction: column; gap: 16px; }
.cdb-est .cdb-est-check {
	font-size: 12px;
	color: #000000;
	opacity: .65;
	line-height: 1.5;
	display: flex;
	gap: 9px;
	align-items: flex-start;
}
.cdb-est .cdb-est-check input { margin-top: 2px; accent-color: #FFCF23; width: auto; }
.cdb-est .cdb-est-check input:focus,
.cdb-est .cdb-est-check input:focus-visible,
.cdb-est .cdb-est-check input:checked {
	accent-color: #FFCF23 !important;
	outline: none !important;
	box-shadow: none !important;
}
.cdb-est .cdb-est-error {
	background: #FFFFFF;
	border: 1px solid #000000;
	color: #000000;
	font-size: 13px;
	padding: 10px 14px;
}

/* Bouton principal jaune — tous états verrouillés */
.cdb-est .cdb-est-submit {
	cursor: pointer;
	background: #FFCF23;
	color: #000000;
	border: 2px solid #FFCF23;
	font-weight: 700;
	font-size: 16px;
	padding: 17px;
	border-radius: 0;
}
.cdb-est .cdb-est-submit:hover,
.cdb-est .cdb-est-submit:focus,
.cdb-est .cdb-est-submit:active,
.cdb-est .cdb-est-submit:focus-visible {
	background: #000000 !important;
	color: #FFFFFF !important;
	border-color: #000000 !important;
	box-shadow: none !important;
	outline: none !important;
}
.cdb-est .cdb-est-submit:disabled,
.cdb-est .cdb-est-submit:disabled:hover {
	background: #C9C9C9 !important;
	color: #FFFFFF !important;
	border-color: #C9C9C9 !important;
	cursor: default;
}

/* ---- NAV ---- */
.cdb-est .cdb-est-nav {
	display: flex;
	padding: 8px 36px 30px;
	justify-content: space-between;
	gap: 14px;
}
.cdb-est .cdb-est-back {
	cursor: pointer;
	background: transparent;
	border: 2px solid #C9C9C9;
	color: #000000;
	font-weight: 700;
	font-size: 15px;
	padding: 13px 24px;
	border-radius: 0;
}
.cdb-est .cdb-est-back:hover,
.cdb-est .cdb-est-back:focus,
.cdb-est .cdb-est-back:active,
.cdb-est .cdb-est-back:focus-visible {
	background: #000000 !important;
	border-color: #000000 !important;
	color: #FFFFFF !important;
	box-shadow: none !important;
	outline: none !important;
}
.cdb-est .cdb-est-next {
	cursor: pointer;
	background: #FFCF23;
	color: #000000;
	border: 2px solid #FFCF23;
	font-weight: 700;
	font-size: 15px;
	padding: 15px 30px;
	border-radius: 0;
}
.cdb-est .cdb-est-next:hover:not(:disabled),
.cdb-est .cdb-est-next:focus:not(:disabled),
.cdb-est .cdb-est-next:active:not(:disabled),
.cdb-est .cdb-est-next:focus-visible:not(:disabled) {
	background: #000000 !important;
	border-color: #000000 !important;
	color: #FFFFFF !important;
	box-shadow: none !important;
	outline: none !important;
}
.cdb-est .cdb-est-next:disabled,
.cdb-est .cdb-est-next:disabled:hover {
	background: #F8F8F8 !important;
	color: #C9C9C9 !important;
	border-color: #C9C9C9 !important;
	cursor: default;
}

/* ---- CONFIRMATION ---- */
.cdb-est .cdb-est-confirm {
	background: #FFFFFF;
	border: 1px solid #C9C9C9;
	padding: 60px 44px;
	text-align: center;
}
.cdb-est .cdb-est-check-icon {
	width: 72px;
	height: 72px;
	background: #FFCF23;
	border-radius: 50%;
	margin: 0 auto 24px;
	position: relative;
}
.cdb-est .cdb-est-check-icon::after {
	content: "";
	position: absolute;
	left: 27px;
	top: 16px;
	width: 14px;
	height: 28px;
	border: solid #000000;
	border-width: 0 4px 4px 0;
	transform: rotate(45deg);
}
.cdb-est .cdb-est-confirm h2 {
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 14px;
	letter-spacing: -.01em;
	color: #000000;
}
.cdb-est .cdb-est-confirm p {
	font-size: 16px;
	line-height: 1.7;
	color: #000000;
	opacity: .6;
	margin: 0 auto 28px;
	max-width: 520px;
}
.cdb-est .cdb-est-home,
.cdb-est .cdb-est-home:link,
.cdb-est .cdb-est-home:visited {
	background: #000000;
	color: #FFFFFF !important;
	font-weight: 700;
	font-size: 15px;
	padding: 15px 28px;
	display: inline-block;
	border: 2px solid #000000;
}
.cdb-est .cdb-est-home:hover,
.cdb-est .cdb-est-home:focus,
.cdb-est .cdb-est-home:active,
.cdb-est .cdb-est-home:focus-visible {
	background: #FFCF23 !important;
	color: #000000 !important;
	border-color: #FFCF23 !important;
	box-shadow: none !important;
	outline: none !important;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 640px) {
	.cdb-est .cdb-est-wizard-wrap { padding: 32px 16px 56px; }
	.cdb-est .cdb-est-progress { padding: 22px 22px 0; }
	.cdb-est .cdb-est-head { padding: 24px 22px 8px; }
	.cdb-est .cdb-est-body { padding: 16px 22px 8px; }
	.cdb-est .cdb-est-nav { padding: 8px 22px 26px; }
	.cdb-est .cdb-est-grid2 { grid-template-columns: 1fr; }
	.cdb-est .cdb-est-head h2 { font-size: 22px; }
}

/* ===========================================================
   NEWSLETTER simple
   =========================================================== */
.cdb-nl {
	font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #000000;
	color: #FFFFFF;
	padding: 28px 26px;
	max-width: 560px;
}
.cdb-nl .cdb-nl-title {
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 14px;
	color: #FFFFFF;
}
.cdb-nl .cdb-nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cdb-nl .cdb-nl-email { flex: 1 1 220px; }
.cdb-nl .cdb-nl-btn {
	cursor: pointer;
	background: #FFCF23;
	color: #000000;
	border: 2px solid #FFCF23;
	font-weight: 700;
	font-size: 14.5px;
	padding: 0 22px;
	border-radius: 0;
}
.cdb-nl .cdb-nl-btn:hover,
.cdb-nl .cdb-nl-btn:focus,
.cdb-nl .cdb-nl-btn:active,
.cdb-nl .cdb-nl-btn:focus-visible {
	background: #FFFFFF !important;
	color: #000000 !important;
	border-color: #FFFFFF !important;
	box-shadow: none !important;
	outline: none !important;
}
.cdb-nl .cdb-nl-msg { font-size: 13px; margin-top: 12px; color: #C9C9C9; }
.cdb-nl .cdb-nl-ok { color: #FFCF23; }
.cdb-nl .cdb-nl-err { color: #FFFFFF; text-decoration: underline; }
