/*
Theme Name:   La Bonne Playlist
Description:  Thème enfant de Hello Elementor pour La Bonne Playlist : en-tête, pied de page, pages playlist et listes. Fonctionne avec l'extension « La Bonne Playlist - Playlists ».
Template:     hello-elementor
Version:      1.1.0
Requires PHP: 7.4
Text Domain:  labonneplaylist
License:      GPL-2.0-or-later
*/

/* ---------- Polices hébergées sur le site (pas d'appel à Google) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

/* ---------- Couleurs et polices (modifiables ici en un seul endroit) ---------- */
:root {
	--lbp-bg: #0D111B;
	--lbp-bg-deep: #080B12;
	--lbp-surface: #151B28;
	--lbp-surface-2: #1A2130;
	--lbp-line: #2A3345;
	--lbp-line-soft: #222A3A;
	--lbp-text: #FFFFFF;
	--lbp-text-2: #D5DAE4;
	--lbp-muted: #AEB6C6;
	--lbp-accent: #36B4E5;
	--lbp-accent-ink: #0D111B;
	--lbp-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--lbp-font-body: "Barlow", system-ui, sans-serif;
	--lbp-container: 1240px;
}

/* ---------- Base ---------- */
html { background: var(--lbp-bg); }
body { margin: 0; background: var(--lbp-bg); color: var(--lbp-text); font-family: var(--lbp-font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--lbp-accent); }
a:hover, a:focus { color: var(--lbp-text); }
h1, h2, h3, h4, h5, h6 { color: var(--lbp-text); font-family: var(--lbp-font-display); font-weight: 800; line-height: 1.05; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--lbp-accent); outline-offset: 2px; }
::selection { background: var(--lbp-accent); color: var(--lbp-accent-ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--lbp-accent); color: var(--lbp-accent-ink); font-weight: 700; }

.lbp-container { width: 100%; max-width: var(--lbp-container); margin-inline: auto; padding-inline: 32px; box-sizing: border-box; }
.lbp-section { padding-top: 80px; }
.lbp-main { display: block; padding-bottom: 96px; }
.lbp-main--elementor { padding-bottom: 0; }
.lbp-section-intro { margin: 8px 0 32px; max-width: 640px; color: var(--lbp-muted); }
.lbp-section .lbp-section-title { margin-bottom: 20px; }
.lbp-section-intro + * { margin-top: 0; }
.lbp-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }

/* ---------- En-tête ---------- */
.lbp-header { position: sticky; top: 0; z-index: 50; background: var(--lbp-bg); border-bottom: 1px solid var(--lbp-line-soft); }
.admin-bar .lbp-header { top: 32px; }
.lbp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.lbp-brand { font-family: var(--lbp-font-display); font-weight: 800; font-size: 30px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--lbp-text); text-decoration: none; white-space: nowrap; }
.lbp-brand:hover { color: var(--lbp-text); }
.lbp-brand__accent { color: var(--lbp-accent); }
.custom-logo-link img { display: block; max-height: 48px; width: auto; }
.lbp-nav__list { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; padding: 0; list-style: none; }
.lbp-nav__list a { color: var(--lbp-text); text-decoration: none; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.6px; }
.lbp-nav__list a:hover, .lbp-nav__list .current-menu-item > a, .lbp-nav__list .current-menu-ancestor > a { color: var(--lbp-accent); }
.lbp-header__tools { display: flex; gap: 8px; }
.lbp-drop { position: relative; }
.lbp-drop > summary { list-style: none; }
.lbp-drop > summary::-webkit-details-marker { display: none; }
.lbp-icon-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #39435A; border-radius: 6px; color: var(--lbp-text); cursor: pointer; box-sizing: border-box; }
.lbp-icon-button:hover, .lbp-drop[open] > .lbp-icon-button { border-color: var(--lbp-accent); color: var(--lbp-accent); }
.lbp-drop__panel { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: min(520px, calc(100vw - 32px)); padding: 16px; background: var(--lbp-surface); border: 1px solid var(--lbp-line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); box-sizing: border-box; }
.lbp-drop--menu { display: none; }
.lbp-mobile-nav { margin: 0; padding: 0; list-style: none; }
.lbp-mobile-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--lbp-line-soft); color: var(--lbp-text); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.lbp-mobile-nav li:last-child a { border-bottom: 0; }
.lbp-search--compact { margin-top: 0; max-width: none; }
.lbp-search--compact .lbp-search__input, .lbp-search--compact .lbp-search__button { min-height: 52px; }

