/**
 * CampusDelia — Page Contact (classes cdct-*).
 * Typo : Libre Bodoni (titres) + Public Sans (corps). Palette indigo.
 */

.cdct-page {
	--cdct-primary: #4f46e5;
	--cdct-primary-dark: #3730a3;
	--cdct-ink: #1e1b4b;
	--cdct-text: #3f3f52;
	--cdct-muted: #6b7280;
	--cdct-border: #e7e7ef;
	--cdct-surface: #fff;
	font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
	max-width: 1120px;
	margin-inline: auto;
	padding: clamp(24px, 5vw, 56px) 20px 80px;
	color: var(--cdct-text);
}

.page-id-0 .cdct-page { padding-top: 24px; }

body.page .site-content:has(.cdct-page) {
	background:
		radial-gradient(1000px 400px at 90% -60px, rgba(79, 70, 229, 0.08), transparent 65%),
		radial-gradient(800px 360px at -5% 30%, rgba(99, 102, 241, 0.05), transparent 60%),
		#f7f7fc;
}

/* ---------- Héro ---------- */

.cdct-hero {
	max-width: 720px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.cdct-kicker {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cdct-primary);
	margin: 0 0 10px;
}

.cdct-title {
	font-family: "Libre Bodoni", Georgia, serif;
	font-size: clamp(2.2rem, 5.5vw, 3.6rem);
	font-weight: 700;
	line-height: 1.08;
	color: var(--cdct-ink);
	margin: 0 0 16px;
	text-wrap: balance;
}

.cdct-intro {
	font-size: 1.08rem;
	line-height: 1.65;
	color: var(--cdct-muted);
	margin: 0;
}

/* ---------- Mise en page ---------- */

.cdct-layout {
	display: grid;
	grid-template-columns: minmax(260px, 5fr) 7fr;
	gap: 28px;
	align-items: start;
}

/* ---------- Cartes d'information ---------- */

.cdct-aside {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 90px;
}

.cdct-card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--cdct-surface);
	border: 1px solid var(--cdct-border);
	border-radius: 16px;
	padding: 20px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(30, 27, 75, 0.05), 0 4px 12px rgba(30, 27, 75, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}

.cdct-card:hover {
	transform: translateY(-3px);
	border-color: #c7d2fe;
	box-shadow: 0 12px 28px rgba(79, 70, 229, 0.14);
}

.cdct-card-icon {
	flex: 0 0 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: linear-gradient(135deg, #eef2ff, #e0e7ff);
	color: var(--cdct-primary);
}

.cdct-card-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.cdct-card-body strong {
	color: var(--cdct-ink);
	font-size: 1rem;
}

.cdct-card-body span {
	color: var(--cdct-muted);
	font-size: 0.9rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

/* ---------- Carte formulaire ---------- */

.cdct-form-card {
	background: var(--cdct-surface);
	border: 1px solid var(--cdct-border);
	border-radius: 20px;
	padding: clamp(22px, 3.5vw, 38px);
	box-shadow: 0 4px 10px rgba(30, 27, 75, 0.05), 0 24px 48px rgba(79, 70, 229, 0.10);
}

.cdct-form-card h3,
.cdct-faq h3 {
	font-family: "Libre Bodoni", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--cdct-ink);
	margin: 0 0 20px;
}

/* Formulaire Fluent Forms embarqué. */
.cdct-form-card .ff-el-input--label label {
	font-weight: 600;
	color: var(--cdct-ink);
	font-size: 0.92rem;
}

.cdct-form-card .ff-el-form-control {
	width: 100%;
	background: #fafafa;
	border: 1.5px solid var(--cdct-border);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cdct-form-card .ff-el-form-control:focus {
	outline: none;
	background: #fff;
	border-color: var(--cdct-primary);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.cdct-form-card .ff-btn-submit {
	background: linear-gradient(135deg, var(--cdct-primary), var(--cdct-primary-dark)) !important;
	color: #fff !important;
	border: none;
	border-radius: 999px;
	padding: 14px 36px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cdct-form-card .ff-btn-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(79, 70, 229, 0.45);
}

.cdct-form-card .ff-message-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 12px;
	padding: 18px;
	color: #065f46;
	font-weight: 600;
}

/* ---------- FAQ ---------- */

.cdct-faq {
	margin-top: clamp(40px, 6vw, 64px);
	max-width: 780px;
}

.cdct-faq details {
	background: var(--cdct-surface);
	border: 1px solid var(--cdct-border);
	border-radius: 14px;
	margin-bottom: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.cdct-faq details[open] {
	border-color: #c7d2fe;
	box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.cdct-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 48px 18px 20px;
	font-weight: 600;
	color: var(--cdct-ink);
	position: relative;
	min-height: 44px;
}

.cdct-faq summary::-webkit-details-marker { display: none; }

.cdct-faq summary::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--cdct-primary);
	border-bottom: 2px solid var(--cdct-primary);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s ease;
}

.cdct-faq details[open] summary::after {
	transform: translateY(-30%) rotate(225deg);
}

.cdct-faq summary:focus-visible {
	outline: 3px solid var(--cdct-primary);
	outline-offset: -3px;
	border-radius: 14px;
}

.cdct-faq details p {
	margin: 0;
	padding: 0 20px 18px;
	line-height: 1.65;
	color: var(--cdct-text);
}

.cdct-faq details a {
	color: var(--cdct-primary);
	font-weight: 600;
}

/* ---------- Accessibilité et responsive ---------- */

@media (prefers-reduced-motion: reduce) {
	.cdct-card,
	.cdct-form-card .ff-btn-submit,
	.cdct-faq summary::after {
		transition: none;
	}
	.cdct-card:hover { transform: none; }
}

@media (max-width: 900px) {
	.cdct-layout {
		grid-template-columns: 1fr;
	}
	.cdct-aside {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
	}
	.cdct-aside .cdct-card {
		flex: 1 1 260px;
	}
}

@media (max-width: 640px) {
	.cdct-aside {
		flex-direction: column;
	}
}
