/* Grand Dialogue Priorisation — étude de cas */

.project-grand-dialogue .page-hero,
.project-grand-dialogue .site-footer {
	/* La fiche utilise son propre hero. */
}

.gd-case {
	--gd-bg: #0e0c18;
	--gd-bg-alt: #141225;
	--gd-card: rgba(255, 255, 255, 0.04);
	--gd-border: rgba(255, 255, 255, 0.08);
	--gd-accent: #5a5fca;
	--gd-accent-soft: rgba(90, 95, 202, 0.15);
	--gd-warm: #d4c4a8;
	--gd-text: #f1f5f9;
	--gd-muted: #c9ceda;
	background: var(--gd-bg);
	color: var(--gd-text);
}

[data-theme="light"] .gd-case {
	--gd-bg: #f8f7fc;
	--gd-bg-alt: #eeeef8;
	--gd-card: #fff;
	--gd-border: rgba(90, 95, 202, 0.12);
	--gd-text: #1e293b;
	--gd-muted: #64748b;
}

.gd-container {
	max-width: var(--layout-max-width);
	margin: 0 auto;
	padding: 0 var(--layout-pad-x);
	box-sizing: border-box;
}

/* Hero */

.gd-hero {
	position: relative;
	overflow: hidden;
	padding: 3rem var(--layout-pad-x) 4rem;
	background:
		radial-gradient(ellipse 70% 60% at 80% 20%, rgba(139, 92, 246, 0.25) 0%, transparent 55%),
		radial-gradient(ellipse 50% 40% at 10% 80%, rgba(90, 95, 202, 0.2) 0%, transparent 50%),
		linear-gradient(160deg, #0e0c18 0%, #1a162e 45%, #12102a 100%);
}

[data-theme="light"] .gd-hero {
	background:
		radial-gradient(ellipse 70% 60% at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 55%),
		linear-gradient(160deg, #2d2a4a 0%, #3d3a6a 50%, #4a4580 100%);
	color: #fff;
}

.gd-hero-inner {
	max-width: var(--layout-max-width);
	margin: 0 auto;
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 960px) {
	.gd-hero-inner {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}
}

.gd-back-link {
	display: inline-block;
	margin-bottom: 1rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.gd-back-link:hover {
	color: #fff;
	text-decoration: underline;
}

.gd-status-badge {
	display: inline-block;
	margin-bottom: 0.75rem;
	padding: 0.3rem 0.85rem;
	border-radius: 9999px;
	background: rgba(212, 196, 168, 0.15);
	border: 1px solid rgba(212, 196, 168, 0.35);
	color: var(--gd-warm);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.gd-kicker {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 0.75rem;
}

.gd-hero-title {
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 0.75rem;
	color: #fff;
}

.gd-hero-subtitle {
	font-size: 1.15rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 1.25rem;
	max-width: 34rem;
}

.gd-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.gd-pills li {
	padding: 0.35rem 0.8rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
}

.gd-hero-intro {
	font-size: 0.95rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
	max-width: 36rem;
}

.gd-hero-visual {
	position: relative;
	min-height: 280px;
}

.gd-mockup-desktop {
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.gd-mockup-desktop img {
	display: block;
	width: 100%;
	height: auto;
}

.gd-mockup-mobile {
	position: absolute;
	right: -0.5rem;
	bottom: -1rem;
	width: 28%;
	max-width: 140px;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.gd-mockup-mobile img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 960px) {
	.gd-mockup-mobile {
		right: 1rem;
		bottom: -1.5rem;
		width: 32%;
		max-width: 160px;
	}
}

/* Sections communes */

.gd-section {
	padding: 4rem 0;
}

.gd-section:nth-child(even) {
	background: var(--gd-bg-alt);
}

.gd-section-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 2rem;
	color: var(--gd-text);
}

.gd-section-lead {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--gd-muted);
	margin: -1rem 0 2rem;
	max-width: 42rem;
}

/* Contexte */

.gd-context-grid {
	display: grid;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 768px) {
	.gd-context-grid {
		grid-template-columns: 1.2fr 0.8fr;
		gap: 3rem;
	}
}

.gd-context-text h2 {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0 0 1rem;
	color: var(--gd-text);
}

.gd-context-text p {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--gd-muted);
	margin: 0;
}

.gd-quote-card {
	margin: 0;
	padding: 1.75rem;
	border-radius: 1rem;
	background: linear-gradient(165deg, var(--gd-card) 0%, rgba(212, 196, 168, 0.12) 100%);
	border: 1px solid var(--gd-border);
}

.gd-quote-card p {
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.55;
	color: var(--gd-text);
	margin: 0;
}

/* Mandat */

.gd-mandate-grid {
	display: grid;
	gap: 1rem;
}

@media (min-width: 640px) {
	.gd-mandate-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.gd-mandate-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}
}

.gd-mandate-card {
	padding: 1.5rem;
	border-radius: 1rem;
	background: var(--gd-card);
	border: 1px solid var(--gd-border);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.gd-mandate-card:hover {
	border-color: rgba(90, 95, 202, 0.35);
	box-shadow: 0 8px 24px rgba(90, 95, 202, 0.08);
}

.gd-mandate-icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.65rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	background: var(--gd-accent-soft);
	color: var(--gd-accent);
}

.gd-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.gd-mandate-card h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	color: var(--gd-text);
}