/* ---------- Bandeau des pages playlist ---------- */
.lbp-page-hero { position: relative; overflow: hidden; background: var(--lbp-surface-2); }
.lbp-page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lbp-page-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 17, 27, 0.94) 0%, rgba(13, 17, 27, 0.7) 60%, rgba(13, 17, 27, 0.3) 100%); }
.lbp-page-hero__inner { position: relative; padding-top: 28px; padding-bottom: 64px; }
.lbp-page-hero__title { margin: 48px 0 0; max-width: 900px; font-size: clamp(44px, 6vw, 76px); line-height: 0.95; text-transform: uppercase; }
.lbp-page-hero__lead { margin: 22px 0 0; max-width: 680px; font-size: 19px; color: var(--lbp-text-2); }
.lbp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--lbp-muted); }
.lbp-breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.lbp-breadcrumb a { color: var(--lbp-muted); text-decoration: none; }
.lbp-breadcrumb a:hover { color: var(--lbp-text); }
.lbp-breadcrumb [aria-current] { color: var(--lbp-text); }
.lbp-figures { display: flex; flex-wrap: wrap; gap: 20px 32px; margin: 28px 0 0; }
.lbp-figure { display: flex; flex-direction: column-reverse; }
.lbp-figure__value { margin: 0; font-family: var(--lbp-font-display); font-weight: 800; font-size: 36px; line-height: 1; }
.lbp-figure__label { font-size: 14px; color: var(--lbp-muted); }
.lbp-listen { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.lbp-updated { margin: 24px 0 0; font-size: 14px; color: var(--lbp-muted); }

/* ---------- Texte libre ---------- */
.lbp-prose { max-width: 820px; margin-inline: 0; color: var(--lbp-text-2); }
.lbp-prose h2, .lbp-prose h3 { text-transform: uppercase; }
.lbp-prose.lbp-container { margin-inline: auto; max-width: var(--lbp-container); }
.lbp-prose > * { max-width: 820px; }

/* ---------- Conseils d'enchaînement ---------- */
.lbp-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: phase; }
.lbp-phase { counter-increment: phase; padding: 24px; background: var(--lbp-surface); border: 1px solid var(--lbp-line); border-radius: 10px; }
.lbp-phase::before { content: counter(phase); display: block; font-family: var(--lbp-font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--lbp-accent); }
.lbp-phase--peak { border-color: var(--lbp-accent); }
.lbp-phase__title { margin: 10px 0 4px; font-family: var(--lbp-font-body); font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.lbp-phase__bpm { margin: 0 0 10px; font-size: 14px; color: var(--lbp-muted); }
.lbp-phase__text { margin: 0; font-size: 16px; color: var(--lbp-text-2); }

/* ---------- FAQ ---------- */
.lbp-faq__item { padding: 18px 0; border-top: 1px solid var(--lbp-line); }
.lbp-faq__item:last-child { border-bottom: 1px solid var(--lbp-line); }
.lbp-faq__q { cursor: pointer; font-weight: 600; font-size: 18px; list-style-position: outside; }
.lbp-faq__a { margin-top: 12px; color: var(--lbp-text-2); }
.lbp-faq__a p { margin: 0 0 10px; }

/* ---------- Listes de playlists ---------- */
.lbp-archive__head { padding-top: 64px; }
.lbp-page-title { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: 0.95; text-transform: uppercase; }
.lbp-archive__intro { margin-top: 16px; max-width: 720px; color: var(--lbp-text-2); }
.lbp-archive__search { max-width: 620px; margin-top: 24px; }
.lbp-results { margin: 40px 0 0; padding: 0; list-style: none; }
.lbp-results li { padding: 12px 0; border-bottom: 1px solid var(--lbp-line-soft); }
.lbp-results a { color: var(--lbp-text); font-weight: 600; }
.lbp-pagination { margin-top: 40px; }
.lbp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lbp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid #39435A; border-radius: 6px; color: var(--lbp-text); text-decoration: none; box-sizing: border-box; }
.lbp-pagination .page-numbers.current { background: var(--lbp-text); color: var(--lbp-bg); border-color: var(--lbp-text); }
.lbp-notfound .lbp-button { margin-top: 24px; }

/* ---------- Commentaires ---------- */
.lbp-form { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--lbp-surface); border: 1px solid var(--lbp-line); border-radius: 10px; }
.lbp-form p { margin: 0; }
.lbp-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.lbp-form input[type="text"], .lbp-form input[type="email"], .lbp-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #39435A; border-radius: 6px; background: var(--lbp-bg); color: var(--lbp-text); font: inherit; box-sizing: border-box; }
.lbp-form textarea { resize: vertical; }
.lbp-form input:focus, .lbp-form textarea:focus { border-color: var(--lbp-accent); outline: none; }
.comment-form-lbp-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-lbp-consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lbp-accent); }
.comment-form-lbp-consent label { margin: 0; font-size: 13px; font-weight: 400; color: var(--lbp-text-2); }
.lbp-form .form-submit .lbp-button { border: 0; cursor: pointer; font-family: inherit; }
.lbp-comment-list, .lbp-comment-list .children { margin: 0; padding: 0; list-style: none; }
.lbp-comment > article { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--lbp-line); }
.lbp-comment .children { padding-left: 20px; border-left: 3px solid var(--lbp-accent); }
.lbp-comment__meta { margin: 0; }
.lbp-comment__author { font-weight: 700; }
.lbp-comment__meta time { margin-left: 8px; font-size: 13px; color: var(--lbp-muted); }
.lbp-comment__meta time::before { content: "· "; }
.lbp-comment__text { margin-top: 6px; color: var(--lbp-text-2); }
.lbp-comment__text p { margin: 0 0 8px; }
.lbp-comment__pending { margin: 6px 0 0; font-size: 14px; color: var(--lbp-accent); }
.lbp-comment__reply { margin: 8px 0 0; font-size: 14px; }

