/* QR Menu Gratuit — thème « bistrot » : habillage des vues héritées (tableau de bord, formulaires,
   blog, pages, paiement). Surcharge style.css sans toucher au balisage ni aux scripts. */

body.bq { font-family: var(--font-text); background: var(--color-bg); color: var(--color-text); }
[dir="rtl"] body.bq, body.bq.rtl { font-family: var(--font-arabic); }
.bq h1, .bq h2, .bq h3, .bq h4, .bq h5, .bq h6 { color: var(--color-text); }
.bq .dashboard-headline h3, .bq .section-headline h3, .bq #titlebar h2, .bq .welcome-text h3,
.bq .single-page-header h2, .bq .blog-post h3.entry-title { font-family: var(--font-display); font-weight: 400; }
.bq p, .bq li, .bq td, .bq label { color: inherit; }
.bq a { color: var(--color-accent); }
.bq a:hover { color: var(--color-accent-hover); }
.bq .section.gray, .bq .gray { background: var(--color-surface-2); }
.bq .section { background: transparent; }

/* Boutons hérités */
.bq .button, .bq a.button, .bq button.button, .bq input[type=submit].button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap);
    padding: 0 22px; border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: #fff;
    font: 700 15px/1.2 var(--font-text); box-shadow: none; text-decoration: none; transition: background .2s;
}
.bq .button:hover, .bq a.button:hover, .bq button.button:hover { background: var(--color-accent-hover); color: #fff; box-shadow: none; }
.bq .button.full-width { display: flex; width: 100%; }
.bq .button.gray, .bq .button.dark { background: var(--color-surface-2); color: var(--color-text); }
.bq .button.gray:hover { background: var(--color-line); color: var(--color-text); }
.bq .button.big { min-height: 52px; font-size: 17px; }
.bq .button.ripple-effect:before, .bq .ripple-effect-dark:before { display: none; }
.bq .button-sliding-icon i { position: static; opacity: 1; transform: none; margin: 0; }

/* Champs */
.bq input.with-border, .bq input[type=text], .bq input[type=password], .bq input[type=email], .bq input[type=number],
.bq input[type=tel], .bq input[type=url], .bq input[type=search], .bq textarea, .bq select, .bq .form-control {
    min-height: 44px; padding: 10px 14px; background: var(--color-surface); color: var(--color-text);
    border: 1.5px solid var(--color-line); border-radius: 10px; box-shadow: none; font: 400 16px var(--font-text);
}
.bq textarea { min-height: 96px; }
.bq .input-text:focus, .bq input:focus, .bq textarea:focus, .bq select:focus, .bq .form-control:focus { border-color: var(--color-text); box-shadow: var(--focus); outline: 0; }
.bq .input-with-icon-left > i { color: var(--color-muted); }
.bq .input-with-icon-left input { padding-inline-start: 44px; }
.bq label, .bq .submit-field h5, .bq .form-group > label { font-weight: 600; font-size: 14px; }
.bq .checkbox input:checked + label span.checkbox-icon { background-color: var(--color-accent); border-color: var(--color-accent); }
.bq .welcome-text { text-align: start; margin-block-end: 20px; }
.bq .welcome-text h3 { font-size: 26px; color: var(--color-text); }
.bq .welcome-text span { color: var(--color-muted); }
.bq .social-login-buttons button { min-height: var(--tap); border-radius: var(--radius-pill); }
.bq .social-login-separator { color: var(--color-muted); }
.bq .notification { border-radius: var(--radius); }

/* Barre de titre héritée (blog, contact, pages) */
.bq #titlebar { padding: 40px 0 28px; background: var(--color-surface-2); border-bottom: 1px solid var(--color-line); }
.bq #titlebar.gradient, .bq #titlebar.white { background: var(--color-surface-2); }
.bq #titlebar h2 { color: var(--color-text); font-size: clamp(28px, 4vw, 40px); }
.bq #breadcrumbs, .bq #breadcrumbs.dark { position: static; transform: none; display: inline-block; margin-block-start: 8px; background: transparent; box-shadow: none; color: var(--color-muted); font-weight: 500; }
.bq #breadcrumbs ul { padding: 0; }
.bq #breadcrumbs.dark ul li a, .bq #breadcrumbs.dark ul li a:hover { color: var(--color-accent); }
.bq #breadcrumbs.dark ul li:before { border-left-color: var(--color-muted); }

/* Tableau de bord */
.bq .dashboard-container { align-items: stretch; background: var(--color-bg); }
.bq .dashboard-sidebar { flex: 0 0 264px; background: #221C17; color: #CFC4B5; box-shadow: none; }
.bq .dashboard-sidebar .dashboard-sidebar-inner { min-height: calc(100vh - 69px); }
.bq .dashboard-nav ul { margin: 18px 0 0; }
.bq .dashboard-nav ul:before { padding: 0 24px; margin-bottom: 6px; color: #8F8478; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.bq .dashboard-nav ul li { margin: 0 12px; border: 0; border-radius: 10px; }
.bq .dashboard-nav ul li a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; color: #CFC4B5; font-weight: 500; }
.bq .dashboard-nav ul li a i { top: 0; padding: 0; font-size: 18px; color: #8F8478; }
.bq .dashboard-nav ul li:hover, .bq .dashboard-nav ul li.active { background: #2E2823; border: 0; }
.bq .dashboard-nav ul li:hover a, .bq .dashboard-nav ul li.active a { color: #F7F2E8; }
.bq .dashboard-nav ul li.active a i, .bq .dashboard-nav ul li:hover a i { color: #E2735A; }
.bq .dashboard-nav ul li a:after { display: none; }
.bq .dashboard-content-container { background: var(--color-bg); }
.bq .dashboard-content-inner { padding: 28px clamp(16px, 3vw, 40px) 0; }
.bq .dashboard-headline { margin-block-end: 24px; }
.bq .dashboard-headline h3 { font-size: clamp(26px, 3vw, 34px); color: var(--color-text); }
.bq .dashboard-box, .bq .fun-fact { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 18px; box-shadow: none; }
.bq .dashboard-box .headline { background: transparent; border-bottom: 1px solid var(--color-line); border-radius: 18px 18px 0 0; }
.bq .dashboard-box .headline h3 { font: 700 18px var(--font-text); color: var(--color-text); }
.bq .dashboard-box .headline h3 i { color: var(--color-accent); }
.bq .fun-fact { padding: 20px; }
.bq .fun-fact .fun-fact-text span { color: var(--color-muted); font-size: 14px; }
.bq .fun-fact .fun-fact-text h4 { font: 400 34px var(--font-display); color: var(--color-text); }
.bq .fun-fact .fun-fact-icon { background: var(--color-accent-soft) !important; color: var(--color-accent-hover); }
.bq .small-footer { color: var(--color-muted); }
.bq .dashboard-responsive-nav-trigger { background: #221C17; color: #F7F2E8; }
.bq .dashboard-responsive-nav-trigger .hamburger-inner, .bq .dashboard-responsive-nav-trigger .hamburger-inner:before, .bq .dashboard-responsive-nav-trigger .hamburger-inner:after { background-color: #F7F2E8; }

/* Tableaux, pagination, onglets */
.bq table { border-color: var(--color-line); }
.bq .table thead th, .bq table.dataTable thead th { background: var(--color-surface-2); color: var(--color-text); border-color: var(--color-line); }
.bq .pagination li a, .bq .pagination-container .pagination li a { border-radius: 10px; color: var(--color-text); }
.bq .pagination li a.current-page, .bq .pagination li.active a, .bq .pagination .current-page { background: var(--color-accent); color: #fff; }

/* Blog & pages héritées */
.bq .blog-post, .bq .blog-compact-item, .bq .sidebar .widget, .bq .boxed-widget, .bq .contact-box, .bq .accordion .accordion-header { border-radius: var(--radius); }
.bq .blog-compact-item-content { border-radius: 0 0 var(--radius) var(--radius); }
.bq .blog-post-tags li, .bq .keyword { color: var(--color-muted); }
.bq .section-headline h3 { font-size: clamp(28px, 3.4vw, 40px); }
.bq .accordion-header { background: var(--color-surface); border: 1px solid var(--color-line); }
.bq .accordion-header:hover { color: var(--color-accent); }

/* Paiement */
.bq .payment-tab-active .payment-tab-trigger > label:before { background: var(--color-accent); border-color: var(--color-accent); }
.bq .payment-tab .payment-tab-content { background: var(--color-surface); border-color: var(--color-line); }

/* Fenêtres modales (magnific-popup), cookies, notifications */
.bq .zoom-anim-dialog, .bq .popup-dialog { background: var(--color-surface); border-radius: var(--radius-lg); }
.bq .cookieConsentContainer { background: var(--color-text); color: #F7F2E8; border-radius: var(--radius-lg); }
.bq .cookieConsentContainer h3, .bq .cookieConsentContainer p { color: #F7F2E8; }
.bq .cookieConsentContainer .button { background: var(--color-accent); }
.bq .snackbar-container { border-radius: 12px; font-family: var(--font-text); }

/* Barre d'en-tête en mode tableau de bord */
.bq-app .bq-header { position: sticky; }
@media (max-width: 1099px) {
    .bq .dashboard-sidebar { flex-basis: 100%; }
    .bq .dashboard-sidebar .dashboard-sidebar-inner { min-height: 0; }
}

/* L'ancien thème impose Nunito sur body/titres/champs/boutons : on reprend la main. */
.bq h1, .bq h2, .bq h3, .bq h4, .bq h5, .bq h6, .bq button, .bq input, .bq textarea, .bq select { font-family: var(--font-text); }
.bq .bq-h2, .bq .bq-hero h1, .bq .bq-cta h2, .bq .bq-steps__n, .bq .bq-quote blockquote, .bq .bq-pricing-plan h3,
.bq .pricing-plan h3, .bq .pricing-plan-label strong, .bq .bq-auth__title, .bq .bq-auth__aside h2, .bq .bq-features__lead .bq-h2 { font-family: var(--font-display); font-weight: 400; }
[dir="rtl"] .bq h1, [dir="rtl"] .bq h2, [dir="rtl"] .bq h3, [dir="rtl"] .bq button, [dir="rtl"] .bq input { font-family: var(--font-arabic); }

/* Mise en page du tableau de bord : le défilement revient à la page (l'ancien thème fixait la hauteur
   à 100vh - 82px et décalait l'en-tête de 80px via .sticky). */
.bq .bq-header.sticky, .bq #header-container.sticky { top: 0; background: rgba(247, 242, 232, .92); }
.bq .dashboard-container { height: auto; min-height: calc(100vh - 70px); align-items: stretch; }
.bq .dashboard-content-container { overflow: visible; }
.bq .dashboard-sidebar { align-self: stretch; }
.bq .dashboard-sidebar .dashboard-sidebar-inner { position: sticky; top: 70px; height: auto; max-height: calc(100vh - 70px); overflow-y: auto; }
.bq .dashboard-sidebar .dashboard-sidebar-inner { overflow-x: hidden; }

/* Accordéon hérité (page FAQ) : cartes crème, titre lisible, tableau des formules */
.bq .accordion { box-shadow: none; overflow: visible; display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.bq .accordion__item { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 16px; overflow: hidden; }
.bq .accordion-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 22px; background: transparent; color: var(--color-text); box-shadow: none; font-weight: 700; font-size: 17px; }
.bq .accordion-header:before { display: none; }
.bq .js-accordion-item:not(.boxed-list-small) > .js-accordion-header:after { float: none; flex: none; top: 0; color: var(--color-accent); }
.bq .accordion-body { background: transparent; color: #4A413A; }
.bq .accordion-body__contents { padding: 0 22px 20px; line-height: 1.6; }
.bq .accordion-body__contents table { width: 100%; font-size: 14px; border-collapse: collapse; display: block; overflow-x: auto; }
.bq .accordion-body__contents th, .bq .accordion-body__contents td { padding: 8px 10px; border-bottom: 1px solid var(--color-line); text-align: start; vertical-align: top; }
.bq .accordion-body__contents ol, .bq .accordion-body__contents ul { padding-inline-start: 22px; }


/* a11y-impeccable — contrastes et hiérarchie corrigés d'après le détecteur */
.bq input::placeholder, .bq textarea::placeholder { color: var(--color-muted); opacity: 1; }
.bq .welcome-text h2 { font: 400 26px/1.2 var(--font-display); color: var(--color-text); margin: 0 0 6px; }
.bq #titlebar span, .bq #titlebar p { color: var(--color-muted); }
.bq #breadcrumbs ul li a, .bq #breadcrumbs.dark ul li a, .bq #breadcrumbs.dark ul li a:hover { color: var(--color-accent-hover); }
.bq .bq-eyebrow { color: var(--color-accent-hover); }
.bq .bq-eyebrow--light, .bq .bq-auth__aside .bq-eyebrow { color: #E8A592; }
.bq .bq-nav a:hover, .bq .bq-link:hover, .bq .bq-dropdown__menu a:hover, .bq .bq-more-link:hover { color: var(--color-accent-hover) !important; }
/* Couverture du mockup : tons plus foncés pour que le texte blanc reste lisible (≥ 4,5:1) */
.bq .bq-phone__cover { background: repeating-linear-gradient(135deg, #8A6B47 0 10px, #826342 10px 20px); }
.bq .bq-footer .newsletter input::placeholder { color: #CFC4B5; }