.gd-mandate-card p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--gd-muted);
	margin: 0;
}

/* Défi */

.gd-challenge {
	position: relative;
	overflow: hidden;
}

.gd-challenge::before {
	content: '';
	position: absolute;
	right: -10%;
	top: 50%;
	transform: translateY(-50%);
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(90, 95, 202, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

.gd-challenge-grid {
	display: grid;
	gap: 2.5rem;
	align-items: start;
	position: relative;
}

@media (min-width: 768px) {
	.gd-challenge-grid {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}
}

.gd-challenge-intro h2 {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 1rem;
	color: var(--gd-text);
}

.gd-challenge-intro p {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--gd-muted);
	margin: 0;
}

.gd-challenge-points {
	display: grid;
	gap: 1rem;
}

.gd-challenge-point {
	padding: 1.25rem 1.5rem;
	border-radius: 0.85rem;
	background: var(--gd-card);
	border: 1px solid var(--gd-border);
}

.gd-challenge-point h3 {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	color: var(--gd-accent);
}

.gd-challenge-point p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--gd-muted);
	margin: 0;
}

/* Solution */

.gd-solution-header {
	text-align: center;
	max-width: 42rem;
	margin: 0 auto 2.5rem;
}

.gd-solution-header h2 {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0 0 0.75rem;
	color: var(--gd-text);
}

.gd-solution-header p {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--gd-muted);
	margin: 0;
}

.gd-solution-visual {
	position: relative;
	display: grid;
	place-items: center;
	margin-bottom: 2.5rem;
	min-height: 200px;
}

.gd-solution-frame {
	width: min(720px, 100%);
	border-radius: 0.85rem;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	border: 1px solid var(--gd-border);
	z-index: 1;
}

.gd-solution-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.gd-annotation {
	position: absolute;
	max-width: 180px;
	padding: 0.65rem 0.85rem;
	border-radius: 0.65rem;
	background: var(--gd-card);
	border: 1px solid var(--gd-border);
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--gd-muted);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	z-index: 2;
	display: none;
}

.gd-annotation strong {
	display: block;
	font-size: 0.82rem;
	color: var(--gd-text);
	margin-bottom: 0.15rem;
}

@media (min-width: 900px) {
	.gd-annotation {
		display: block;
	}

	.gd-annotation--top {
		top: 0;
		left: 50%;
		transform: translateX(-50%);
	}

	.gd-annotation--bottom {
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
	}

	.gd-annotation--left {
		left: 0;
		top: 50%;
		transform: translateY(-50%);
	}

	.gd-annotation--right {
		right: 0;
		top: 50%;
		transform: translateY(-50%);
	}
}

