/*
Theme Name: Covers Box
Description: Site Covers Box et ses quatre formules : Piano voix (duo de Carole Nogueira et Rémi Hennaut), Karaoké live, Piano solo et Chant solo. Témoignages, contact et mentions légales.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coversbox
*/

/* ---------- Couleurs et polices (bleu nuit & cuivre) ---------- */
:root {
	--bg: #0E1B2E;
	--surf: #16263F;
	--band: #122138;
	--line: #2B3D5C;
	--field: #5F7499;
	--text: #F1EDE4;
	--muted: #B4BED0;
	--acc: #E8935A;
	--acc-hover: #F5B98F;
	--on-acc: #0E1B2E;
	--acc2: #7CC4D8;
	--head-font: "Bricolage Grotesque", system-ui, sans-serif;
	--body-font: Inter, system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body-font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--acc); }
a:hover { color: var(--acc-hover); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--acc); color: var(--on-acc); padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 5%; padding-right: 5%; }
.section { padding-top: 80px; padding-bottom: 80px; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }

/* ---------- En-tête ---------- */
.site-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px 32px; padding: 18px 5%; border-bottom: 1px solid var(--line); background: var(--bg);
}
.site-title {
	font-family: var(--head-font); font-weight: 800; font-size: 24px;
	color: var(--text); text-decoration: none; padding: 8px 0;
}
.site-title:hover { color: var(--text); }
.site-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px;
}
.site-nav a {
	display: inline-block; padding: 12px 0;
	color: var(--text); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { color: var(--acc); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--acc); font-weight: 600; }
.site-nav .menu-cta > a {
	background: var(--acc); color: var(--on-acc); font-weight: 600;
	padding: 11px 22px; border-radius: 999px;
}
.site-nav .menu-cta > a:hover { background: var(--acc-hover); color: var(--on-acc); }

/* ---------- Typographie commune ---------- */
.eyebrow {
	margin: 0; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
	font-weight: 600; color: var(--acc);
}
.display {
	margin: 0; font-family: var(--head-font); font-weight: 800;
	font-size: clamp(44px, 7vw, 90px); line-height: 0.98; letter-spacing: -0.02em;
}
.lead { margin: 0; font-size: 20px; color: var(--muted); max-width: 540px; }
.h2 {
	margin: 0; font-family: var(--head-font); font-weight: 700;
	font-size: clamp(30px, 4vw, 46px); line-height: 1.05;
}
.muted { color: var(--muted); }

/* ---------- Boutons et liens ---------- */
.btn {
	display: inline-block; background: var(--acc); color: var(--on-acc);
	border: 1px solid var(--acc); border-radius: 999px; padding: 15px 28px;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--acc-hover); border-color: var(--acc-hover); color: var(--on-acc); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 600; padding: 10px 0; align-self: flex-start; }

/* ---------- Sections d'ouverture ---------- */
.hero {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px;
}
.hero--solo { grid-template-columns: minmax(0, 1fr); }
.hero--solo .lead { max-width: 640px; }
.hero-photo {
	display: block; width: 100%; height: 480px; object-fit: cover;
	object-position: 60% center; border-radius: 6px;
}

/* ---------- Cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card {
	background: var(--surf); border: 1px solid var(--line); border-radius: 6px;
	padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.card .eyebrow { font-size: 13px; letter-spacing: 0.14em; }
.card h3 {
	margin: 0; font-family: var(--head-font); font-weight: 800;
	font-size: clamp(30px, 3vw, 38px); line-height: 1;
}
.card p { margin: 0; color: var(--muted); }
.card .text-link { margin-top: auto; }
.card--alt .eyebrow, .card--alt .text-link { color: var(--acc2); }

/* ---------- Colonnes et listes ---------- */
.split {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
	gap: 56px; align-items: start;
}
.rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rows > li, .rows > div {
	display: flex; flex-direction: column; gap: 4px;
	padding: 22px 0; border-top: 1px solid var(--line);
}
.rows > :last-child { border-bottom: 1px solid var(--line); }
.rows h3 { margin: 0; font-family: var(--head-font); font-weight: 700; font-size: 24px; }
.rows p { margin: 0; color: var(--muted); }
.rows dt { font-size: 14px; color: var(--muted); }
.rows dd { margin: 0; font-size: 20px; font-weight: 600; }
.rows--inline > div { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.rows--inline dt { font-size: 17px; color: var(--text); font-weight: 600; }
.rows--inline dd { font-size: 17px; font-weight: 400; color: var(--muted); }
.steps > li { flex-direction: row; gap: 20px; align-items: baseline; }
.steps .num { font-family: var(--head-font); font-weight: 800; font-size: 26px; color: var(--acc); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; }
.feature { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--acc); padding-top: 20px; }
.feature h3 { margin: 0; font-family: var(--head-font); font-weight: 700; font-size: 24px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--acc); color: var(--on-acc); }
.cta-band .wrap {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 24px; padding-top: 64px; padding-bottom: 64px;
}
.cta-band h2 {
	margin: 0; max-width: 680px; font-family: var(--head-font); font-weight: 800;
	font-size: clamp(30px, 4vw, 46px); line-height: 1.05;
}
.cta-band .btn { background: var(--bg); border-color: var(--bg); color: var(--text); }
.cta-band .btn:hover { background: var(--surf); border-color: var(--surf); color: var(--text); }

