/* =====================================================================
   Cremagest — couche « confiance » (inc/trust.php) : bandeau de consentement,
   barre légale du pied de page, mention RGPD du formulaire.
   ===================================================================== */

/* --- Bandeau de consentement : discret, en bas à gauche, deux choix égaux --- */
.cg-consent {
	position: fixed;
	z-index: 9999;
	left: 20px;
	bottom: 20px;
	max-width: 420px;
	padding: 20px 22px 18px;
	background: #fbf7f0;
	color: #1e1e1e;
	border: 1px solid #e6dccb;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(30, 24, 16, 0.22);
	font-size: 15px;
	line-height: 1.55;
}
.cg-consent[hidden] { display: none; }
.cg-consent__text { margin: 0 0 14px; }
.cg-consent__text a { color: #1e1e1e; text-decoration: underline; text-underline-offset: 2px; }
.cg-consent__actions { display: flex; gap: 10px; }
.cg-consent__btn {
	flex: 1 1 0;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid #1e1e1e;
	border-radius: 999px;
	background: #fff;
	color: #1e1e1e;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.cg-consent__btn:hover,
.cg-consent__btn:focus-visible { background: #1e1e1e; color: #fff; }

/* --- Barre légale sous le footer --- */
.cg-legal-bar {
	background: #171615;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	line-height: 1.5;
}
.cg-legal-bar__in {
	max-width: 1290px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 22px;
}
.cg-legal-bar a,
.cg-legal-bar__cookies {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
	min-height: 24px;
}
.cg-legal-bar__cookies {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
}
.cg-legal-bar a:hover,
.cg-legal-bar a:focus-visible,
.cg-legal-bar__cookies:hover,
.cg-legal-bar__cookies:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* --- Mention RGPD sous le bouton du formulaire --- */
.cg-form-gdpr {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: #5c564e;
}
.cg-form-gdpr a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 600px) {
	.cg-consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
	.cg-legal-bar__in { padding: 14px 16px; }
}

/* --- Bouton d'envoi WPForms aux couleurs de la marque (variables du rendu « modern ») --- */
.wpforms-container.wpforms-render-modern {
	--wpforms-button-background-color: var(--wp--preset--color--brand);
	--wpforms-button-background-color-alt: var(--wp--preset--color--brand-strong);
	--wpforms-button-text-color: var(--wp--preset--color--ink);
	--wpforms-button-border-radius: 999px;
	--wpforms-button-size-font-size: 16px;
	--wpforms-button-size-height: 48px;
	--wpforms-button-size-padding-h: 26px;
}
.wpforms-container.wpforms-render-modern .wpforms-submit { font-weight: 700; box-shadow: 0 6px 16px rgba(242, 145, 30, 0.28); }

/* --- Page « Pour qui ? » : liens vers les sous-pages par profil --- */
.cg-subnav { margin: 40px 0 0; }
.cg-subnav__title {
	margin: 0 0 14px !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5c564e;
}
.cg-subnav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}
.cg-subnav a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 14px 18px;
	border: 1px solid #e6dccb;
	border-radius: 12px;
	background: #fff;
	color: #1e1e1e;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cg-subnav a:hover,
.cg-subnav a:focus-visible { border-color: var(--wp--preset--color--brand); box-shadow: 0 6px 18px rgba(242, 145, 30, 0.14); }
.cg-subnav a span { color: var(--cg-ember, #a85a05); }

/* --- Pages légales : intertitres et paragraphes sur la même colonne --- */
.cg-legal > p,
.cg-legal > h2 { max-width: 760px !important; }
.cg-legal > h2 { margin-top: 2em; }

/* --- Encadré « Vous préparez une consultation ? » (avant l'appel à l'action) --- */
.cg-buyer-callout {
	max-width: 760px;
	margin: 0 auto 36px;
	padding: 22px 26px;
	border: 1px solid #e6dccb;
	border-left: 4px solid var(--wp--preset--color--brand);
	border-radius: 12px;
	background: #fbf7f0;
}
.cg-buyer-callout p { margin: 0 0 8px; color: #5c564e; }
.cg-buyer-callout p:last-child { margin: 0; }
.cg-buyer-callout__h { font-weight: 700; color: #1e1e1e !important; }
.cg-buyer-callout a { font-weight: 700; color: var(--cg-ember, #a85a05); text-decoration: none; }
.cg-buyer-callout a:hover,
.cg-buyer-callout a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