.gd-solution-cards {
	display: grid;
	gap: 1rem;
}

@media (min-width: 768px) {
	.gd-solution-cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}
}

.gd-solution-card {
	padding: 1.5rem;
	border-radius: 1rem;
	background: var(--gd-card);
	border: 1px solid var(--gd-border);
	text-align: center;
}

.gd-solution-card h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--gd-accent);
}

.gd-solution-card p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--gd-muted);
	margin: 0;
}

/* Timeline */

.gd-timeline {
	background:
		radial-gradient(ellipse 60% 50% at 50% 0%, rgba(90, 95, 202, 0.12) 0%, transparent 60%),
		var(--gd-bg-alt);
}

.gd-timeline-track {
	display: grid;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

@media (min-width: 768px) {
	.gd-timeline-track {
		grid-template-columns: repeat(4, 1fr);
		gap: 0;
	}

	.gd-timeline-track::before {
		content: '';
		position: absolute;
		top: 1.25rem;
		left: 12.5%;
		right: 12.5%;
		height: 2px;
		background: linear-gradient(90deg, var(--gd-accent), rgba(139, 92, 246, 0.6));
		z-index: 0;
	}
}

.gd-timeline-step {
	position: relative;
	text-align: center;
	padding: 0 0.5rem;
}

.gd-timeline-dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0 auto 1rem;
	border-radius: 9999px;
	background: var(--gd-accent);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	box-shadow: 0 0 0 4px var(--gd-bg-alt), 0 0 16px rgba(90, 95, 202, 0.4);
	position: relative;
	z-index: 1;
}

.gd-timeline-step h3 {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	color: var(--gd-text);
}

.gd-timeline-step p {
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--gd-muted);
	margin: 0;
}

/* Galerie */

.gd-gallery-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.gd-gallery-grid {
		grid-template-columns: 1.4fr 1fr;
		grid-template-rows: auto auto;
	}

	.gd-gallery-item--large:first-child {
		grid-row: span 2;
	}
}

.gd-gallery-frame {
	border-radius: 0.85rem;
	overflow: hidden;
	background: var(--gd-card);
	border: 1px solid var(--gd-border);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.gd-gallery-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.gd-gallery-item figcaption {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--gd-muted);
}

/* Galerie — masquée temporairement (retirer cette règle pour réafficher) */
.gd-gallery { display: none; }

/* Résultats */

.gd-results-intro {
	text-align: center;
	margin: -0.5rem auto 2.5rem;
}

.gd-results-grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.gd-results-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

.gd-result-item {
	text-align: center;
	padding: 2rem 1.5rem;
	border-radius: 1rem;
	background: var(--gd-card);
	border: 1px solid var(--gd-border);
}

.gd-result-item h3 {
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0 0 0.65rem;
	color: var(--gd-accent);
}

.gd-result-item p {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--gd-muted);
	margin: 0;
}

/* CTA */

.gd-cta {
	padding: 4rem var(--layout-pad-x) 5rem;
	background: linear-gradient(135deg, #5a5fca 0%, #6d73e0 40%, #8b5cf6 100%);
	color: #fff;
	text-align: center;
}

.gd-cta-inner h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	margin: 0 0 0.75rem;
	color: #fff;
}

.gd-cta-inner p {
	font-size: 1.05rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 auto 1.75rem;
	max-width: 36rem;
}

.gd-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.gd-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	border-radius: 9999px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
}

.gd-btn--primary {
	background: #fff;
	color: #5a5fca;
}

.gd-btn--primary:hover {
	background: #f1f5f9;
	color: #4a4fb8;
	transform: translateY(-1px);
}

.gd-btn--secondary {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.gd-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	transform: translateY(-1px);
}
