/*
Theme Name: BMK Digital
Description: Thème du site de BMK Digital
Author: BMK Digital
Author URI: https://www.bmkdigital.be/
Version: 1.0.2
Text Domain: bmk
Template: bmk-base
*/

/* BMK Digital — couleurs : celles du thème parent, inchangées. Seul le logo « bmk. » est réglé ici. */

/* Logo : hauteur fixe, le thème prend sinon la hauteur native du fichier */
.mkdf-logo-wrapper a { height: 66px !important; }
.mkdf-logo-wrapper a img { height: 100% !important; width: auto !important; }
.mkdf-mobile-header .mkdf-mobile-logo-wrapper a { height: 50px !important; }
.mkdf-mobile-header .mkdf-mobile-logo-wrapper img { height: 100% !important; width: auto !important; }

.bmk-centre { text-align: center; }

/* SEO : le titre de chaque page est un vrai h1, affiché à la taille d'un h2 du thème */
.mkdf-section-title-holder h1.mkdf-st-title { font-size: 55px; line-height: 1.18em; }
@media only screen and (max-width: 1024px) { .mkdf-section-title-holder h1.mkdf-st-title { font-size: 44px; } }
@media only screen and (max-width: 680px) { .mkdf-section-title-holder h1.mkdf-st-title { font-size: 34px; } }

/* Mobile : le thème ramène ses grilles (en-tête, bandeau de titre, contenu, pied de page) à 420 px sous 680 px et à
   300 px sous 480 px — 46 px vides de chaque côté sur un téléphone de 393 px. Pleine largeur moins 2 x 20 px. */
@media only screen and (max-width: 680px) { body .mkdf-grid, body .mkdf-container-inner { width: calc(100% - 40px); } }

/* Guides : titre du bandeau à la taille des titres de page (le thème garde 80 px jusque sur téléphone),
   sans le répéter sous l'image */
@media only screen and (max-width: 1024px) { .single-post .mkdf-title-holder h1.mkdf-page-title { font-size: 44px; line-height: 1.2em; } }
@media only screen and (max-width: 680px) { .single-post .mkdf-title-holder h1.mkdf-page-title { font-size: 34px; } }
.single-post .mkdf-post-text-main > h3.mkdf-post-title { display: none; }
/* listes « Guides » (barre latérale, pied de page) : le thème met une majuscule à chaque mot, à l'anglaise */
body .widget.widget_recent_entries ul li a { text-transform: none; }

/* Guides : intertitres à taille de lecture (le thème met les h3 à ~40 px) */
.single-post .mkdf-post-text h3 { font-size: 30px; line-height: 1.3em; margin: 34px 0 12px; }
@media only screen and (max-width: 680px) { .single-post .mkdf-post-text h3 { font-size: 24px; } }