/* ---------- Pied de page ---------- */
.site-footer {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding: 32px 5%; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.site-footer a { color: var(--text); padding: 12px 0; }

/* ---------- Karaoké : accent turquoise dans le contenu ---------- */
.is-karaoke .site-main { --acc: #7CC4D8; --acc-hover: #A9DCE9; }

/* ---------- Témoignages (contenu modifiable dans l'éditeur) ---------- */
.temoignages-list {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 24px; padding-bottom: 88px;
}
.temoignages-list > :not(.wp-block-quote) { grid-column: 1 / -1; margin: 0; }
.temoignages-list .wp-block-quote {
	margin: 0; background: var(--surf); border: 1px solid var(--line); border-radius: 6px;
	padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.temoignages-list .wp-block-quote p { margin: 0; font-size: 19px; line-height: 1.55; }
.temoignages-list .wp-block-quote cite { margin-top: auto; color: var(--muted); font-style: normal; font-size: 16px; }

/* ---------- Contenu libre (mentions légales, pages ajoutées) ---------- */
.prose { max-width: 820px; margin: 0 auto; padding: 72px 5% 88px; }
.prose h1 { margin: 0 0 32px; }
.prose h2 {
	margin: 40px 0 10px; padding-top: 28px; border-top: 1px solid var(--line);
	font-family: var(--head-font); font-weight: 700; font-size: 26px; line-height: 1.2;
}
.prose p, .prose li { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { padding-top: 72px; padding-bottom: 88px; gap: 64px; }
.form-card {
	background: var(--surf); border: 1px solid var(--line); border-radius: 6px;
	padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px;
}
.form-card h2 { margin: 0; font-family: var(--head-font); font-weight: 700; font-size: 30px; line-height: 1.1; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 13px 14px; border-radius: 6px;
	background: var(--bg); color: var(--text); border: 1px solid var(--field); font: inherit;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input[type="date"] { color-scheme: dark; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; padding: 14px 18px; border-radius: 6px; font-weight: 500; }
.notice--ok { background: #1F4A3A; color: #DDF5E8; border: 1px solid #3E8A6C; }
.notice--err { background: #4A1F24; color: #F8DCDF; border: 1px solid #A34852; }
.form-card .btn { align-self: flex-start; }

/* ---------- Ajouts v1.2 ---------- */
.stack > p { margin: 0; }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.cards--4 .card { padding: 28px; }
.cards--4 .card h3 { font-size: clamp(28px, 2.6vw, 34px); }
.bio-photo { display: block; width: 100%; height: 420px; object-fit: cover; object-position: 60% center; border-radius: 6px; }
.rows--infos dt { font-size: 15px; font-weight: 600; color: var(--text); }
.rows--infos dd { font-size: 17px; font-weight: 400; color: var(--muted); }
.gallery-section { padding-bottom: 80px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 6px; }
.notice--info { background: var(--surf); color: var(--text); border: 1px solid var(--line); max-width: 640px; }
.temoignages-list .temoignage-vedette { grid-column: 1 / -1; border-color: var(--acc); }
.temoignages-list .temoignage-vedette p { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.6; }


/* ---------- Marque Covers Box (v2) ---------- */
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding: 4px 0; }
.site-brand:hover { color: var(--text); }
.site-brand img { display: block; width: 64px; height: auto; border-radius: 6px; }
.site-brand span { font-family: Pacifico, cursive; font-size: 24px; line-height: 1.2; }
.brand-logo { display: block; width: 200px; max-width: 60%; height: auto; border-radius: 10px; }
.display--brand { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; }

.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.formule {
	background: var(--surf); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
	display: flex; flex-direction: column;
}
.formule > img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.formule-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.formule-brand { margin: 0; font-family: Pacifico, cursive; font-size: 18px; line-height: 1.2; color: var(--acc); }
.formule h3 { margin: 0; font-family: var(--head-font); font-weight: 800; font-size: clamp(26px, 2.4vw, 32px); line-height: 1; }
.formule-body p:not(.formule-brand) { margin: 0; color: var(--muted); font-size: 16px; }
.formule .text-link { margin-top: auto; }
.formule > img.pos-duo { object-position: 42% center; }
.hero-photo--wide { height: auto; aspect-ratio: 1600 / 735; object-position: center; }

.quote-feature { margin: 0 auto; max-width: 900px; display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; }
.quote-feature blockquote { margin: 0; }
.quote-feature blockquote p {
	margin: 0; font-family: var(--head-font); font-weight: 500;
	font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35;
}
.quote-feature figcaption { color: var(--muted); }
.quote-feature .text-link { align-self: center; }

/* =================================================================
   Page Covers Box Piano voix : univers Covers Box d'origine (kraft, orange, Pacifico, Montserrat)
   ================================================================= */
body.is-coversbox {
	--bg: #B29683;
	--text: #2B1D12;
	--muted: #4A3828;
	--acc: #F29200;
	--acc-hover: #FFB347;
	--on-acc: #2B1D12;
	--line: #D9CDB8;
	--head-font: Pacifico, cursive;
	--body-font: Montserrat, system-ui, sans-serif;
	background: #B29683 url("assets/img/kraft-stickers.jpg") center top / cover fixed;
	line-height: 1.65;
}
body.is-coversbox a { color: #8A4500; }
body.is-coversbox a:hover { color: #5C2E00; }

body.is-coversbox .site-header { background: #2B1D12; border-bottom: 0; --text: #FBF3E4; }
body.is-coversbox .site-brand,
body.is-coversbox .site-brand:hover { color: #FBF3E4; }
body.is-coversbox .site-nav a { color: #FBF3E4; }
body.is-coversbox .site-nav a:hover,
body.is-coversbox .site-nav .current-menu-item > a,
body.is-coversbox .site-nav .current_page_item > a { color: #F29200; }
body.is-coversbox .site-nav .menu-cta > a { background: #F29200; color: #2B1D12; }
body.is-coversbox .site-nav .menu-cta > a:hover { background: #FFB347; color: #2B1D12; }

body.is-coversbox .site-footer { background: #2B1D12; color: #E6D9C3; border-top: 0; }
body.is-coversbox .site-footer a { color: #FBF3E4; }

.cb-main { max-width: 1200px; margin: 0 auto; background: #FFFFFF; box-shadow: 0 0 40px rgba(43, 29, 18, 0.35); }
.cb-hero-img { display: block; width: 100%; height: auto; }
.cb-pad { padding: 64px 5%; }

.cb-intro {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
	gap: 48px; align-items: start;
}
.cb-logo { display: block; width: 260px; max-width: 100%; height: auto; border-radius: 10px; }
.cb-eyebrow {
	margin: 0; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
	font-weight: 600; color: #8A4500;
}
.cb-title {
	margin: 0; font-family: Pacifico, cursive; font-weight: 400;
	font-size: clamp(34px, 4.6vw, 54px); line-height: 1.3;
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid #2B1D12; border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 500; }
.cb-text p { margin: 0; font-size: 18px; }
body.is-coversbox .cb-btn {
	display: inline-block; align-self: flex-start; background: #C8A96A; color: #2B1D12;
	text-decoration: none; font-weight: 600; padding: 14px 28px; border-radius: 999px;
	box-shadow: 0 6px 14px rgba(43, 29, 18, 0.25);
}
body.is-coversbox .cb-btn:hover { background: #D6BC85; color: #2B1D12; }
body.is-coversbox .cb-btn--orange { background: #F29200; }
body.is-coversbox .cb-btn--orange:hover { background: #FFB347; }

/* Vidéo : bouton de lecture avec la baseline */
.cb-video { background: #C8A96A; padding: 56px 5%; display: flex; justify-content: center; }
.cb-video-frame {
	position: relative; width: 100%; max-width: 960px; border-radius: 8px; overflow: hidden;
	aspect-ratio: 873 / 551; background: #000;
}
.cb-video-frame.is-playing { aspect-ratio: 16 / 9; }
.cb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cb-video-trigger {
	display: block; position: absolute; inset: 0; width: 100%; height: 100%;
	padding: 0; margin: 0; border: 0; background: none; cursor: pointer; text-decoration: none; font: inherit;
}
.cb-video-trigger img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cb-play {
	position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
	display: flex; align-items: center; gap: 14px; width: max-content; max-width: 90%;
	background: #2B1D12; color: #FBF3E4; padding: 10px 26px 10px 10px; border-radius: 999px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); transition: transform 0.2s ease;
}
.cb-video-trigger:hover .cb-play, .cb-video-trigger:focus-visible .cb-play { transform: translateX(-50%) scale(1.04); }
.cb-play-icon {
	flex: none; width: 54px; height: 54px; border-radius: 50%; background: #F29200;
	display: flex; align-items: center; justify-content: center;
}
.cb-play-text {
	font-family: Pacifico, cursive; font-weight: 400; font-size: clamp(15px, 2.2vw, 24px);
	line-height: 1.3; text-align: left;
}

.cb-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.cb-trio h2 {
	margin: 0; font-family: Montserrat, system-ui, sans-serif; font-size: 14px; letter-spacing: 0.14em;
	text-transform: uppercase; font-weight: 600; color: #8A4500;
}
.cb-trio p { margin: 0; font-size: 17px; }

/* Carole et Rémi, sur le fond aux stickers */
.cb-duo {
	background: #B29683 url("assets/img/kraft-stickers.jpg") center / cover;
	padding: 64px 5%; display: flex; flex-direction: column; gap: 56px;
}
.cb-person {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
	gap: 32px 48px; align-items: start;
}
.cb-name {
	align-self: flex-start; margin: 0; background: #FBF3E4; padding: 8px 18px; border-radius: 8px;
	box-shadow: 0 6px 14px rgba(43, 29, 18, 0.25);
	font-family: Pacifico, cursive; font-weight: 400; font-size: 30px; line-height: 1.3;
}
.cb-person img { display: block; width: 100%; height: auto; border-radius: 6px; }
.cb-bio {
	background: #F7F3E8; border-radius: 18px; padding: 28px;
	box-shadow: 0 8px 20px rgba(43, 29, 18, 0.25); display: flex; flex-direction: column; gap: 14px;
}
.cb-bio p { margin: 0; font-style: italic; font-weight: 500; }

/* Nos Prestations */
.cb-presta-title {
	margin: 0; text-align: center; font-family: Pacifico, cursive; font-weight: 400;
	font-size: clamp(40px, 6vw, 68px); line-height: 1.25; color: #D67800;
}
.cb-presta {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 40px; align-items: start;
}
.cb-presta h3 { margin: 0; font-family: Pacifico, cursive; font-weight: 400; font-size: 36px; line-height: 1.3; }
.cb-presta ul {
	margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px;
	text-transform: uppercase; letter-spacing: 0.04em;
}
.cb-box { border: 1px solid #D9CDB8; border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.cb-box p { margin: 0; }

/* Appel final */
.cb-cta {
	background: #FBF3E4; display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center;
}
.cb-cta img { display: block; width: 100%; max-width: 520px; height: auto; justify-self: center; border-radius: 8px; }
.cb-cta h2 { margin: 0; font-family: Pacifico, cursive; font-weight: 400; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.35; }
.cb-cta p { margin: 0; }
.cb-cta .btn-row { align-items: center; gap: 12px 24px; }
.cb-cta .text-link { padding: 12px 0; }


@media (max-width: 700px) {
	.hero-photo { height: 360px; }
	.bio-photo { height: 300px; }
	.site-brand img { width: 52px; }
	body.is-coversbox { background-attachment: scroll; }
	.cb-play { gap: 10px; padding: 8px 18px 8px 8px; }
	.cb-play-icon { width: 42px; height: 42px; }
}