/* ---------- Pied de page ---------- */
.lbp-footer { background: var(--lbp-bg-deep); border-top: 1px solid var(--lbp-line-soft); }
.lbp-footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 32px; }
.lbp-footer__about { max-width: 380px; }
.lbp-footer .lbp-brand { font-size: 28px; }
.lbp-footer__text { margin: 10px 0 0; font-size: 15px; color: var(--lbp-muted); }
.lbp-footer__list { display: flex; flex-wrap: wrap; gap: 48px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.lbp-footer__list > li > a { color: var(--lbp-muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; text-decoration: none; }
.lbp-footer__list .sub-menu { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lbp-footer__list .sub-menu a { color: var(--lbp-text); text-decoration: none; text-transform: none; font-weight: 400; font-size: 15px; letter-spacing: 0; }
.lbp-footer__list a:hover { color: var(--lbp-accent); }
.lbp-footer__legal { padding-bottom: 32px; font-size: 13px; color: var(--lbp-muted); }
.lbp-footer__legal p { margin: 0; }

/* ---------- Pages classiques de Hello (mentions légales, etc.) ---------- */
.site-main { color: var(--lbp-text-2); }
.site-main .entry-title { color: var(--lbp-text); text-transform: uppercase; }
.site-main a { color: var(--lbp-accent); }

/* ---------- Écrans moyens et mobiles ---------- */
@media (max-width: 1080px) {
	.lbp-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.lbp-nav { display: none; }
	.lbp-drop--menu { display: block; }
	.lbp-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.admin-bar .lbp-header { top: 0; position: relative; }
}
@media (max-width: 640px) {
	.lbp-container { padding-inline: 16px; }
	.lbp-section { padding-top: 56px; }
	.lbp-phases { grid-template-columns: minmax(0, 1fr); }
	.lbp-brand { font-size: 24px; }
	.lbp-form { padding: 20px; }
}
.lbp-page-hero + .lbp-prose { padding-top: 56px; }
.lbp-form .form-submit .lbp-button:hover, .lbp-form .form-submit .lbp-button:focus { background: var(--lbp-accent); color: var(--lbp-accent-ink); border: 0; filter: brightness(1.08); }
.lbp-form .form-submit .lbp-button { border: 0; border-radius: 6px; padding: 0 26px; min-height: 52px; color: var(--lbp-accent-ink); background: var(--lbp-accent); font-weight: 700; }
