/* Litchi Studio — pages des concours */

/* Palettes : fond de l'ouverture, texte, italiques, accent sur fond clair, bouton, pastille */
.lm-ccp--story    { --c-hero: #F9E0CC; --c-fg: #1D1A22; --c-em: #B93A62; --c-acc: #B93A62; --c-btn: #1D1A22; --c-btnfg: #fff; --c-st: #D9708F; --c-stfg: #fff; --c-tint: #FBEFE6; }
.lm-ccp--bordeaux { --c-hero: #8A063D; --c-fg: #fff;    --c-em: #F9DCE6; --c-acc: #AD084D; --c-btn: #fff;    --c-btnfg: #8A063D; --c-st: #F9DCE6; --c-stfg: #8A063D; --c-tint: #F9DCE6; }
.lm-ccp--rose     { --c-hero: #F9DCE6; --c-fg: #1D1A22; --c-em: #AD084D; --c-acc: #AD084D; --c-btn: #AD084D; --c-btnfg: #fff; --c-st: #AD084D; --c-stfg: #fff; --c-tint: #FCEBF1; }
.lm-ccp--nuit     { --c-hero: #2B2D33; --c-fg: #fff;    --c-em: #F2A0BE; --c-acc: #AD084D; --c-btn: #fff;    --c-btnfg: #1D1A22; --c-st: #F2A0BE; --c-stfg: #1D1A22; --c-tint: #ECE8E4; }
.lm-ccp--archive, .lm-ccp--inline { --c-acc: #AD084D; }

.lm-ccp { color: var(--lm-ink, #1D1A22); }
.lm-ccp em, .lm-ccp-em {
	font-family: var(--lm-serif, Georgia, serif); font-style: italic; font-weight: 400; font-stretch: normal;
	letter-spacing: -.01em; color: var(--c-acc, #AD084D);
}
.lm-ccp-sec { padding-block: clamp(56px, 7vw, 112px); }
.lm-ccp-h2 {
	margin: 0; font-weight: 800; font-stretch: 75%; letter-spacing: -.025em; text-wrap: balance;
	font-size: clamp(38px, 4.8vw, 68px); line-height: .95;
}
.lm-ccp-eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--c-acc, #AD084D); }
.lm-ccp-text { margin: 22px 0 0; font-size: 19px; line-height: 1.6; color: var(--lm-ink-3, #3A3034); max-width: 46ch; }

/* ——— Ouverture ——— */
.lm-ccp-hero {
	position: relative; overflow: hidden; background: var(--c-hero); color: var(--c-fg);
	padding-block: clamp(20px, 3vw, 40px) clamp(64px, 8vw, 128px);
}
.lm-ccp-hero::before {
	content: ""; position: absolute; right: -10vw; top: -20vw; width: 60vw; height: 60vw; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 62%); pointer-events: none;
}
.lm-ccp-hero em { color: var(--c-em); }
.lm-ccp-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
.lm-ccp-hero .lm-crumbs { color: inherit; opacity: .75; margin-bottom: clamp(28px, 4vw, 56px); }
.lm-ccp-hero .lm-crumbs a { color: inherit; }
.lm-ccp-kicker {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 16px 7px 12px;
	border: 1.5px solid currentColor; border-radius: 99px; font-size: 15px; font-weight: 700; line-height: 1.2;
}
.lm-ccp-kicker svg { width: 16px; height: 16px; fill: var(--c-em); }
.lm-ccp-h1 {
	margin: 0; font-weight: 800; font-stretch: 75%; letter-spacing: -.03em; line-height: .88; text-wrap: balance;
	font-size: clamp(54px, 7.6vw, 120px);
}
.lm-ccp-h1 em { display: inline; letter-spacing: -.02em; }
.lm-ccp-intro { margin: clamp(22px, 2.4vw, 32px) 0 0; max-width: 36ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; opacity: .92; }
.lm-ccp-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(28px, 3vw, 40px); }
.lm-ccp-btn { background: var(--c-btn); color: var(--c-btnfg); text-decoration: none; min-height: 60px; padding-inline: 34px; font-size: 18px; }
.lm-ccp-btn:hover { color: var(--c-btnfg); filter: brightness(1.08); transform: translateY(-1px); }
.lm-ccp-count { margin: 0; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.lm-ccp-count::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c-em); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-em) 30%, transparent); }
.lm-ccp-count--st::before { display: none; }

.lm-ccp-hero__media { position: relative; margin-right: clamp(0px, 2vw, 24px); }
.lm-ccp-hero__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: clamp(24px, 3vw, 40px); }
.lm-ccp-hero__img2 {
	position: absolute; left: clamp(-56px, -5vw, -20px); bottom: 9%; width: 42%; aspect-ratio: 1; object-fit: cover;
	border-radius: 24px; border: 8px solid var(--c-hero); transform: rotate(-5deg);
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .45);
}
.lm-ccp-hero__img2w {
	position: absolute; left: clamp(-56px, -5vw, -20px); bottom: 9%; z-index: 1; width: 42%; display: block;
	padding: 8px; border-radius: 24px; background: var(--c-hero); transform: rotate(-5deg);
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .45);
}
.lm-ccp-hero__img2in { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 17px; }
.lm-ccp-sticker {
	position: absolute; right: clamp(-28px, -2vw, -8px); top: clamp(-28px, -2vw, -8px); z-index: 2;
	width: clamp(128px, 12vw, 168px); aspect-ratio: 1; margin: 0; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
	background: var(--c-st); color: var(--c-stfg); transform: rotate(9deg);
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
}
.lm-ccp-sticker span { font-size: 12px; font-weight: 700; line-height: 1.15; max-width: 80%; }
.lm-ccp-sticker span:last-child { font-weight: 600; opacity: .85; }
.lm-ccp-sticker strong { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; font-stretch: 75%; line-height: 1; letter-spacing: -.02em; }

/* Emplacements photo (administrateurs) */
.lm-ccp-slot {
	display: grid; place-items: center; text-align: center; padding: 16px;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .5) 0 12px, rgba(255, 255, 255, .25) 12px 24px);
	border: 2px dashed currentColor; color: inherit; opacity: .8;
}
.lm-ccp-slot span { font-size: 15px; font-weight: 700; line-height: 1.3; }
.lm-ccp-slot small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; opacity: .8; }
.lm-ccp-hero__img2.lm-ccp-slot { background: var(--c-hero); opacity: 1; }

