/* OCI Quiz Profils — front v1.2 — charte Open Campus Innov, pensé mobile d'abord.
   Couleurs réglables dans l'admin : --ociq-primary (bleu OCI) et --ociq-accent (rose OCI). */
.ociq {
	--ociq-primary: #153CA8;
	--ociq-accent: #FF4B6B;
	--ociq-ink: #14142b;
	--ociq-muted: #5f6577;
	--ociq-track: #eef0f7;
	--ociq-border: #e3e6f0;
	--ociq-radius: 22px;
	--ociq-brand: linear-gradient(90deg, #FF4B6B 0 16.6%, #F18949 0 33.3%, #F7C444 0 50%, #86C171 0 66.6%, #62AADD 0 83.3%, #5B7BFB 0);
	--ociq-font-title: "Wix Madefor Display", system-ui, sans-serif;
	--ociq-font-text: "Urbanist", system-ui, sans-serif;
	max-width: var(--ociq-max, 1080px);
	margin: 0 auto;
	color: var(--ociq-ink);
	font-family: var(--ociq-font-text);
	font-size: 17px;
	line-height: 1.45;
	position: relative;
	container: ociq / inline-size;
	scroll-margin-top: 100px; /* laisse la place au header fixe du thème */
	-webkit-tap-highlight-color: transparent;
}
.ociq *, .ociq *::before, .ociq *::after { box-sizing: border-box; }
.ociq h2, .ociq h3, .ociq p { margin: 0; }

/* ---------- Carte ---------- */
.ociq-card {
	--c: var(--ociq-primary);
	--on-c: #fff;
	position: relative;
	overflow: hidden;
	background: #fff;
	border-radius: var(--ociq-radius);
	padding: 26px 18px 22px;
	box-shadow: 0 1px 0 var(--ociq-border), 0 18px 44px -26px rgba(21, 60, 168, .45);
}
.ociq-card::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
	background: var(--ociq-brand);
}
.ociq-card.is-entering { animation: ociq-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.ociq-card.is-leaving { animation: ociq-out .2s ease-in both; }
@keyframes ociq-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes ociq-out { to { opacity: 0; transform: translateX(-32px); } }

/* ---------- Étiquettes penchées (style OCI) ---------- */
.ociq-tag {
	--rot: -2deg;
	display: table; /* une étiquette par ligne, centrable */
	margin: 0 auto 6px;
	padding: .12em .38em .16em;
	font-family: var(--ociq-font-title);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.05;
	letter-spacing: -.01em;
	transform: rotate(var(--rot));
	animation: ociq-tag .5s cubic-bezier(.3, 1.5, .5, 1) both;
}
.ociq-tag--a { background: var(--ociq-accent); color: #fff; }
.ociq-tag--b { background: #fff; color: var(--ociq-primary); }
@keyframes ociq-tag { from { opacity: 0; transform: rotate(var(--rot)) scale(.6); } to { opacity: 1; transform: rotate(var(--rot)) scale(1); } }

/* ---------- Boutons ---------- */
.ociq .ociq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px;
	border: 0; border-radius: 99px; cursor: pointer;
	font-family: var(--ociq-font-text); font-size: 1.05rem; font-weight: 700; line-height: 1.2;
	padding: 14px 28px;
	text-transform: none; letter-spacing: normal; box-shadow: none; text-decoration: none;
	transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.ociq .ociq-btn--primary {
	background: var(--ociq-accent); color: #fff;
	box-shadow: 0 6px 0 -1px color-mix(in srgb, var(--ociq-accent) 60%, #000);
}
.ociq .ociq-btn--primary:active { transform: translateY(4px); box-shadow: 0 2px 0 -1px color-mix(in srgb, var(--ociq-accent) 60%, #000); }
.ociq .ociq-btn--big { width: 100%; font-size: 1.15rem; min-height: 58px; }
.ociq .ociq-arrow { display: inline-block; transition: transform .2s; }
.ociq .ociq-btn--ghost { background: transparent; color: var(--ociq-muted); padding: 10px 4px; margin-top: 14px; min-height: 44px; font-weight: 600; }
.ociq .ociq-btn--outline { background: var(--ociq-primary); color: #fff; margin-top: 22px; width: 100%; }
.ociq .ociq-btn:focus-visible, .ociq .ociq-answer:focus-visible { outline: 3px solid var(--ociq-accent); outline-offset: 3px; }

/* ---------- Intro : carte bleue OCI ---------- */
.ociq-card--intro {
	background: var(--ociq-primary);
	color: #fff;
	text-align: center;
	padding: 34px 20px 26px;
	box-shadow: 0 22px 50px -24px color-mix(in srgb, var(--ociq-primary) 80%, transparent);
}
/* Petits doodles discrets en fond, clin d'œil aux illustrations du site */
.ociq-card--intro::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
	background:
		radial-gradient(circle at 12% 22%, transparent 16px, #fff 17px, #fff 19px, transparent 20px),
		radial-gradient(circle at 88% 78%, transparent 22px, #fff 23px, #fff 25px, transparent 26px),
		radial-gradient(circle at 90% 18%, #fff 3px, transparent 4px),
		radial-gradient(circle at 8% 80%, #fff 4px, transparent 5px),
		radial-gradient(circle at 75% 45%, #fff 2px, transparent 3px);
}
.ociq-bubbles { display: flex; justify-content: center; gap: 6px; margin-bottom: 22px; }
.ociq-bubble {
	flex: 0 0 auto;
	width: 42px; height: 42px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 21px; line-height: 1;
	background: #fff;
	box-shadow: 0 0 0 3px var(--c);
	animation: ociq-bob 2.4s ease-in-out infinite;
}
@keyframes ociq-bob { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-7px) rotate(5deg); } }
.ociq-title { font-size: clamp(1.45rem, 7vw, 2.5rem); margin-bottom: 18px !important; }
.ociq-intro { font-size: 1.05rem; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 480px; margin: 0 auto 16px !important; }
.ociq-chip {
	display: block; width: fit-content; margin: 0 auto 24px !important;
	font-weight: 700; font-size: .9rem;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 99px; padding: 7px 14px;
}

/* ---------- Progression ---------- */
.ociq-progress { margin-bottom: 18px; }
.ociq-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.ociq-progress-count { font-family: var(--ociq-font-title); font-weight: 800; font-size: .95rem; color: var(--ociq-primary); white-space: nowrap; }
.ociq-progress-cheer { font-weight: 600; font-size: .88rem; color: var(--ociq-muted); text-align: right; }
.ociq-steps { display: flex; gap: 5px; }
.ociq-step { flex: 1; height: 8px; border-radius: 99px; background: var(--ociq-track); position: relative; overflow: hidden; }
.ociq-step::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--ociq-primary); border-radius: inherit; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.ociq-step.is-done::after { width: 100%; }
.ociq-step.is-current { background: color-mix(in srgb, var(--ociq-accent) 22%, #fff); }

/* ---------- Question ---------- */
.ociq-question {
	font-family: var(--ociq-font-title);
	font-size: clamp(1.2rem, 5.2vw, 1.6rem); font-weight: 800; line-height: 1.22;
	color: var(--ociq-ink);
	margin-bottom: 18px !important;
}
.ociq-question:focus { outline: none; }
.ociq-answers { display: grid; gap: 8px; }
.ociq .ociq-answer {
	--c: var(--ociq-primary);
	position: relative;
	display: flex; align-items: flex-start; gap: 11px; width: 100%; min-height: 54px;
	text-align: left; font-family: var(--ociq-font-text); font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--ociq-ink);
	background: #fff; border: 2px solid var(--ociq-border); border-radius: 16px;
	padding: 11px 14px 11px 11px; cursor: pointer;
	text-transform: none; letter-spacing: normal; white-space: normal; box-shadow: none;
	transition: transform .18s cubic-bezier(.2, .8, .2, 1), border-color .18s, background .18s, box-shadow .18s, opacity .2s;
	animation: ociq-pop-in .36s cubic-bezier(.2, .8, .2, 1) both;
	touch-action: manipulation;
}
@keyframes ociq-pop-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ociq .ociq-answer:active { transform: scale(.98); }
.ociq .ociq-answer.is-selected {
	border-color: var(--c);
	background: color-mix(in srgb, var(--c) 10%, #fff);
	animation: ociq-pick .4s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes ociq-pick { 0% { transform: scale(1); } 40% { transform: scale(1.03) rotate(-.6deg); } 100% { transform: scale(1); } }
.ociq .ociq-answer.is-dimmed { opacity: .4; }
.ociq-answer-letter {
	flex: 0 0 30px; height: 30px; border-radius: 9px; position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--ociq-font-title); font-weight: 800; font-size: .88rem;
	color: var(--on-c); background: var(--c);
	transform: rotate(-4deg);
	transition: transform .18s;
}
.ociq-answer-text { padding-top: 4px; }
.ociq-answer-check { display: none; }
.ociq-answer.is-selected .ociq-answer-letter { color: transparent; animation: ociq-check .35s cubic-bezier(.3, 1.8, .5, 1) both; }
.ociq-answer.is-selected .ociq-answer-letter::after {
	content: "✓"; position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: var(--on-c); font-size: 1rem;
}
@keyframes ociq-check { 0% { transform: rotate(-4deg) scale(.6); } 100% { transform: rotate(-4deg) scale(1.1); } }

/* Survol : uniquement sur ordinateur (sinon la carte reste « soulevée » après un tap) */
@media (hover: hover) and (pointer: fine) {
	.ociq .ociq-btn--primary:hover { transform: translateY(-2px); }
	.ociq .ociq-btn--primary:hover .ociq-arrow { transform: translateX(5px); }
	.ociq .ociq-btn--ghost:hover { color: var(--ociq-ink); }
	.ociq .ociq-btn--outline:hover { background: var(--ociq-accent); transform: rotate(-1deg); }
	.ociq .ociq-answer:hover { border-color: var(--c); transform: translateY(-3px); box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--c) 80%, transparent); }
	.ociq-answer:hover .ociq-answer-letter { transform: rotate(6deg) scale(1.08); }
}

/* ---------- Chargement ---------- */
.ociq-card--loading { text-align: center; padding: 64px 20px; }
.ociq-spinner {
	width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--c) 14%, #fff);
	border: 4px solid color-mix(in srgb, var(--c) 28%, #fff);
	border-top-color: var(--c);
	animation: ociq-spin .8s linear infinite;
	transition: background .18s, border-color .18s;
}
.ociq-spinner-emoji { font-size: 38px; line-height: 1; animation: ociq-spin .8s linear infinite reverse; }
@keyframes ociq-spin { to { transform: rotate(360deg); } }
.ociq-loading-text { font-family: var(--ociq-font-title); font-weight: 800; font-size: 1.15rem; color: var(--ociq-primary); }

/* ---------- Résultat ---------- */
.ociq-card--result { text-align: center; padding-top: 30px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, #fff) 0, #fff 300px); }
.ociq-kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--ociq-muted); margin-bottom: 16px !important; }
.ociq-stickers { display: flex; justify-content: center; gap: 4px; margin-bottom: 16px; }
.ociq-sticker {
	--rot: -6deg;
	width: 112px; height: 112px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--c);
	border: 5px solid #fff;
	box-shadow: 0 0 0 3px var(--c), 0 16px 28px -12px color-mix(in srgb, var(--c) 80%, #000);
	transform: rotate(var(--rot));
	animation: ociq-sticker .7s cubic-bezier(.3, 1.6, .5, 1) both;
}
.ociq-stickers.is-tie .ociq-sticker { width: 84px; height: 84px; }
.ociq-sticker-emoji { font-size: 52px; line-height: 1; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .15)); }
.ociq-stickers.is-tie .ociq-sticker-emoji { font-size: 38px; }
@keyframes ociq-sticker {
	0% { opacity: 0; transform: scale(.2) rotate(-40deg); }
	70% { opacity: 1; transform: scale(1.12) rotate(calc(var(--rot) + 4deg)); }
	100% { transform: scale(1) rotate(var(--rot)); }
}
.ociq-result-title { font-size: clamp(1.5rem, 7.5vw, 2.4rem); }
/* Égalité à 3 profils ou plus */
.ociq-stickers.is-many { gap: 0; padding-left: 12px; }
.ociq-stickers.is-tie.is-many .ociq-sticker { width: 62px; height: 62px; border-width: 4px; margin-left: -12px; box-shadow: 0 0 0 3px var(--c), 0 10px 18px -10px color-mix(in srgb, var(--c) 80%, #000); }
.ociq-stickers.is-tie.is-many .ociq-sticker-emoji { font-size: 30px; }
.ociq-tag.ociq-tag--many { background: var(--ociq-primary); color: #fff; font-size: .82em; }
.ociq-profile-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px auto 0; max-width: 460px; }
.ociq-profile-chip {
	--rot: -1.5deg;
	display: inline-block; padding: 6px 12px; border-radius: 99px;
	font-family: var(--ociq-font-title); font-weight: 800; font-size: .88rem; line-height: 1.2;
	background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--ociq-ink);
	border: 2px solid var(--c);
	transform: rotate(var(--rot));
	animation: ociq-tag .45s cubic-bezier(.3, 1.5, .5, 1) both;
}
.ociq-result-title:focus { outline: none; }
.ociq-tag--result { background: var(--c); color: var(--on-c); }
.ociq-big {
	font-family: var(--ociq-font-title);
	font-size: clamp(2.6rem, 13vw, 3.6rem); font-weight: 800; line-height: 1;
	color: var(--ociq-primary); margin-top: 14px !important; font-variant-numeric: tabular-nums;
}
.ociq-big-sub { color: var(--ociq-muted); font-weight: 600; margin-top: 4px !important; }
.ociq-desc {
	text-align: left; background: #fff; border: 2px solid color-mix(in srgb, var(--c) 35%, #fff);
	border-radius: 16px; padding: 14px 16px; margin: 18px auto 0; max-width: 560px; line-height: 1.5;
}
.ociq-desc strong { display: block; margin-bottom: 4px; }

/* Bloc « Viens rencontrer ton entrepreneuse » (option jour J) */
.ociq-meet {
	margin: 22px auto 0; max-width: 560px; text-align: left;
	background: var(--ociq-primary); color: #fff;
	border-radius: 18px; padding: 16px 14px 12px;
	transform: rotate(-.6deg);
	box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--ociq-primary) 90%, transparent);
}
.ociq-meet-title { font-family: var(--ociq-font-title); font-weight: 800; font-size: 1.05rem; margin: 0 0 10px 4px !important; }
.ociq-meet-row {
	display: flex; align-items: center; gap: 12px;
	background: #fff; color: var(--ociq-ink);
	border-radius: 14px; padding: 10px 12px; margin-bottom: 6px;
	animation: ociq-pop-in .45s cubic-bezier(.2, .8, .2, 1) both;
}
.ociq-meet-avatar {
	flex: 0 0 46px; height: 46px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--ociq-font-title); font-weight: 800; font-size: 1.3rem;
	background: var(--c); color: var(--on-c); transform: rotate(-6deg);
}
.ociq-meet-info { display: flex; flex-direction: column; min-width: 0; }
.ociq-meet-name { font-family: var(--ociq-font-title); font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.ociq-meet-activity { font-size: .92rem; color: var(--ociq-muted); line-height: 1.3; }
.ociq-meet-place { font-size: .88rem; font-weight: 700; color: var(--ociq-primary); margin-top: 2px; }

.ociq-scores-title { text-align: left; font-family: var(--ociq-font-title); font-weight: 800; color: var(--ociq-primary); margin-top: 26px !important; padding-top: 20px; border-top: 2px dashed var(--ociq-border); }
.ociq-scores { list-style: none; margin: 12px 0 0 !important; padding: 0 !important; text-align: left; }
.ociq-score { margin: 0 0 12px !important; padding: 0 !important; }
.ociq-score::before { display: none !important; }
.ociq-score-line { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: .98rem; margin-bottom: 5px; }
.ociq-score.is-dominant .ociq-score-line { font-weight: 800; }
.ociq-score-pct { font-variant-numeric: tabular-nums; }
.ociq-bar { height: 10px; background: var(--ociq-track); border-radius: 99px; overflow: hidden; }
.ociq-bar-fill { height: 100%; width: 0; background: color-mix(in srgb, var(--c) 60%, #fff); border-radius: 99px; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.ociq-score.is-dominant .ociq-bar-fill { background: var(--c); }

.ociq-total { color: var(--ociq-muted); font-size: .9rem; margin-top: 4px !important; text-align: left; }
.ociq-disclaimer { color: var(--ociq-muted); font-size: .8rem; font-style: italic; margin-top: 10px !important; line-height: 1.45; text-align: left; }

.ociq-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 99999; }

/* ---------- Écrans plus larges ---------- */
.ociq-question, .ociq-progress { max-width: none; }
@container ociq (min-width: 560px) {
	.ociq-card { padding: 38px 40px 32px; }
	.ociq-card--intro { padding: 48px 40px 40px; }
	.ociq-bubbles { gap: 10px; }
	.ociq-bubble { width: 52px; height: 52px; font-size: 26px; }
	.ociq .ociq-btn--big { width: auto; padding: 16px 40px; }
	.ociq .ociq-btn--outline { width: auto; }
	.ociq-answers { grid-template-columns: 1fr 1fr; gap: 12px; }
	.ociq .ociq-answer { padding: 15px 16px 15px 14px; font-size: 1rem; line-height: 1.4; }
	.ociq-answers { gap: 12px; }
	.ociq-sticker { width: 132px; height: 132px; }
	.ociq-sticker-emoji { font-size: 60px; }
	.ociq-stickers.is-tie .ociq-sticker { width: 104px; height: 104px; }
	.ociq-stickers.is-tie .ociq-sticker-emoji { font-size: 46px; }
}

/* ---------- Grands écrans : on profite de la largeur ---------- */
@container ociq (min-width: 900px) {
	.ociq-card { padding: 44px 52px 40px; }
	.ociq-card--intro { padding: 60px 52px 52px; }
	.ociq-title { font-size: 2.9rem; }
	.ociq-intro { font-size: 1.15rem; max-width: 600px; }
	.ociq-bubble { width: 60px; height: 60px; font-size: 30px; }
	.ociq-question { font-size: 1.8rem; margin-bottom: 26px !important; }
	/* Résultat en deux colonnes : profil à gauche, affinités à droite */
	.ociq-card--result {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; align-items: center;
		text-align: center;
		background: linear-gradient(90deg, color-mix(in srgb, var(--c) 13%, #fff) 0, color-mix(in srgb, var(--c) 6%, #fff) 50%, #fff 50%);
	}
	.ociq-result-side .ociq-scores-title { margin-top: 0 !important; padding-top: 0; border-top: 0; font-size: 1.15rem; }
	.ociq-result-side .ociq-btn--outline { display: flex; margin-left: auto; margin-right: auto; }
	.ociq-sticker { width: 150px; height: 150px; }
	.ociq-sticker-emoji { font-size: 70px; }
	.ociq-stickers.is-tie.is-many .ociq-sticker { width: 78px; height: 78px; }
	.ociq-stickers.is-tie.is-many .ociq-sticker-emoji { font-size: 38px; }
	.ociq-profile-chip { font-size: .95rem; padding: 7px 14px; }
}
@container ociq (min-width: 1000px) {
	.ociq-answers { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.ociq .ociq-answer { flex-direction: column; gap: 12px; padding: 18px; min-height: 150px; }
	.ociq-answer-text { padding-top: 0; }
	.ociq-answer-letter { flex: 0 0 auto; width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	.ociq *, .ociq *::before, .ociq *::after { animation: none !important; transition: none !important; }
}
