/*
Theme Name: BFL Événementiel
Theme URI: https://www.bfl-evenementiel.com
Author: BFL Événementiel
Description: Thème WordPress + WooCommerce sobre pour BFL Événementiel : catalogue de prestations d'animation (fiches produits avec vignette, prix « à partir de », durée), menu « Nos prestations » illustré, formulaire de contact et installateur de contenu.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
WC requires at least: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bfl
*/

:root {
	--ink: #16213a;
	--ink-2: #3d4659;
	--muted: #6b7280;
	--line: #e6e4df;
	--stone: #f5f4f1;
	--brass: #a8834a;
	--brass-dark: #7f6233;
	--white: #fff;
	--font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
	--wrap: 1200px;
	--text: 720px;
	--r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--brass); }
a:hover { color: var(--brass-dark); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--ink); color: #fff; padding: .6rem 1rem; width: auto; height: auto; clip: auto; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-text { width: min(100% - 2.5rem, var(--text)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--stone { background: var(--stone); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .5rem 0 0; max-width: 56ch; color: var(--muted); }
.rule { width: 48px; height: 2px; background: var(--brass); border: 0; margin: 0 0 1.4rem; }

/* Buttons */
.btn, .button, button.button, input[type=submit],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font: 700 .98rem/1.2 var(--font); letter-spacing: .01em;
	padding: .95rem 1.6rem; border-radius: var(--r);
	background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
	text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover, .button:hover, input[type=submit]:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--brass-dark); border-color: var(--brass-dark); color: #fff; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--ink); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--brass-dark); }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--brass); padding-bottom: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.logo { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; color: var(--ink); }
.logo__mark { font-weight: 800; font-size: 1.75rem; letter-spacing: -.03em; line-height: 1; }
.logo__mark span { color: var(--brass); }
.logo__word { font-weight: 600; font-size: .78rem; letter-spacing: .28em; color: var(--ink-2); }
.custom-logo-link img { max-height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .9rem; font: 600 1rem var(--font); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: var(--r); }
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link.is-current { color: var(--brass-dark); }
.nav__link svg { width: 20px; height: 20px; flex: none; }
.nav__link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--brass); color: #fff; font: 700 .72rem/20px var(--font); text-align: center; padding: 0 6px; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(22,33,58,.25); padding: 2rem 0 2.2rem; }
.mega[hidden] { display: none; }
.mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.mega__item { display: flex; align-items: center; gap: .9rem; padding: .5rem; border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.3; }
.mega__item:hover { background: var(--stone); color: var(--ink); }
.mega__item img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; }
.mega__foot { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; }
.mega__foot span { color: var(--muted); font-size: .95rem; }