/* ——— Le lot ——— */
.lm-ccp-prize__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.lm-ccp-prize__head { position: sticky; top: calc(var(--lm-header-h, 96px) + 24px); }
.lm-ccp-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lm-ccp-items li {
	display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: baseline;
	padding: clamp(24px, 2.6vw, 34px); border-radius: 26px; background: #fff;
	box-shadow: 0 1px 0 rgba(29, 26, 34, .05), 0 22px 44px -30px rgba(29, 26, 34, .35);
}
.lm-ccp-items__n { grid-row: span 2; font-family: var(--lm-serif, Georgia, serif); font-style: italic; font-size: clamp(40px, 3.6vw, 56px); line-height: .8; color: var(--c-acc); }
.lm-ccp-items h3 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; }
.lm-ccp-items p { margin: 8px 0 0; font-size: 17px; line-height: 1.55; color: var(--lm-muted, #615C68); }

/* ——— Photos ——— */
.lm-ccp-gal { padding-top: 0; }
.lm-ccp-gal__t { margin-bottom: clamp(24px, 3vw, 40px); }
.lm-ccp-gal__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 270px); gap: clamp(10px, 1.2vw, 18px); }
.lm-ccp-gal__it { margin: 0; min-width: 0; }
.lm-ccp-gal__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: clamp(16px, 1.8vw, 26px); }
.lm-ccp-gal__it:first-child { grid-column: span 2; grid-row: span 2; }
.lm-ccp-gal__grid--1 { grid-template-columns: 1fr; grid-auto-rows: clamp(260px, 40vw, 560px); }
.lm-ccp-gal__grid--1 .lm-ccp-gal__it:first-child { grid-column: auto; grid-row: auto; }
.lm-ccp-gal__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 32vw, 480px); }
.lm-ccp-gal__grid--2 .lm-ccp-gal__it:first-child { grid-column: auto; grid-row: auto; }
.lm-ccp-gal__grid--3 .lm-ccp-gal__it:not(:first-child) { grid-column: span 2; }
.lm-ccp-gal__grid--4 .lm-ccp-gal__it:nth-child(2) { grid-column: span 2; }
.lm-ccp-gal__grid--6 .lm-ccp-gal__it:nth-child(6) { grid-column: span 4; grid-row: span 1; }