/* Formulaire d'urgence « site piraté » : intitulés et cases à cocher dans le style des champs du thème */
.bmk-form-label { font-family: Poppins, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #58468c; margin: 6px 0 10px; }
.wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 22px; }
.wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.wpcf7-checkbox .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; background: #f4f7ff; border-radius: 22px; padding: 9px 16px; font-size: 14px; color: #58468c; cursor: pointer; }
.wpcf7-checkbox input[type=checkbox] { accent-color: #ff8a73; width: 16px; height: 16px; margin: 0; }

/* Intertitres de section : vrais h2 (ordre des titres pour l'accessibilité et le SEO), taille des h3 du thème */
.bmk-h2-h3 h2.mkdf-st-title, h2.bmk-h2-h3 { font-size: 45px; line-height: 1.22em; }
@media only screen and (max-width: 1024px) { .bmk-h2-h3 h2.mkdf-st-title, h2.bmk-h2-h3 { font-size: 36px; } }
@media only screen and (max-width: 680px) { .bmk-h2-h3 h2.mkdf-st-title, h2.bmk-h2-h3 { font-size: 30px; } }
/* h1 de l'accueil porté par le titre du slider : style hérité du calque */
.bmk-h1-slider { font: inherit; color: inherit; margin: 0; padding: 0; letter-spacing: inherit; line-height: inherit; text-transform: inherit; white-space: inherit; }

/* Réalisations — fiche : titre à taille raisonnable sur tablette et mobile (le thème garde ~100 px) */
@media only screen and (max-width: 1024px) { .single-portfolio-item .mkdf-title-holder h1.mkdf-page-title { font-size: 52px; line-height: 1.2em; } }
@media only screen and (max-width: 680px) { .single-portfolio-item .mkdf-title-holder h1.mkdf-page-title { font-size: 38px; } }
/* galerie de la fiche : un peu d'air entre les images, informations sous les images sur mobile */
.single-portfolio-item .mkdf-ps-image { margin-bottom: 30px; }
.single-portfolio-item .mkdf-ps-image img { border-radius: 6px; box-shadow: 0 10px 30px rgba(88, 70, 140, .10); }
@media only screen and (max-width: 1024px) { .single-portfolio-item .mkdf-ps-info-holder { margin-top: 10px; } }
.single-portfolio-item .mkdf-ps-custom-field p a { color: #58468c; text-decoration: underline; text-underline-offset: 3px; }
/* « Autres réalisations » : le thème y affiche les catégories de la fiche courante, pas de chaque projet */
.mkdf-ps-related-categories { display: none; }
/* Réalisations — liste : titre et extrait sous l'image, à taille de lecture */
.mkdf-portfolio-list-holder h2.mkdf-pli-title { font-size: 24px; line-height: 1.3em; margin: 6px 0 0; }
.mkdf-portfolio-list-holder .mkdf-pli-excerpt { font-size: 15px; line-height: 1.6em; margin-top: 8px; }
.mkdf-portfolio-list-holder .mkdf-pli-image img { border-radius: 6px; }
/* la liste est posée dans une section pleine largeur : grille ramenée à la largeur du site */
.mkdf-portfolio-list-holder.mkdf-pl-gallery { display: block; max-width: 1300px; margin-left: auto; margin-right: auto; padding: 0 30px; box-sizing: border-box; }
@media only screen and (max-width: 680px) { .mkdf-portfolio-list-holder.mkdf-pl-gallery { padding: 0 20px; } }

/* Mobile : bouton du menu à droite (sous le pouce, la plupart des gens sont droitiers) */
.mkdf-mobile-header .mkdf-mobile-menu-opener { float: right; position: relative; z-index: 2; }

/* Cartes « intégrations » (icône à gauche du titre) empilées sur tablette/mobile : icône, texte et flèche
   alignés d'une carte à l'autre (le thème centre le contenu, l'icône bougeait avec la longueur du texte) */
@media only screen and (max-width: 1024px) {
	.mkdf-iwt .mkdf-iwt-inner.mkdf-iwt-icon-left-from-title-and-text .mkdf-iwt-content { display: block; width: 100%; }
	.mkdf-iwt .mkdf-iwt-inner.mkdf-iwt-icon-left-from-title-and-text h4.mkdf-iwt-title { display: flex; width: 100%; align-items: center; gap: 14px; text-align: left; margin: 0; }
	.mkdf-iwt .mkdf-iwt-inner.mkdf-iwt-icon-left-from-title-and-text .mkdf-iwt-icon { flex: 0 0 44px; text-align: center; margin: 0; }
	.mkdf-iwt .mkdf-iwt-inner.mkdf-iwt-icon-left-from-title-and-text .mkdf-iwt-icon img { max-width: 100%; height: auto; }
	.mkdf-iwt .mkdf-iwt-inner.mkdf-iwt-icon-left-from-title-and-text span.mkdf-iwt-title { flex: 1 1 auto; min-width: 0; padding: 0; }
	.mkdf-iwt .mkdf-iwt-inner.mkdf-iwt-icon-left-from-title-and-text .mkdf-iwt-text { white-space: nowrap; letter-spacing: 1.5px; }
	.mkdf-iwt .mkdf-iwt-inner.mkdf-iwt-icon-left-from-title-and-text .mkdf-iwt-arrow { flex: 0 0 auto; width: auto; padding: 0; margin-left: auto; position: static; }
	.mkdf-iwt .mkdf-iwt-inner.mkdf-iwt-icon-left-from-title-and-text.mkdf-iwt-show-regular-shadow { padding-left: 22px; padding-right: 22px; }
}

/* Cartes à icône (iwt), au survol : le thème cache « la première image » et montre « la dernière » (prévu pour deux
   icônes) ; le chargement différé ajoute une copie <noscript> après l'icône, la seule image devenait « première » et
   disparaissait. Sur écran tactile, le survol reste collé après un appui : la carte montait de 20 px sur la précédente
   — pas de déplacement sans souris. */
body .mkdf-iwt:hover .mkdf-iwt-icon img:only-of-type { opacity: 1; }
@media (hover: none) { body .mkdf-iwt:hover .mkdf-iwt-inner { transform: none; } }

/* Contraste des textes (WCAG AA, 4,5:1 — relevé par PageSpeed le 30/10). Le saumon du thème reste le fond des
   boutons et des filtres, mais le blanc n'y fait que 2,3:1 : texte en violet foncé (6,6:1). Gris des filtres et
   catégories un ton plus foncé (3,2 -> 4,6:1). Le bleu des boutons de la bannière est réglé dans bmk-hero.php. */
.mkdf-btn.mkdf-btn-solid:not(.bmk-btn-bleu),
body input.wpcf7-form-control.wpcf7-submit, body input.wpcf7-form-control.wpcf7-submit:hover { color: #2b1d4f; }
/* champs du formulaire : texte gris du thème (#807d78 sur fond bleuté, 3,9:1) -> texte courant du thème (4,8:1) */
body .wpcf7-form-control.wpcf7-text, body .wpcf7-form-control.wpcf7-textarea, body .wpcf7-form-control.wpcf7-select { color: #716c80; }
body .wpcf7-form-control::placeholder { color: #716c80; opacity: 1; }
body .mkdf-pl-filter-holder ul li.mkdf-pl-current span, body .mkdf-pl-filter-holder ul li:hover span { color: #2b1d4f; }
/* gris « violet clair » du thème (#938da6) sur les textes d'accompagnement : filtres, catégories, dates, navigation */
body .mkdf-pl-filter-holder ul li:not(.mkdf-pl-current):not(:hover) span,
body .mkdf-portfolio-list-holder article .mkdf-pli-text .mkdf-pli-category-holder a,
body .mkdf-portfolio-list-holder article .mkdf-pli-text .mkdf-pli-category-holder a:after,
body .mkdf-post-info-top, body .mkdf-post-info-top a:not(:hover),
body .mkdf-blog-holder article .mkdf-post-info-bottom .mkdf-post-info-bottom-right > div > a > span,
body .mkdf-blog-list-holder .mkdf-post-info-bottom-right > div > a > span,
body .mkdf-blog-single-navigation-date,
body .mkdf-portfolio-single-holder .mkdf-ps-info-holder .mkdf-ps-info-date,
body .mkdf-portfolio-single-holder .mkdf-ps-info-holder .mkdf-ps-info-title,
body .mkdf-ps-navigation .mkdf-ps-prev > span, body .mkdf-ps-navigation .mkdf-ps-next > span,
body .widget.mkdf-recent-post-widget ul .mkdf-rp-item .mkdf-rp-date,
body .widget.widget_recent_entries ul li > span,
body .mkdf-blog-share > span { color: #787190; }
/* Réglages par défaut d'Elementor (kit) remplacés par ceux du thème : texte gris #7a7a7a (4,3:1) -> #716c80 ;
   police Roboto, jamais chargée (Roboto système sur Android, Arial/Helvetica ailleurs) -> Nunito/Poppins du thème */
body[class*="elementor-kit-"] {
	--e-global-color-text: #716c80;
	--e-global-typography-text-font-family: "Nunito"; --e-global-typography-text-font-weight: 300;
	--e-global-typography-primary-font-family: "Poppins"; --e-global-typography-primary-font-weight: 400;
	--e-global-typography-secondary-font-family: "Nunito"; --e-global-typography-secondary-font-weight: 400;
	--e-global-typography-accent-font-family: "Poppins"; --e-global-typography-accent-font-weight: 500;
}
/* intertitres dans un bloc texte (mentions légales) : taille de lecture comme les guides, le thème met les h3 à 45 px */
.elementor-widget-text-editor h3 { font-size: 30px; line-height: 1.3em; margin: 34px 0 12px; }
@media only screen and (max-width: 680px) { .elementor-widget-text-editor h3 { font-size: 24px; } }
/* liens dans un paragraphe : soulignés, la couleur seule ne les distingue pas assez du texte */
.mkdf-post-text p a:not(.mkdf-btn), .elementor-widget-text-editor p a:not(.mkdf-btn) { text-decoration: underline; text-underline-offset: 3px; }
/* Menu mobile tronqué (Ben, 31/10) : le thème fige la hauteur du menu en px (au chargement, à chaque sous-menu
   ouvert : « hauteur initiale + 50 », après une rotation). Hauteur naturelle rendue, SAUF pendant les animations
   d'ouverture / fermeture, que jQuery reconnaît par un overflow posé dans le style : elles restent intactes. */
.mkdf-mobile-header .mkdf-mobile-nav:not([style*="overflow"]) { height: auto !important; }
/* Visionneuse des galeries (prettyPhoto du thème), Ben 31/10 : « efface le bandeau blanc et flèches en bas de la photo
   et mets le 3/4 en dessous de la photo ». Plus de fond blanc ni de flèches sous l'image (celles posées sur la photo
   restent) ; le compteur, centré, en blanc sur le voile. Préfixe html : passe devant les règles du thème. */
html body .pp_pic_holder .pp_details { background: none; padding: 14px 0 0; }
html body .pp_pic_holder .pp_details .pp_nav .pp_arrow_previous, html body .pp_pic_holder .pp_details .pp_nav .pp_arrow_next { display: none; }
html body .pp_pic_holder .pp_details .pp_nav .currentTextHolder { position: static; display: block; text-align: center; color: #fff; font: 500 14px/30px Poppins, sans-serif; letter-spacing: 3px; }
/* Menu mobile : icône « trois lignes » plus grande (Ben, 01/11 : 20 -> 30 px, puis « un peu plus petit » : 26 px), zone de toucher de 48 px */
.mkdf-mobile-header .mkdf-mobile-menu-opener a { display: flex; align-items: center; justify-content: center; min-width: 48px; height: 100%; }
body .mkdf-mobile-header .mkdf-mobile-menu-opener.mkdf-mobile-menu-opener-icon-pack .mkdf-mobile-menu-icon { font-size: 26px; line-height: 1; } /* le thème : même sélecteur sans body, 20 px */
