/*
 * Pages de séquence lemperiere.fr : « fiches colorées ».
 * Chaque séquence est un groupe pleine largeur avec la classe « lp-seq ».
 * Sa couleur dépend du style choisi dans l'éditeur (Poésie, Idées, Roman, Théâtre).
 * Les fonds alternent automatiquement d'une séquence à l'autre.
 */

.lp-seq {
	--oe: var(--wp--preset--color--ti-accent);
	--seq-fg: var(--wp--preset--color--ti-fg);
	--seq-bg: var(--wp--preset--color--ti-bg);
	--seq-muted: color-mix(in srgb, var(--seq-fg) 55%, var(--seq-bg));
	--seq-wide: var(--wp--style--global--wide-size, 1320px);
	background: var(--seq-bg);
	padding-top: 0 !important;
	padding-bottom: 56px !important;
	margin-block: 0 !important;
}
.lp-seq.is-style-oe-poesie { --oe: #9A4A1F; }
.lp-seq.is-style-oe-idees { --oe: #5E6B3A; }
.lp-seq.is-style-oe-roman { --oe: #1F5C63; }
.lp-seq.is-style-oe-theatre { --oe: #7A2632; }
.lp-seq:nth-child(even of .lp-seq) { background: var(--wp--preset--color--ti-bg-alt); }

/* Bandeau de couleur */
.lp-seq .lp-seq-band { position: relative; background: var(--oe); color: #fff; padding-top: 34px; padding-bottom: 34px; margin: 0 0 34px; overflow: hidden; }
.lp-seq .lp-seq-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); pointer-events: none; }
.lp-seq .lp-seq-band > .lp-seq-band-cols { position: relative; max-width: var(--seq-wide); margin: 0 auto; gap: 28px; align-items: center; }
.lp-seq-band-cols > .wp-block-column:first-child { flex: 0 0 120px !important; }
.lp-seq-face { width: 120px; height: 120px; margin: 0; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255,255,255,.85); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.lp-seq-face img { width: 100%; height: 100%; object-fit: cover; }
.lp-seq .lp-seq-oe { margin: 0; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .88; }
.lp-seq .lp-seq-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; margin: .25em 0 .35em; }
.lp-seq .lp-seq-quote { margin: 0; font-family: var(--wp--preset--font-family--playfair-display, Georgia, serif); font-style: italic; font-size: 1.15rem; line-height: 1.4; opacity: .95; }

/* Jauge (ajoutée par sequences.js) */
.lp-seq-progress { flex: 0 0 190px; text-align: right; }
.lp-seq-progress b { display: block; font-family: var(--wp--preset--font-family--playfair-display, Georgia, serif); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-seq-progress small { display: block; font-size: .8rem; opacity: .88; margin: 4px 0 8px; }
.lp-seq-meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.lp-seq-meter i { display: block; height: 100%; background: #fff; border-radius: 999px; }

/* Trois colonnes de ressources */
.lp-seq .lp-seq-cols { max-width: var(--seq-wide); margin: 0 auto; gap: 34px; }
.lp-seq .lp-seq-cols h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--oe); }
.lp-seq .lp-seq-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.lp-seq .lp-seq-cols li { position: relative; margin: 0; padding-left: 18px; }
.lp-seq .lp-seq-cols li::before { content: ""; position: absolute; left: 0; top: .58em; width: 8px; height: 8px; border-radius: 50%; background: var(--oe); }
.lp-seq .lp-seq-cols li.is-off { color: var(--seq-muted); }
.lp-seq .lp-seq-cols li.is-off::before { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--seq-fg) 30%, transparent); }
.lp-seq .lp-seq-cols a { color: var(--seq-fg); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--oe) 50%, transparent); }
.lp-seq .lp-seq-cols a:hover { color: var(--oe); border-color: var(--oe); }
.lp-seq .n { display: inline-block; margin-right: 6px; font-weight: 700; color: var(--oe); white-space: nowrap; }
.lp-seq .is-off .n { color: var(--seq-muted); }
.lp-soon { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: 2px; color: var(--seq-muted); background: color-mix(in srgb, var(--seq-fg) 8%, transparent); }

/* Cours de synthèse */
.lp-seq .lp-seq-syn { max-width: var(--seq-wide); margin: 26px auto 0; padding: 16px 20px; border-radius: 14px; background: color-mix(in srgb, var(--oe) 10%, transparent); border: 1px solid color-mix(in srgb, var(--oe) 30%, transparent); font-family: var(--wp--preset--font-family--playfair-display, Georgia, serif); font-weight: 700; font-size: 1.1rem; }
.lp-seq .lp-seq-syn a { display: inline-block; padding: 9px 22px; border-radius: 999px; background: linear-gradient(160deg, color-mix(in srgb, var(--oe) 80%, #fff) 0%, var(--oe) 48%, color-mix(in srgb, var(--oe) 82%, #000) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px color-mix(in srgb, var(--oe) 30%, transparent); color: #fff; text-decoration: none; font-family: var(--wp--preset--font-family--hanken-grotesk, system-ui, sans-serif); font-size: .95rem; font-weight: 600; }
.lp-seq .lp-seq-syn a:hover { filter: brightness(1.1); }
.lp-seq .lp-seq-syn.is-off { color: var(--seq-muted); }

@media (max-width: 781px) {
	.lp-seq { padding-bottom: 40px !important; }
	.lp-seq .lp-seq-band { padding-top: 24px; padding-bottom: 24px; margin-bottom: 26px; }
	.lp-seq .lp-seq-band > .lp-seq-band-cols { flex-wrap: wrap !important; gap: 16px; }
	.lp-seq-band-cols > .wp-block-column:first-child { flex: 0 0 72px !important; }
	.lp-seq-band-cols > .wp-block-column:nth-child(2) { flex: 1 1 calc(100% - 100px) !important; }
	.lp-seq-face { width: 72px; height: 72px; border-width: 3px; }
	.lp-seq-progress { flex: 1 1 100%; text-align: left; }
	.lp-seq .lp-seq-cols { gap: 24px; }
}