.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.burger svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
	.burger { display: inline-flex; }
	.nav { position: fixed; inset: 84px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 2rem; overflow-y: auto; display: none; }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; }
	.nav__link { width: 100%; justify-content: space-between; font-size: 1.15rem; padding: 1rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.mega { position: static; box-shadow: none; border: 0; padding: .5rem 0 1rem; }
	.mega .wrap { width: 100%; }
	.mega__grid { grid-template-columns: 1fr; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Page header ---------- */
.page-head { background: var(--stone); padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.page-head p { margin: .9rem 0 0; max-width: 62ch; font-size: 1.1rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { margin: 0 .45rem; }

.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brass); }
.prose strong { color: var(--ink); }
.prose > :first-child { margin-top: 0; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(80vh, 680px); border-bottom: 1px solid var(--line); }
.hero__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem) clamp(3rem, 7vw, 6rem) max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.hero__text h1 { max-width: 14ch; }
.hero__text p { font-size: 1.18rem; max-width: 44ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__media { position: relative; overflow: hidden; background: var(--ink); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.occasions img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); margin-bottom: 1.1rem; }
.occasions h3 { margin-bottom: .4rem; }
.occasions p { margin: 0; font-size: 1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.3rem; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 2.4rem; color: var(--brass); line-height: 1; margin-bottom: .8rem; }
.steps p { margin: 0; }

.cta { background: var(--ink); color: #d6d9e2; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { color: #fff; margin: 0 0 .4rem; }
.cta p { margin: 0; max-width: 52ch; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.2rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.card { position: relative; display: flex; flex-direction: column; }
.card__img { overflow: hidden; border-radius: var(--r); background: var(--stone); margin-bottom: 1rem; }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.card__cat { font-size: .85rem; font-weight: 600; color: var(--brass-dark); margin-bottom: .3rem; }
.card__title { font-size: 1.2rem; margin: 0 0 .45rem; }
.card__title a { text-decoration: none; color: var(--ink); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { font-size: .98rem; margin: 0 0 .9rem; color: var(--muted); }
.card__price { margin-top: auto; font-size: .98rem; color: var(--ink); }
.card__price strong { font-weight: 800; }
.card:focus-within { outline: 2px solid var(--brass); outline-offset: 6px; border-radius: var(--r); }
.card a:focus-visible { outline: none; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2.5rem; }
.chips a { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); background: #fff; }
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Single product ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.product__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.product__cat { font-weight: 600; color: var(--brass-dark); margin-bottom: .5rem; font-size: .95rem; }
.product__cat a { color: inherit; text-decoration: none; }
.product__lead { font-size: 1.12rem; }
.product__facts { list-style: none; padding: 1.2rem 0; margin: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: .7rem; }
.product__facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.product__facts span:first-child { color: var(--muted); }
.product__facts strong { color: var(--ink); }
.product__price { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.product__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.product__actions form.cart { margin: 0; display: flex; }
.product__actions .quantity { display: none; }
.product__note { font-size: .92rem; color: var(--muted); margin-top: 1rem; }
.product-detail { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: clamp(2rem, 5vw, 5rem); }
.aside-box { background: var(--stone); border-radius: var(--r); padding: 1.6rem; position: sticky; top: 110px; }
.aside-box h2 { font-size: 1.2rem; }
.aside-box p { font-size: .98rem; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--brass); flex: none; }
.contact-list a { font-weight: 600; text-decoration: none; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; font-size: .98rem; }
.field input, .field select, .field textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	width: 100%; padding: .8rem .95rem; font: inherit; font-size: 1rem; color: var(--ink);
	background: #fff; border: 1px solid #cfd2d9; border-radius: var(--r);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--brass); outline-offset: 1px; }
.field textarea { min-height: 160px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.field--check label { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; }
.field--check input { width: auto; margin-top: .35rem; }
.field--hp { position: absolute; left: -9999px; }
.form-note { font-size: .92rem; color: var(--muted); margin-top: 1rem; }
.notice { padding: 1rem 1.2rem; border-radius: var(--r); margin-bottom: 1.5rem; font-weight: 600; }
.notice--ok { background: #e8f3ec; color: #1d5a35; }
.notice--err { background: #fbe9e9; color: #8a1f1f; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .8rem 0 0; }

/* WooCommerce misc */
.woo-page { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--brass) !important; background: var(--stone) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--brass) !important; }
.woocommerce table.shop_table { border-radius: var(--r); }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: .5rem 0; text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9bfcc; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 2.8rem 0 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .logo { color: #fff; }
.site-footer .logo__word { color: #b9bfcc; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.site-footer__legal { padding: 1.5rem 0 2.2rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.hero { grid-template-columns: 1fr; }
	.hero__text { padding: 3rem 1.25rem; }
	.hero__media { aspect-ratio: 16 / 10; order: -1; }
	.occasions { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr; }
	.product, .product-detail, .contact-grid { grid-template-columns: 1fr; }
	.aside-box { position: static; }
}
@media (max-width: 560px) {
	body { font-size: 1rem; }
	.occasions { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.product__facts li { grid-template-columns: 1fr; gap: .1rem; }
	.logo__word { display: none; }
}
