/* Litchi Presse : l'agence photo de Litchi Media.
   Les couleurs, polices, boutons, champs et en-têtes viennent du thème Litchi Media et de Litchi Studio ;
   ce fichier ajoute la planche contact, la fiche photo, les licences, les forfaits et les espaces.
   Valeurs de secours si le thème est absent : */
:root {
	--lp-ink: var(--lm-ink, #1D1A22);
	--lp-ink-2: var(--lm-ink-2, #34303A);
	--lp-ink-3: var(--lm-ink-3, #4A4550);
	--lp-muted: var(--lm-muted, #615C68);
	--lp-line: var(--lm-line, rgba(29, 26, 34, .14));
	--lp-accent: var(--lm-accent, #AD084D);
	--lp-accent-d: var(--lm-accent-d, #8A063D);
	--lp-accent-l: var(--lm-accent-l, #EC5B8D);
	--lp-deep: var(--lm-u-deep, #2B2D33);
	--lp-tint: var(--lm-u-tint, #ECE8E4);
	--lp-glow: var(--lm-u-glow, #F2A0BE);
	--lp-ease: var(--lm-ease, cubic-bezier(.16, 1, .3, 1));
	--lp-sans: var(--lm-sans, 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif);
	--lp-serif: var(--lm-serif, 'Instrument Serif', Georgia, serif);
	--lp-mint: #5FBFAE;
	--lp-apricot: #F2A974;
	--lp-row: 230px;
}

/* ==============================================================
   Titres et textes propres à l'agence
   ============================================================== */
.lp-h2 { font-size: clamp(36px, 4vw, 60px); }
.lp-h3 { margin: 48px 0 18px; font-weight: 800; font-stretch: 80%; font-size: clamp(28px, 2.6vw, 36px); line-height: 1; letter-spacing: -.01em; color: var(--lp-ink); }
.lp-h4 { margin: 32px 0 12px; font-weight: 800; font-size: 20px; }
.lp-space__body > .lp-h3:first-child, .lp-space__body > .lp-flash + .lp-h3 { margin-top: 0; }
.lp-opt { font-size: 14px; font-weight: 500; color: var(--lp-muted); }
.lp-hint { margin: 14px 0 22px; font-size: 15px; line-height: 1.55; color: var(--lp-ink-3); }
.lp-intro { margin-bottom: 28px; max-width: 40em; }
.lp-link { font-weight: 700; font-size: 15px; color: var(--lp-accent); text-decoration: none; white-space: nowrap; }
.lp-link:hover { text-decoration: underline; }
.lp-ok { margin: 0; padding: 16px 0; font-size: 17px; font-weight: 600; color: #0E6E6A; }
.lp-sechead { margin-top: 56px; margin-bottom: 24px; }
.lp-sechead .lp-h3 { margin: 0 0 8px; }

/* Messages après une action */
.lp-flash { margin: 0 0 28px; padding: 14px 18px; border-radius: 14px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.lp-flash--ok { background: #E3F4EF; color: #0B5753; }
.lp-flash--warn { background: #FBEFE6; color: #7A3E14; }
.lp-flash--err { background: #FDECEF; color: var(--lp-accent-d); }

/* Pastilles de statut */
.lp-pill {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
	font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; background: #F2EFEB; color: var(--lp-ink-3);
}
.lp-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.lp-pill--active, .lp-pill--approved, .lp-pill--accepted, .lp-pill--done, .lp-pill--account { background: #E3F4EF; color: #0B5753; }
.lp-pill--pending, .lp-pill--quote, .lp-pill--proposed, .lp-pill--pending_payment, .lp-pill--new, .lp-pill--past_due { background: #FBEFE6; color: #8A4A1F; }
.lp-pill--refused, .lp-pill--declined, .lp-pill--cancel { background: #FDECEF; color: var(--lp-accent-d); }
.lp-pill--expired, .lp-pill--cancelled, .lp-pill--archived, .lp-pill--canceled, .lp-pill--ended { background: #EEECEA; color: var(--lp-muted); }

.lp-empty { padding: clamp(32px, 5vw, 56px); border: 1.5px dashed rgba(29, 26, 34, .22); border-radius: 24px; text-align: center; }
.lp-empty p { margin: 0 auto 18px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--lp-ink-3); }
.lp-empty p:last-child { margin-bottom: 0; }

.lp-select { min-height: 52px; width: 100%; padding: 0 40px 0 16px; border-radius: 12px; border: 1.5px solid rgba(29, 26, 34, .25); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231D1A22' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center / 12px; font-family: inherit; font-size: 17px; color: var(--lp-ink); -webkit-appearance: none; appearance: none; }
.lp-select:focus { border-color: var(--lp-accent); outline: none; box-shadow: 0 0 0 3px rgba(173, 8, 77, .18); }
.lp-form .lm-field select:not(.lp-select) { min-height: 52px; border-radius: 12px; }
.lp-form fieldset + fieldset { margin-top: 28px; }

/* ==============================================================
   En-tête et recherche
   ============================================================== */
.lp-hero .lm-keys { margin-top: 36px; max-width: 920px; }
.lp-hero .lp-search { margin-top: 36px; }
.lp-search {
	position: relative; display: flex; align-items: center; gap: 8px; max-width: 880px;
	padding: 8px 8px 8px 60px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(29, 26, 34, .16);
	box-shadow: 0 30px 60px -40px rgba(29, 26, 34, .45); transition: border-color .2s ease, box-shadow .3s ease;
}
.lp-search:focus-within { border-color: var(--lp-accent); box-shadow: 0 0 0 4px rgba(173, 8, 77, .14), 0 30px 60px -40px rgba(29, 26, 34, .45); }
.lp-search__icon { position: absolute; left: 22px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); fill: none; stroke: var(--lp-ink); stroke-width: 2.2; stroke-linecap: round; }
.lp-search__input { flex: 1; min-width: 0; min-height: 56px; border: 0; background: transparent; font-family: inherit; font-size: clamp(17px, 1.6vw, 21px); color: var(--lp-ink); }
.lp-search__input:focus { outline: none; }
.lp-search__input::placeholder { color: #8A8490; }
.lp-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lp-search__btn { flex: none; }

.lp-library__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.lp-library__bar .lm-filters { margin-top: 0; }
.lp-formats { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: #F2EFEB; }
.lp-format { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #5A5560; text-decoration: none; transition: background .2s ease, color .2s ease; }
.lp-format:hover { color: var(--lp-ink); }
.lp-format[aria-current="page"] { background: #fff; color: var(--lp-ink); box-shadow: 0 2px 8px -4px rgba(29, 26, 34, .3); }
.lp-format span { display: block; border: 1.8px solid currentColor; border-radius: 2px; }
.lp-format--all span { width: 16px; height: 12px; border-style: dashed; }
.lp-format--landscape span { width: 18px; height: 12px; }
.lp-format--portrait span { width: 11px; height: 16px; }
.lp-format--square span { width: 14px; height: 14px; }
.lp-count { margin: 28px 0 18px; font-size: 15px; font-weight: 700; color: var(--lp-muted); }

/* ==============================================================
   Planche contact : rangées justifiées selon le format des images
   ============================================================== */
.lp-sheet { display: flex; flex-wrap: wrap; gap: 26px 14px; }
.lp-frame { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--lp-row)); min-width: 0; max-width: calc(var(--ar) * var(--lp-row) * 2.4); margin: 0; }
.lp-sheet__end { flex: 100000 1 0; }
.lp-frame__link { position: relative; display: block; aspect-ratio: var(--ar); overflow: hidden; border-radius: 6px; background: var(--lp-tint); }
.lp-frame__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--lp-ease), filter .4s ease; }
.lp-frame__link:hover .lp-frame__img, .lp-frame__link:focus-visible .lp-frame__img { transform: scale(1.035); }
/* Le trait de crayon gras, comme sur une planche contact */
.lp-mark { position: absolute; inset: 5%; width: 90%; height: 90%; overflow: visible; pointer-events: none; }
.lp-mark path { fill: none; stroke: var(--lp-accent-l); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transition: stroke-dashoffset .75s cubic-bezier(.65, 0, .35, 1), opacity .15s ease; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.lp-frame__link:hover .lp-mark path, .lp-frame__link:focus-visible .lp-mark path { stroke-dashoffset: 0; opacity: .95; }
.lp-frame__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 10px; }
.lp-frame__ref { font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--lm-u-text, var(--lp-accent)); font-variant-numeric: tabular-nums; }
.lp-frame__title { flex-basis: 100%; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--lp-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-frame__meta { flex-basis: 100%; font-size: 13px; color: var(--lp-muted); }
.lp-frame .lp-pill { font-size: 12px; padding: 1px 8px; }

/* Planche d'un reportage : sur fond sombre, avec les perforations d'un film */
.lp-reportage__sheet .lp-sheet {
	position: relative; padding: 52px clamp(16px, 2.6vw, 36px); border-radius: 28px; background: var(--lp-deep);
}
.lp-reportage__sheet .lp-sheet::before, .lp-reportage__sheet .lp-sheet::after {
	content: ''; position: absolute; left: 28px; right: 28px; height: 10px; border-radius: 3px; opacity: .9;
	background: repeating-linear-gradient(90deg, rgba(251, 245, 240, .14) 0 16px, transparent 16px 34px);
}
.lp-reportage__sheet .lp-sheet::before { top: 20px; }
.lp-reportage__sheet .lp-sheet::after { bottom: 20px; }
.lp-reportage__sheet .lp-frame__link { background: #1F2025; border-radius: 3px; }
.lp-reportage__sheet .lp-frame__ref { color: var(--lp-glow); }
.lp-reportage__sheet .lp-frame__title { color: #F5F3F6; }
.lp-reportage__sheet .lp-frame__meta { color: #B5AEBA; }
.lp-reportage__sheet .lp-mark path { stroke: #fff; }
.lp-reportage__sheet :focus-visible { outline-color: var(--lp-glow); }
.lp-sheethead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 16px; }
.lp-sheethead__k { margin: 0; font-size: 15px; font-weight: 700; color: var(--lp-muted); }
.lp-sheethead__t { margin: 0; font-size: 15px; color: var(--lp-muted); }
.lp-reportage__text { padding-bottom: clamp(48px, 6vw, 88px); }

/* ==============================================================
   Cartes de reportages
   ============================================================== */
.lp-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 48px 28px; }
.lp-story { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lp-story__media { position: relative; display: block; overflow: hidden; border-radius: 20px; aspect-ratio: 3 / 2; text-decoration: none; }
.lp-story__media > .lm-img, .lp-story__media > .lm-ph { transition: transform .9s var(--lp-ease); }
.lp-story:hover .lp-story__media > .lm-img { transform: scale(1.03); }
.lp-story__count { position: absolute; left: 14px; bottom: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(29, 26, 34, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 13px; font-weight: 700; }
.lp-story__kicker { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--lm-u-text, var(--lp-accent)); }
.lp-story__title { margin: 0; font-weight: 800; font-stretch: 82%; font-size: clamp(26px, 2.2vw, 30px); line-height: 1.05; }
.lp-story__title a { color: var(--lp-ink); text-decoration: none; }
.lp-story__title a:hover { color: var(--lp-accent); }
.lp-story__meta { margin: 0; font-size: 14px; color: var(--lp-muted); }
@media (min-width: 960px) {
	.lp-stories > .lp-story:first-child { grid-column: span 2; }
	.lp-stories > .lp-story:first-child .lp-story__media { aspect-ratio: 16 / 9; }
	.lp-stories > .lp-story:first-child .lp-story__title { font-size: clamp(36px, 3.6vw, 52px); line-height: .95; }
}

/* ==============================================================
   Fiche d'une photo
   ============================================================== */
.lp-detail { padding: clamp(32px, 4vw, 56px) 0 clamp(56px, 7vw, 104px); }
.lp-detail .lm-crumbs { margin-bottom: 28px; }
.lp-detail__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
.lp-detail__media { margin: 0; }
.lp-detail__img { display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 22px; background: var(--lp-deep); max-height: 78vh; }
.lp-detail__img .lm-img { width: auto; max-width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: 0; }
.lp-detail__note { margin-top: 12px; font-size: 14px; color: var(--lp-muted); }
.lp-detail__side { position: sticky; top: calc(var(--lm-header-h, 96px) + 24px); }
.lp-detail__title { margin: 0; font-weight: 800; font-stretch: 78%; font-size: clamp(36px, 3.8vw, 56px); line-height: .95; letter-spacing: -.015em; color: var(--lp-ink); text-wrap: balance; }
.lp-detail__caption { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--lp-ink-2); }
.lp-fiche { margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lp-fiche dd a { color: var(--lp-ink); }
.lp-copy { margin-top: 18px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(29, 26, 34, .2); background: transparent; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--lp-ink); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.lp-copy:hover { border-color: var(--lp-accent); }
.lp-copy.is-done { background: var(--lp-ink); border-color: var(--lp-ink); color: #fff; }
.lp-tags { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--lp-line); font-size: 14px; color: var(--lp-ink); text-decoration: none; transition: border-color .2s ease; }
.lp-tags a:hover { border-color: var(--lp-accent); color: var(--lp-ink); }
.lp-restrict { margin: 22px 0 0; padding: 14px 18px; border-radius: 14px; background: #FFF7E6; border: 1px dashed #C9A24A; color: #5B4613; font-size: 15px; line-height: 1.5; }
.lp-more { padding-top: 0; }

/* ==============================================================
   Licences
   ============================================================== */
.lp-lic { margin-top: clamp(56px, 6vw, 88px); padding-top: 28px; border-top: 2px solid var(--lp-ink); scroll-margin-top: calc(var(--lm-header-h, 96px) + 16px); }
.lp-lic__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; margin-bottom: 28px; }
.lp-lic__title { margin: 0; font-weight: 800; font-stretch: 78%; font-size: clamp(36px, 4vw, 60px); line-height: .92; letter-spacing: -.02em; }
.lp-lic__lead { margin: 0 0 6px; max-width: 30em; font-size: 17px; line-height: 1.55; color: var(--lp-ink-3); }
.lp-lic__more { margin: 18px 0 0; font-size: 16px; color: var(--lp-ink-3); }
.lp-lic__cta { margin-top: 28px; }
.lp-usages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.lp-usage { position: relative; display: flex; cursor: pointer; }
.lp-usage input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lp-usage__box {
	position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; border-radius: 20px;
	background: #fff; border: 2px solid rgba(29, 26, 34, .12); transition: border-color .2s ease, transform .3s var(--lm-spring, var(--lp-ease)), box-shadow .3s ease;
}
.lp-usage:hover .lp-usage__box { border-color: rgba(173, 8, 77, .45); }
.lp-usage__box::after { content: ''; position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(29, 26, 34, .22); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.lp-usage input:checked + .lp-usage__box { border-color: var(--lp-ink); box-shadow: 0 18px 36px -28px rgba(29, 26, 34, .6); transform: translateY(-2px); }
.lp-usage input:checked + .lp-usage__box::after { border-color: var(--lp-accent); background: var(--lp-accent); box-shadow: inset 0 0 0 4px #fff; }
.lp-usage input:focus-visible + .lp-usage__box { outline: 3px solid var(--lp-accent); outline-offset: 3px; }
.lp-usage__name { padding-right: 28px; font-weight: 800; font-stretch: 84%; font-size: 21px; line-height: 1.1; color: var(--lp-ink); }
.lp-usage__desc { font-size: 14px; line-height: 1.45; color: var(--lp-ink-3); }
.lp-usage__price { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 24px; letter-spacing: -.01em; color: var(--lp-ink); }
.lp-usage__price small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--lp-muted); }
.lp-usage.is-plan .lp-usage__box { background: var(--lp-tint); }
.lp-usage.is-plan .lp-usage__price { font-size: 19px; color: var(--lm-u-text, var(--lp-accent)); }
.lp-lic__form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.lp-lic__note { margin-top: 22px; max-width: 760px; }
.lp-terms { margin-top: 18px; max-width: 760px; font-size: 15px; color: var(--lp-ink-3); }
.lp-terms summary { cursor: pointer; font-weight: 700; color: var(--lp-ink); }
.lp-terms ul { margin: 10px 0 0; padding-left: 1.2em; line-height: 1.55; }
.lp-terms li + li { margin-top: 4px; }
.lp-lic__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.lp-secure { font-size: 14px; color: var(--lp-muted); }
.lp-owned { margin: 0 0 8px; padding: 0; list-style: none; }
.lp-owned__it { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 0; border-bottom: 1px solid var(--lp-line); }
.lp-owned__t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-weight: 800; font-size: 20px; }
.lp-owned__m { margin: 4px 0 0; font-size: 15px; color: var(--lp-muted); }

/* Tableaux éditoriaux */
.lp-tablewrap { overflow-x: auto; margin-inline: calc(-1 * min(8px, var(--lm-gutter, 20px))); padding-inline: min(8px, var(--lm-gutter, 20px)); }
.lp-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--lp-ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.lp-table thead th { padding: 12px 10px; text-align: left; font-size: 14px; font-weight: 700; color: var(--lp-muted); border-bottom: 1px solid var(--lp-line); white-space: nowrap; }
.lp-table td, .lp-table tbody th { padding: 14px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--lp-line); font-weight: 400; }
.lp-table td > span:not(.lp-pill), .lp-table tbody th > span { display: block; margin-top: 3px; font-size: 14px; color: var(--lp-muted); }
.lp-table td > strong a { color: var(--lp-ink); text-decoration: none; }
.lp-table td > strong a:hover { color: var(--lp-accent); }
.lp-table small { color: var(--lp-muted); }
.lp-table .lp-num { text-align: right; white-space: nowrap; }
.lp-table tbody tr { transition: background .2s ease; }
.lp-table tbody tr:hover { background: rgba(255, 255, 255, .7); }
.lp-actions { white-space: nowrap; }
.lp-actions .lm-btn { margin-right: 12px; }
.lp-actions .lp-link + .lp-link { margin-left: 12px; }
.lp-prices tbody th strong { font-size: 17px; font-weight: 800; }
.lp-thumb { display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--lp-tint); flex: none; }
.lp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-table .lp-thumb + span { margin-top: 6px; }

/* ==============================================================
   Espaces : onglets, chiffres
   ============================================================== */
.lp-space .lp-tabs { margin-bottom: 36px; }
.lp-space__body { min-height: 240px; }
.lp-tabs a.lm-tab { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.lp-tabs a.lm-tab:hover { color: var(--lp-ink); }
.lp-tabs a.lm-tab[aria-current="page"] { background: #fff; color: var(--lp-ink); box-shadow: 0 2px 8px -4px rgba(29, 26, 34, .3); }
.lp-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--lp-accent); color: #fff; font-size: 12px; font-weight: 800; }
.lp-keys { margin-top: 0; margin-bottom: 36px; }
.lp-keys dd { font-variant-numeric: tabular-nums; }
.lp-form .lm-tabs { margin-bottom: 4px; }

/* Connexion */
.lp-login { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 80px; align-items: center; }
.lp-login__txt .lm-body-lg { margin-top: 18px; max-width: 26em; }
.lp-login__alt { margin: 24px 0 0; font-size: 17px; }
.lp-login__alt a { font-weight: 700; }
.lp-lost { font-size: 15px; font-weight: 600; color: var(--lp-muted); }

/* ==============================================================
   Forfaits et vumètre
   ============================================================== */
.lp-vu { display: flex; gap: 4px; margin: 18px 0 12px; }
.lp-vu__led { flex: 1; height: 14px; border-radius: 3px; background: rgba(29, 26, 34, .08); transition: background .3s ease calc(var(--i) * 35ms), box-shadow .3s ease calc(var(--i) * 35ms); }
.lp-vu__led--g.is-on { background: var(--lp-mint); box-shadow: 0 0 10px rgba(95, 191, 174, .55); }
.lp-vu__led--a.is-on { background: var(--lp-apricot); box-shadow: 0 0 10px rgba(242, 169, 116, .6); }
.lp-vu__led--r.is-on { background: var(--lp-accent-l); box-shadow: 0 0 10px rgba(236, 91, 141, .6); }
.lp-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.lp-sub { padding: 26px 28px; border-radius: 24px; background: var(--lp-deep); color: #F5F3F6; }
.lp-sub .lp-vu__led:not(.is-on) { background: rgba(245, 243, 246, .1); }
.lp-sub__k { margin: 0; font-size: 14px; font-weight: 700; color: var(--lp-glow); }
.lp-sub__t { margin: 6px 0 0; font-weight: 800; font-stretch: 82%; font-size: 30px; line-height: 1; color: #fff; }
.lp-sub__m { margin: 4px 0 0; font-size: 15px; color: #DCD6DE; }
.lp-sub__m strong { color: #fff; }
.lp-portal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.lp-plan { display: flex; flex-direction: column; padding: 28px; border-radius: 24px; border: 1.5px solid rgba(29, 26, 34, .16); background: transparent; transition: transform .5s var(--lp-ease), box-shadow .5s var(--lp-ease); }
.lp-plan:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -36px rgba(29, 26, 34, .45); }
.lp-plan__usage { margin: 0; font-weight: 800; font-stretch: 82%; font-size: 30px; line-height: 1.05; }
.lp-plan__head p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--lp-ink-3); }
.lp-plan__tiers { margin: 18px 0 0; padding: 0; list-style: none; }
.lp-tier { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--lp-line); }
.lp-tier__q { font-size: 16px; color: var(--lp-ink-3); }
.lp-tier__q strong { font-weight: 800; font-size: 26px; color: var(--lp-ink); font-variant-numeric: tabular-nums; }
.lp-tier__p { margin-left: auto; text-align: right; font-weight: 800; font-size: 19px; }
.lp-tier__p small { display: block; font-size: 13px; font-weight: 600; color: var(--lp-muted); }
.lp-tier form { flex-basis: 100%; display: flex; justify-content: flex-end; }
.lp-tier.is-current { margin: 0 -14px; padding-inline: 14px; border-radius: 14px; border-top-color: transparent; background: var(--lp-tint); }
.lp-tier__on { flex-basis: 100%; text-align: right; font-size: 14px; font-weight: 800; color: var(--lm-u-text, var(--lp-accent)); }

/* ==============================================================
   Publications (déclarations d'usage)
   ============================================================== */
.lp-out { margin-bottom: 36px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--lm-rose, #F9DCE6); }
.lp-out__k { margin: 0; font-size: 14px; font-weight: 800; color: var(--lp-accent-d); }
.lp-out__t { margin: 6px 0 10px; font-weight: 800; font-stretch: 84%; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
.lp-out p:not([class]) { margin: 0 0 18px; max-width: 40em; font-size: 17px; line-height: 1.55; color: var(--lp-ink-2); }
.lp-declare { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px 48px; align-items: start; margin-bottom: 24px; }
.lp-declare__photo .lp-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 18px; }
.lp-declare__photo p { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--lp-ink-3); }
.lp-declare__photo strong { color: var(--lp-ink); font-size: 17px; }
.lp-todo { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--lp-ink); }
.lp-todo li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--lp-line); }
.lp-todo li > div { flex: 1; min-width: 0; }
.lp-todo strong { display: block; font-size: 17px; }
.lp-todo span { font-size: 14px; color: var(--lp-muted); }

/* ==============================================================
   Photographes : envoi
   ============================================================== */
.lp-newrep { margin-bottom: 20px; border: 1.5px solid rgba(29, 26, 34, .16); border-radius: 22px; background: transparent; }
.lp-newrep summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px; cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; }
.lp-newrep summary::-webkit-details-marker { display: none; }
.lp-newrep summary::before { content: '+'; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lp-ink); color: #fff; font-size: 18px; line-height: 1; transition: transform .35s var(--lm-spring, var(--lp-ease)); }
.lp-newrep[open] summary::before { transform: rotate(45deg); }
.lp-newrep__form { padding: 0 24px 24px; }
.lp-drop {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 230px; padding: 32px;
	border-radius: 22px; border: 2px dashed rgba(29, 26, 34, .25); background: #FBFAF8; text-align: center; cursor: pointer;
	transition: border-color .2s ease, background .2s ease, transform .3s var(--lp-ease);
}
.lp-drop:hover, .lp-drop.is-over { border-color: var(--lp-accent); background: var(--lp-tint); }
.lp-drop.is-over { transform: scale(1.01); }
.lp-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.lp-drop:focus-within { outline: 3px solid var(--lp-accent); outline-offset: 3px; }
.lp-drop__t { font-weight: 800; font-stretch: 80%; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.lp-drop__s { font-size: 15px; color: var(--lp-muted); }
.lp-drop__n { margin-top: 6px; font-weight: 700; color: var(--lp-accent); }
.lp-queue { margin-top: 20px; display: grid; gap: 8px; }
.lp-qi { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 10px 12px; border-radius: 14px; background: #F7F5F2; }
.lp-qi__img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--lp-tint); grid-row: span 2; }
.lp-qi__n { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-qi__s { font-size: 13px; font-weight: 700; color: var(--lp-muted); white-space: nowrap; }
.lp-qi__bar { grid-column: 2 / 4; height: 5px; border-radius: 3px; background: rgba(29, 26, 34, .1); overflow: hidden; }
.lp-qi__bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--lm-u, var(--lp-accent)); transition: width .2s linear; }
.lp-qi.is-done .lp-qi__bar span { background: var(--lp-mint); }
.lp-qi.is-done .lp-qi__s { color: #0B5753; }
.lp-qi.is-err .lp-qi__bar span { background: var(--lp-accent); }
.lp-qi.is-err .lp-qi__s { color: var(--lp-accent-d); white-space: normal; }
.lp-sent { margin-top: 40px; }
.lp-sheet--mine { margin-top: 28px; }
.lp-filters { margin-top: 0; }
.lp-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; margin-top: 18px; }
.lp-edit__img { margin: 0; }
.lp-edit__img .lm-img { height: auto; border-radius: 18px; }
.lp-edit__img figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--lp-muted); }
.lp-period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 24px; }
.lp-period label { font-weight: 700; }
.lp-period .lp-select { width: auto; min-width: 220px; }
.lp-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.lp-order { padding: 26px 28px; border-radius: 24px; border: 1.5px solid rgba(29, 26, 34, .16); background: #fff; }
.lp-order header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.lp-order__k { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 700; color: var(--lm-u-text, var(--lp-accent)); }
.lp-order__t { margin: 0; font-weight: 800; font-stretch: 82%; font-size: 26px; line-height: 1.05; }
.lp-order .lm-fiche { margin-top: 20px; }
.lp-order__c { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: var(--lp-ink-3); }
.lp-order__reply { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--lp-line); }
.lp-order__reply .lm-btns { margin-top: 12px; }
.lp-team { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }

/* ==============================================================
   Visionneuse
   ============================================================== */
.lp-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #F5F3F6; }
.lp-viewer::backdrop { background: rgba(20, 18, 24, .94); }
.lp-viewer[open] { animation: lp-in .35s ease both; }
@keyframes lp-in { from { opacity: 0; } to { opacity: 1; } }
.lp-viewer__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; }
.lp-viewer__fig { margin: 0; display: flex; align-items: center; justify-content: center; padding: 56px 72px; min-height: 0; }
.lp-viewer__fig img { max-width: 100%; max-height: calc(100dvh - 112px); object-fit: contain; border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); animation: lp-up .5s var(--lp-ease) both; }
@keyframes lp-up { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.lp-viewer__side { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 40px 32px; background: var(--lp-deep); overflow-y: auto; }
.lp-viewer__ref { margin: 0; font-size: 14px; font-weight: 700; color: var(--lp-glow); letter-spacing: .03em; }
.lp-viewer__title { margin: 8px 0 0; font-weight: 800; font-stretch: 82%; font-size: 30px; line-height: 1.05; color: #fff; }
.lp-viewer__caption { margin: 16px 0 0; font-size: 16px; line-height: 1.55; color: #DCD6DE; }
.lp-viewer__meta, .lp-viewer__credit { margin: 10px 0 0; font-size: 14px; color: #B5AEBA; }
.lp-viewer__side .lm-btn { margin-top: 26px; align-self: flex-start; }
.lp-viewer__btn, .lp-viewer__close {
	position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
	border: 1.5px solid rgba(245, 243, 246, .35); background: rgba(29, 26, 34, .5); color: #fff; font-size: 22px; font-weight: 700; cursor: pointer;
	transition: background .2s ease, border-color .2s ease, transform .3s var(--lp-ease);
}
.lp-viewer__btn:hover, .lp-viewer__close:hover { background: #fff; color: var(--lp-ink); border-color: #fff; }
.lp-viewer__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lp-viewer__next { right: 376px; top: 50%; transform: translateY(-50%); }
.lp-viewer__close { right: 376px; top: 16px; font-size: 28px; }
.lp-viewer :focus-visible { outline: 3px solid var(--lp-glow); outline-offset: 3px; }
html.lp-locked { overflow: hidden; }

/* ==============================================================
   Petits écrans
   ============================================================== */
@media (max-width: 1023px) {
	.lp-detail__grid { grid-template-columns: 1fr; }
	.lp-detail__side { position: static; }
	.lp-viewer__in { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
	.lp-viewer__fig { padding: 64px 12px 12px; }
	.lp-viewer__fig img { max-height: calc(100dvh - 300px); }
	.lp-viewer__side { padding: 20px 22px 28px; max-height: 300px; justify-content: flex-start; }
	.lp-viewer__title { font-size: 24px; }
	.lp-viewer__next { right: 16px; }
	.lp-viewer__close { right: 16px; top: 12px; }
	.lp-viewer__prev, .lp-viewer__next { top: calc(50% - 120px); }
}
@media (max-width: 760px) {
	:root { --lp-row: 118px; }
	.lp-sheet { gap: 20px 8px; }
	.lp-frame__title { font-size: 14px; }
	.lp-declare, .lp-edit { grid-template-columns: 1fr; }
	.lp-declare__photo { display: flex; gap: 14px; align-items: center; }
	.lp-declare__photo .lp-thumb { width: 96px; aspect-ratio: 1; }
	.lp-declare__photo p { margin: 0; }
	.lp-reportage__sheet .lp-sheet { margin-inline: calc(-1 * var(--lm-gutter, 20px) + 6px); padding: 40px 12px; border-radius: 18px; }
	.lp-reportage__sheet .lp-sheet::before, .lp-reportage__sheet .lp-sheet::after { left: 14px; right: 14px; }
	.lp-library__bar { flex-direction: column; align-items: stretch; }
	.lp-formats { align-self: flex-start; }
	.lp-search { padding: 6px 6px 6px 48px; }
	.lp-search__icon { left: 18px; width: 20px; height: 20px; }
	.lp-search__input { min-height: 48px; }
	.lp-search__btn { min-height: 48px; padding: 0 18px; font-size: 15px; }
	.lp-table--lic thead { display: none; }
	.lp-table--lic, .lp-table--lic tbody, .lp-table--lic tr, .lp-table--lic td { display: block; }
	.lp-table--lic tr { position: relative; padding: 16px 0 16px 80px; border-bottom: 1px solid var(--lp-line); min-height: 96px; }
	.lp-table--lic td { padding: 2px 0; border: 0; text-align: left; }
	.lp-table--lic td:first-child { position: absolute; left: 0; top: 16px; }
	.lp-table--lic .lp-num { display: inline-block; margin-right: 14px; font-size: 14px; color: var(--lp-muted); }
	.lp-table--lic .lp-num::after { content: ' téléch.'; }
	.lp-table--lic .lp-num + .lp-num::after { content: ' publi.'; }
	.lp-table--lic .lp-actions { margin-top: 10px; white-space: normal; }
	.lp-space .lp-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; width: auto; margin-inline: calc(-1 * var(--lm-gutter, 20px)); border-radius: 0; padding-inline: var(--lm-gutter, 20px); background: transparent; scrollbar-width: none; }
	.lp-space .lp-tabs a.lm-tab { flex: none; background: #F2EFEB; margin-right: 6px; }
	.lp-space .lp-tabs a.lm-tab[aria-current="page"] { background: var(--lp-ink); color: #fff; }
	.lp-space .lp-tabs a.lm-tab[aria-current="page"] .lp-badge { background: #fff; color: var(--lp-ink); }
}

@media (prefers-reduced-motion: reduce) {
	.lp-frame__img, .lp-mark path, .lp-story__media > .lm-img, .lp-vu__led, .lp-plan, .lp-usage__box { transition: none; }
	.lp-viewer[open], .lp-viewer__fig img { animation: none; }
}

@media print {
	.lp-lic__form, .lp-search, .lp-library__bar, .lp-viewer { display: none !important; }
}

/* L'en-tête d'un espace se resserre au-dessus des onglets */
.lp-hero:has(+ .lp-space), .lp-hero:has(+ .lp-library) { padding-bottom: clamp(40px, 4.5vw, 64px); }