/* ——— Comment participer ——— */
.lm-ccp-steps { padding-top: 0; }
.lm-ccp-steps__list { list-style: none; margin: clamp(28px, 3.4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: s; }
.lm-ccp-steps__list li { padding-top: 26px; border-top: 2px solid var(--lm-ink, #1D1A22); }
.lm-ccp-steps__list span {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--c-acc); color: #fff; font-weight: 800; font-size: 18px;
}
.lm-ccp-steps__list h3 { margin: 18px 0 8px; font-size: 24px; line-height: 1.15; font-weight: 800; }
.lm-ccp-steps__list p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--lm-muted, #615C68); max-width: 32ch; }

/* ——— Je participe ——— */
.lm-ccp-join {
	position: relative; z-index: 1; padding-top: 0; margin-top: calc(-1 * clamp(40px, 5vw, 80px));
	scroll-margin-top: calc(var(--lm-header-h, 96px) + 8px);
}
.lm-ccp-join__in {
	display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 80px); align-items: start;
	padding: clamp(28px, 4.4vw, 64px); border-radius: clamp(28px, 3.4vw, 48px); background: #fff; color: var(--lm-ink, #1D1A22);
	box-shadow: 0 1px 0 rgba(29, 26, 34, .05), 0 40px 80px -48px rgba(29, 26, 34, .45);
}
.lm-ccp-recap { margin: clamp(24px, 3vw, 40px) 0 0; display: grid; gap: 0; }
.lm-ccp-recap > div { padding: 14px 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.lm-ccp-recap dt { font-size: 14px; font-weight: 600; opacity: .72; }
.lm-ccp-recap dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; line-height: 1.25; }
.lm-ccp-join__rules { margin: 18px 0 0; font-size: 16px; }
.lm-ccp-join__rules a { color: var(--c-acc, #AD084D); font-weight: 700; }
.lm-ccp-join__card { padding: clamp(22px, 2.8vw, 36px); border-radius: 26px; background: var(--c-tint, #FBEFE6); color: var(--lm-ink, #1D1A22); }
.lm-ccp-join__card input[type="text"], .lm-ccp-join__card input[type="email"], .lm-ccp-join__card input[type="tel"] { background: #fff; }
.lm-ccp-closed { margin: 0; font-size: 19px; font-weight: 700; }
.lm-ccp-form .lm-fields + .lm-fields, .lm-ccp-insta { margin-top: 16px; }
.lm-ccp-at { position: relative; display: block; }
.lm-ccp-at > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--lm-muted, #615C68); pointer-events: none; }
.lm-ccp-at input { width: 100%; padding-left: 36px !important; }
.lm-ccp-consents { margin-top: 22px; display: grid; gap: 12px; }
.lm-ccp-consents .lm-consent { margin: 0; font-size: 15px; line-height: 1.45; }
.lm-ccp-consents .lm-consent a { color: var(--c-acc, #AD084D); }
.lm-ccp-fine { margin: 2px 0 0 30px; font-size: 13px; line-height: 1.45; color: var(--lm-muted, #615C68); }
.lm-ccp-track { margin: 20px 0 0; font-size: 13px; line-height: 1.5; color: var(--lm-muted, #615C68); }
.lm-ccp-track a, .lm-ccp-ck { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lm-ccp-ck { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.lm-ccp-send { width: 100%; margin-top: 22px; min-height: 58px; font-size: 18px; }
.lm-ccp-pick { margin: 0 0 22px; padding: 0; border: 0; display: grid; gap: 10px; }
.lm-ccp-pick legend { margin-bottom: 6px; font-size: 15px; font-weight: 700; }
.lm-ccp-pick em { font-family: inherit; font-style: normal; color: var(--lm-muted, #615C68); }
.lm-ccp-form .lm-done { padding: 8px 0; }
.lm-ccp-form .lm-error { margin-top: 16px; }

/* ——— Questions ——— */
.lm-ccp-faq { padding-top: 0; }
.lm-ccp-faq__in { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.lm-ccp-faq details { border-bottom: 1px solid var(--lm-line, rgba(29, 26, 34, .14)); }
.lm-ccp-faq details:first-child { border-top: 1px solid var(--lm-line, rgba(29, 26, 34, .14)); }
.lm-ccp-faq summary {
	position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0;
	font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.3;
}
.lm-ccp-faq summary::-webkit-details-marker { display: none; }
.lm-ccp-faq summary::after {
	content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
	background: var(--c-tint, #F9DCE6); color: var(--c-acc); font-size: 22px; font-weight: 600; transition: transform .25s var(--lm-ease, ease);
}
.lm-ccp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lm-ccp-faq details p { margin: -6px 0 22px; font-size: 17px; line-height: 1.6; color: var(--lm-ink-3, #3A3034); max-width: 60ch; }

/* ——— Réalisations ——— */
.lm-ccp-real { padding-top: 0; }
.lm-ccp-real__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.lm-ccp-real__all { font-weight: 700; color: var(--c-acc, #AD084D); text-decoration: none; }
.lm-ccp-real__all:hover { text-decoration: underline; }

/* Ouverture sans photo (visiteurs) : la pastille prend la place */
.lm-ccp-hero--noimg .lm-ccp-hero__media { display: grid; place-items: center; margin: 0; }
.lm-ccp-hero--noimg .lm-ccp-sticker { position: static; width: clamp(200px, 22vw, 300px); }
.lm-ccp-hero--noimg .lm-ccp-sticker span { font-size: clamp(14px, 1.3vw, 18px); }
.lm-ccp-hero--noimg .lm-ccp-sticker strong { font-size: clamp(40px, 4.4vw, 64px); }
@media (max-width: 960px) { .lm-ccp-hero--noimg .lm-ccp-sticker { width: 180px; } }

/* ——— Cartes (autres concours, page /concours/) ——— */
.lm-ccp-more { padding-top: 0; }
.lm-ccp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.lm-ccp-card {
	display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); min-height: 280px; overflow: hidden;
	border-radius: 32px; background: var(--c-hero); color: var(--c-fg); text-decoration: none;
	transition: transform .35s var(--lm-ease, ease), box-shadow .35s var(--lm-ease, ease);
}
.lm-ccp-card:hover { color: var(--c-fg); transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .5); }
.lm-ccp-card__media { display: block; min-height: 100%; }
.lm-ccp-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lm-ccp-card__media .lm-ccp-slot { height: 100%; border-radius: 0; }
.lm-ccp-card__txt { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); }
.lm-ccp-card__k { font-size: 14px; font-weight: 700; opacity: .8; }
.lm-ccp-card__t { margin: 12px 0 0; font-size: clamp(32px, 3.2vw, 46px); line-height: .95; font-weight: 800; font-stretch: 75%; letter-spacing: -.02em; }
.lm-ccp-card__t em { color: var(--c-em); }
.lm-ccp-card__go { margin-top: auto; padding-top: 24px; font-weight: 700; }

/* ——— Règlement ——— */
.lm-ccp-rules .lm-cc-rules h2 { font-size: clamp(22px, 2vw, 26px); }
.lm-ccp-rules .lm-cc-rules h3 { font-size: 19px; margin-top: 24px; }
.lm-cc-rules__date { color: var(--lm-muted, #615C68); font-size: 15px; }
.lm-ccp-rules__back { margin-top: 40px; }
.lm-ccp-rules__back .lm-btn { text-decoration: none; color: #fff; }

/* Formulaire seul (code court) */
.lm-ccp--inline .lm-ccp-join__card { background: #fff; box-shadow: 0 1px 0 rgba(29, 26, 34, .06), 0 18px 40px -24px rgba(29, 26, 34, .25); }

@media (max-width: 960px) {
	.lm-ccp-hero__in, .lm-ccp-prize__in, .lm-ccp-join__in, .lm-ccp-faq__in { grid-template-columns: 1fr; }
	.lm-ccp-hero__media { max-width: 520px; margin: 8px auto 0; width: 88%; }
	.lm-ccp-prize__head { position: static; }
	.lm-ccp-steps__list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.lm-ccp-hero__media { width: 82%; }
	.lm-ccp-hero__img2 { border-width: 6px; left: -14%; }
	.lm-ccp-hero__img2w { padding: 6px; left: -14%; }
	.lm-ccp-sticker { right: -8%; top: -5%; }
	.lm-ccp-btn { width: 100%; }
	.lm-ccp-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
	.lm-ccp-gal__grid .lm-ccp-gal__it:not(:first-child) { grid-column: auto; }
	.lm-ccp-gal__grid--3 .lm-ccp-gal__it:not(:first-child), .lm-ccp-gal__grid--6 .lm-ccp-gal__it:nth-child(6) { grid-column: auto; }
	.lm-ccp-join__in { padding: 22px 14px 14px; border-radius: 26px; }
	.lm-ccp-join__aside { padding: 8px 8px 0; }
	.lm-ccp-recap { grid-template-columns: 1fr 1fr; column-gap: 16px; }
	.lm-ccp-recap dd { font-size: 17px; }
	.lm-ccp-join__card { padding: 22px 18px; border-radius: 22px; }
	.lm-ccp-card { grid-template-columns: 1fr; }
	.lm-ccp-card__media { aspect-ratio: 16 / 10; }
	.lm-ccp-items li { grid-template-columns: 1fr; }
	.lm-ccp-items__n { grid-row: auto; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.lm-ccp-card, .lm-ccp-faq summary::after { transition: none; }
}
