/* Pages intérieures : questionnaire, contact, contenus. (Accueil : voir style.css) */

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.container-wide {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Bandeau titre : sous-titre (Actualités) ---------- */
.page-header-band__subtitle { margin: 12px 0 0; font-size: 16px; color: #fff; }

/* ---------- Contenus de pages ---------- */
.page .entry-content { max-width: none; }
.entry-content ul { padding-left: 48px; margin: 0 0 16px; }
.entry-content li { margin: 0; }
.entry-content p:empty { display: none; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content .cta-pill { text-decoration: none; }
.entry-content h2 { font-size: 30px; margin: 40px 0 24px; }
.entry-content > h2:first-child,
.entry-content > .wp-block-heading:first-child { margin-top: 30px; }


/* Les ressources */
.entry-content .resource-list { margin-top: 20px; }

/* Pages légales (mentions, confidentialité, cookies) */
.is-legal .page-header-band { text-align: center; padding: 30px 0; }
.is-legal .page-header-band h1 { font-weight: 400; }
.is-legal .entry { background: var(--gris-fond); padding: 40px 0 45px; }
.is-legal .entry-content { max-width: 660px; margin: 0 auto; line-height: 1.45; }
.is-legal .entry-content h2,
.is-legal .entry-content h3 {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	color: #000;
	margin: 22px 0 0;
}
.is-legal .entry-content h2 strong { font-weight: 600; }
.is-legal .entry-content h3 { margin: 0; }
.is-legal .entry-content p { margin: 0; }
.is-legal .entry-content ul { padding-left: 0; margin: 0 0 0 -14px; }
.is-legal .entry-content table { border-collapse: collapse; width: 100%; margin: 0 0 10px; }
.is-legal .entry-content th,
.is-legal .entry-content td { border: 1px solid #333; padding: 2px; text-align: left; vertical-align: middle; }
/* Tableau d'une seule cellule utilisé comme encadré (confidentialité). */
.is-legal .entry-content tbody:only-child > tr:only-child > td:only-child { border: 0; padding: 16px 0; }

/* ---------- Fil d’Ariane ---------- */
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 12px;
	color: #333;
	border-top: 1px solid var(--bordure);
}
.breadcrumb a { color: #333; text-decoration: underline; }
.breadcrumb a:hover { color: var(--lien-hover); }
.breadcrumb [aria-current] { font-weight: 600; }
.breadcrumb > span[aria-hidden] { color: #777; }

/* ---------- En-tête de projet ---------- */
.project-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 405px;
	gap: 48px;
	padding-top: 40px;
	padding-bottom: 40px;
	padding-left: 15px;
	padding-right: 15px;
}
.project-head__author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 2px 0 14px;
	font-size: 14px;
}
.project-head__author img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bordure); background: #fff; }
.project-head h1 {
	font-size: 34px;
	font-weight: 500;
	line-height: 1.2;
	color: #1d1d1b;
	margin: 0 0 22px;
}
.project-head__stats,
.project-head__share { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.project-head__stats { gap: 12px 32px; margin-bottom: 20px; }
.project-head__stats li { display: flex; flex-direction: column; font-size: 18px; line-height: 1.35; }
.project-head__stats strong { font-weight: 400; }
.project-head__share { gap: 16px; align-items: center; }
.project-head__share a,
.project-head__share button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #999;
	cursor: pointer;
}
.project-head__share a:hover,
.project-head__share button:hover,
.project-head__share a:focus-visible,
.project-head__share button:focus-visible { color: var(--encre); background: var(--gris-fond); }
.project-head__copied { font-size: 13px; color: #2e7d32; }
.project-head__img { margin: 0; }
.project-head__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* ---------- Questionnaire ---------- */
.questionnaire {
	background: var(--gris-fond);
	border-top: 1px solid var(--bordure);
	padding: 48px 15px 45px;
}
.questionnaire__inner { max-width: 920px; margin: 0 auto; }
.questionnaire__intro { font-size: 18px; line-height: 1.35; margin: 0 0 24px; }
.questionnaire__duration { font-size: 18px; font-weight: 500; color: #222; margin: 0 0 36px; }

.q-card {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
	overflow: hidden;
}
.q-card__head {
	margin: 0;
	padding: 16px 20px;
	background: #ebeef1;
	font-family: var(--font-title);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	color: var(--encre);
}
.q-card__body { padding: 36px 32px 40px; }

.q-field { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.q-field:last-child { margin-bottom: 0; }
.q-label {
	display: block;
	margin: 0 0 10px;
	padding: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	color: #333;
}
.q-help { font-size: 16px; color: #555; margin: -6px 0 12px; line-height: 1.4; }
.q-form textarea {
	display: block;
	width: 100%;
	min-height: 100px;
	padding: 10px 12px;
	font: inherit;
	font-size: 16px;
	color: var(--texte);
	background: #f7f7f7;
	border: 2px solid #ddd;
	border-radius: 3px;
	resize: vertical;
}
.q-form textarea:focus { outline: none; border-color: var(--encre); background: #fff; }
.q-form textarea::placeholder { color: #999; }
.q-small { font-size: 14px; line-height: 1.45; margin: 0 0 56px; }

/* Thèmes de priorités */
.q-group { margin: 0 0 56px; padding: 0; border: 0; min-width: 0; }
.q-group__title {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--font-title);
	font-size: 20px;
	color: var(--encre);
	text-align: center;
}
.q-group__title::before,
.q-group__title::after { content: ""; flex: 1; height: 0; border-top: 2px solid #e6e6e6; }
.q-group__text {
	margin: 0 0 32px;
	padding: 16px;
	font-size: 14px;
	line-height: 1.45;
	background: #f7f7f7;
	border: 1px solid #e6e6e6;
	border-radius: 4px;
}
.q-group .q-label { margin-bottom: 2px; }
.q-max { margin: 0 0 12px; font-size: 16px; color: #777; }
.q-count { margin-left: 6px; font-size: 14px; color: #555; }
.q-count.is-full { color: var(--encre); font-weight: 600; }

.q-check,
.q-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 8px 0;
	font-size: 16px;
	line-height: 1.45;
	cursor: pointer;
}
.q-check input,
.q-radio input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--encre); cursor: pointer; }
.q-check.is-disabled { color: #999; cursor: not-allowed; }
.q-check.is-disabled input { cursor: not-allowed; }

/* Profil */
.q-profile { margin-bottom: 40px; }
.q-profile .q-label { margin-bottom: 6px; }
.q-profile--radio .q-radio { margin-bottom: 18px; }
.q-profile--yesno .q-profile__options { display: flex; gap: 16px; margin-top: 10px; }
.q-profile--yesno .q-radio { position: relative; margin: 0; padding: 0; }
.q-profile--yesno .q-radio input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; }
.q-profile--yesno .q-radio span {
	display: inline-block;
	min-width: 44px;
	padding: 10px 10px;
	border: 1px solid #333;
	border-radius: 3px;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	background: #fff;
	transition: background-color .15s, color .15s;
}
.q-profile--yesno .q-radio:hover span { background: var(--gris-fond); }
.q-profile--yesno .q-radio input:checked + span { background: var(--encre); border-color: var(--encre); color: #fff; }
.q-profile--yesno .q-radio input:focus-visible + span { outline: 2px solid var(--lien-hover); outline-offset: 2px; }

/* Boutons */
.q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 22px; }
.btn-q {
	display: inline-block;
	padding: 13px 17px;
	border: 0;
	border-radius: 3px;
	font: inherit;
	font-size: 15px;
	line-height: 20px;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}
.btn-q--draft { background: #6c757d; }
.btn-q--draft:hover, .btn-q--draft:focus-visible { background: #5a6268; }
.btn-q--send { background: var(--encre); }
.btn-q--send:hover, .btn-q--send:focus-visible { background: #000; }
.btn-q:focus-visible { outline: 2px solid var(--lien-hover); outline-offset: 2px; }
.q-draft-status { font-size: 14px; color: #555; }

/* Messages */
.notice {
	margin: 0 0 28px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--bordure);
	border-left: 4px solid var(--encre);
	border-radius: 4px;
}
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin: 0; }
.notice--success { background: #edf7ee; border-color: #c3e3c5; border-left-color: #2e7d32; color: #1e4620; }
.notice--error { background: #fdeceb; border-color: #f5c2bf; border-left-color: #c62828; color: #611a15; }

/* ---------- Contact ---------- */
.contact-page { padding: 48px 0; }
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 576px) minmax(0, 480px);
	gap: 48px;
	align-items: stretch;
}
.contact-panel {
	background: var(--encre);
	color: #fff;
	padding: 56px 48px 48px;
	font-size: 16px;
	line-height: 1.5;
}
.contact-panel h1 {
	font-size: 32px;
	font-weight: 500;
	color: var(--creme);
	margin: 0 0 6px;
}
.contact-panel p { margin: 0 0 24px; }
.contact-panel a { color: #fff; text-decoration: underline; }
.contact-panel a:hover { color: var(--creme); }
.contact-panel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.contact-form { padding-top: 70px; }
.contact-form__req { font-size: 14px; color: #000; margin: 0 0 26px; }
.c-field { margin: 0 0 20px; }
.c-field label { display: block; font-size: 13px; color: #555; margin: 0 0 6px; }
.c-field input,
.c-field textarea {
	display: block;
	width: 100%;
	padding: 9px 12px;
	font: inherit;
	font-size: 16px;
	color: var(--texte);
	background: #f6f6f6;
	border: 0;
	border-bottom: 1px solid #555;
	border-radius: 0;
}
.c-field textarea { min-height: 88px; resize: vertical; }
.c-field input:focus,
.c-field textarea:focus { outline: none; border-bottom: 2px solid var(--encre); background: #f0f0f0; }
.c-field ::placeholder { color: #777; }
.contact-form .btn-q--send { margin-top: 12px; padding: 14px 32px; font-weight: 500; }
.contact-form__legal { font-size: 10.5px; line-height: 1.5; color: #000; margin: 20px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.project-head { grid-template-columns: 1fr; gap: 24px; }
	.project-head__img { order: -1; max-width: 560px; }
	.contact-grid { grid-template-columns: 1fr; }
	.contact-form { padding-top: 0; }
}
@media (max-width: 767px) {
	.container-wide { padding: 0 16px; }
	.page-header-band h1 { font-size: 30px; }
	.entry { padding: 28px 0 40px; }
	.entry-content h2 { font-size: 24px; margin-top: 32px; }
	.entry-content ul { padding-left: 24px; }
	.entry-content .cta-pill { padding: 14px 24px; font-size: 17px; }

	.project-head { padding: 24px 16px; }
	.project-head h1 { font-size: 26px; }
	.project-head__stats li { font-size: 16px; }

	.questionnaire { padding: 28px 0 32px; }
	.questionnaire__intro,
	.questionnaire__duration { font-size: 16px; padding: 0 16px; }
	.q-card { border-radius: 0; }
	.q-card__head { font-size: 17px; padding: 14px 16px; }
	.q-card__body { padding: 24px 16px 28px; }
	.q-label { font-size: 17px; }
	.q-check, .q-radio { align-items: flex-start; margin-bottom: 8px; }
	.q-check input, .q-radio input { margin-top: 2px; }
	.q-group__title { font-size: 18px; gap: 10px; }
	.q-small { margin-bottom: 36px; }
	.q-group { margin-bottom: 40px; }
	.q-actions { padding: 0 16px; }
	.q-actions .btn-q { flex: 1 1 auto; text-align: center; }
	.notice { margin-left: 16px; margin-right: 16px; }

	.contact-page { padding: 24px 0 40px; }
	.contact-panel { padding: 32px 20px; }
	.contact-panel h1 { font-size: 28px; }
}
