/*
Theme Name:   Bodu Hithi Blog
Theme URI:    https://www.boduhithi.fr/
Author:       Oscar AI Solutions
Author URI:   https://oscar-seo.ai/
Description:  Thème sur mesure pour le blog de Bodu Hithi – Un Univers de Thérapies. Reprend l'identité graphique du site principal (Poppins / Muli, anthracite #252525, sable #BAAD9E, terre #974806). En-tête blanc identique aux pages intérieures du site. Le logo renvoie vers le site principal.
Version:      1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  boduhithi
Tags:         blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Variables (charte graphique reprise de boduhithi.fr)
   ========================================================================== */
:root {
	--bh-dark:        #252525;  /* header, rangées sombres */
	--bh-darker:      #1b1b1b;
	--bh-sand:        #baad9e;  /* couleur d'accent : rangées, boutons, footer */
	--bh-sand-light:  #e7e1da;
	--bh-earth:       #974806;  /* titres d'accroche */
	--bh-ochre:       #e4a875;  /* fond du logo */
	--bh-spark:       #f26a3d;  /* point orange du logo */
	--bh-white:       #ffffff;
	--bh-text:        rgba(37, 37, 37, .875);
	--bh-text-soft:   rgba(37, 37, 37, .75);
	--bh-line:        rgba(37, 37, 37, .2);
	--bh-nav:         rgba(255, 255, 255, .875);

	--bh-font-head: "Poppins", sans-serif;
	--bh-font-body: "Mulish", "Muli", sans-serif;

	--bh-container: 1170px;
	--bh-gutter: 16px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--bh-font-body);
	font-size: 18px;
	line-height: 1.8;
	color: var(--bh-text);
	background: var(--bh-white);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--bh-earth); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
a:hover, a:focus { color: var(--bh-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bh-font-head);
	font-weight: 700;
	color: var(--bh-dark);
	line-height: 1.2;
	margin: 1.6em 0 .6em;
}
h1 { font-size: clamp(30px, 4vw, 45px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p  { margin: 0 0 1.3em; }

blockquote {
	margin: 2em 0;
	padding: 1.2em 1.6em;
	border-left: 4px solid var(--bh-sand);
	background: var(--bh-sand-light);
	font-style: italic;
}
hr { border: 0; border-top: 1px solid var(--bh-line); margin: 3em 0; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--bh-line); text-align: left; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; z-index: 100000;
	top: 8px; left: 8px; padding: 12px 20px; background: var(--bh-white); color: var(--bh-dark);
}
.container { width: 100%; max-width: var(--bh-container); margin: 0 auto; padding: 0 var(--bh-gutter); }

/* ==========================================================================
   3. Boutons (style « Prenez rendez-vous »)
   ========================================================================== */
.bh-button,
button, input[type="submit"], .wp-block-button__link, .comment-reply-link {
	display: inline-block;
	padding: 18px 24px;
	background: var(--bh-sand);
	color: var(--bh-dark);
	font-family: var(--bh-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.bh-button:hover, button:hover, input[type="submit"]:hover,
.wp-block-button__link:hover, .comment-reply-link:hover {
	background: var(--bh-dark);
	color: var(--bh-white);
}
.bh-button--dark { background: var(--bh-dark); color: var(--bh-white); }
.bh-button--dark:hover { background: var(--bh-earth); }

/* ==========================================================================
   4. En-tête – identique aux pages intérieures de boduhithi.fr
      (fond blanc, nom du site en Poppins, menu Muli en capitales)
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 50;
	background: var(--bh-white);
	color: var(--bh-dark);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1331px;
	margin: 0 auto;
	padding: 25px 24px 40px;
}
.branding { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 0 24px; }
.branding__logo img { display: block; max-height: 70px; width: auto; }
.branding__site-title {
	margin: 0;
	font-family: var(--bh-font-head);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	max-width: 440px;
	color: var(--bh-dark);
}
.branding__link { color: var(--bh-dark); text-decoration: none; }
.branding__link:hover, .branding__link:focus { color: var(--bh-dark); opacity: .75; }

/* Navigation */
.main-navigation { padding: 0 24px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > div > ul,
.main-navigation > ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 8px 12px;
	color: rgba(37, 37, 37, .75);
	font-family: var(--bh-font-body);
	font-size: 16px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s;
}
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_parent > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .bh-current > a { color: var(--bh-dark); }

/* petit chevron (équivalent du chevron FontAwesome du site) */
.main-navigation .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 5px; height: 5px;
	margin-left: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	padding: 4px 0;
	background: var(--bh-white);
	box-shadow: 0 3px 6px rgba(0,0,0,.024), 0 6px 12px rgba(0,0,0,.024), 0 12px 24px rgba(0,0,0,.03), 0 24px 48px rgba(0,0,0,.035);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.main-navigation .sub-menu a { padding: 12px 16px; font-size: 15px; white-space: normal; }

.menu-toggle {
	display: none;
	align-items: center;
	white-space: nowrap;
	padding: 10px 14px;
	background: transparent;
	color: var(--bh-dark);
	border: 1px solid var(--bh-line);
	font-size: 13px;
}
.menu-toggle:hover { background: var(--bh-sand); color: var(--bh-dark); }
.menu-toggle__bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 8px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-toggle__bars::before { top: -6px; } .menu-toggle__bars::after { top: 6px; }

/* ==========================================================================
   5. Bandeau de titre sable (rangée « accent » des pages intérieures)
   ========================================================================== */
.bh-band { background: var(--bh-sand); padding: 64px 0 56px; text-align: center; }
.bh-band h1, .bh-band .bh-band__title {
	margin: 0;
	font-family: var(--bh-font-body);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--bh-text);
}
.bh-band .bh-kicker { color: var(--bh-earth); }
.bh-band p, .bh-band .archive-description { margin: 14px auto 0; max-width: 760px; color: var(--bh-text); }
.bh-band .archive-description p { margin: 0; }

/* ==========================================================================
   6. Mise en page : contenu en cartes blanches sur fond sable
   ========================================================================== */
.site-main { background: var(--bh-sand); padding: 16px 0 88px; }
.bh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.bh-layout--full { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin: 0 auto; }
.bh-panel {
	background: var(--bh-white);
	color: var(--bh-dark);
	box-shadow: 0 8px 30px rgba(37, 37, 37, .1);
	padding: 56px 60px;
}

/* Grille d'articles */
.bh-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.bh-card {
	display: flex; flex-direction: column;
	background: var(--bh-white);
	box-shadow: 0 8px 30px rgba(37, 37, 37, .1);
}
.bh-card__thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bh-sand-light); }
.bh-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.bh-card:hover .bh-card__thumb img { transform: scale(1.03); }
.bh-card__body { display: flex; flex-direction: column; flex: 1; padding: 30px 32px 34px; }
.bh-card__title { margin: .35em 0 .5em; font-size: 24px; line-height: 1.2; }
.bh-card__title a { color: var(--bh-dark); text-decoration: none; }
.bh-card__title a:hover { color: var(--bh-earth); }
.bh-card__excerpt { font-size: 16px; color: var(--bh-text-soft); }
.bh-card__excerpt p { margin-bottom: 1em; }
.bh-card .bh-button { align-self: flex-start; margin-top: auto; padding: 14px 20px; font-size: 13px; }

.bh-meta {
	display: flex; flex-wrap: wrap; gap: 4px 14px;
	font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--bh-text-soft);
}
.bh-meta a { color: var(--bh-earth); text-decoration: none; }

/* Article seul */
.bh-entry__header { margin-bottom: 28px; }
.bh-entry__title { margin: .3em 0 0; font-size: clamp(28px, 3.4vw, 38px); }
.bh-entry__thumb { margin: 0 0 40px; }
.bh-entry__thumb img { width: 100%; display: block; }
.entry-content { color: var(--bh-text-soft); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { text-align: justify; }
.entry-content strong, .entry-content b { color: var(--bh-dark); }
.entry-content img { display: block; }
.entry-content .alignleft  { float: left;  margin: .4em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.6em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--bh-text-soft); text-align: center; margin-top: 8px; }
.bh-tags { margin-top: 40px; font-size: 14px; }
.bh-tags a {
	display: inline-block; margin: 0 6px 8px 0; padding: 6px 12px;
	background: var(--bh-sand-light); color: var(--bh-dark); text-decoration: none;
}
.bh-tags a:hover { background: var(--bh-sand); }

/* Appel à l'action en fin d'article */
.bh-cta { margin-top: 48px; padding: 40px; background: var(--bh-sand-light); text-align: center; }
.bh-cta h3 { margin-top: 0; }
.bh-cta p { color: var(--bh-text); text-align: center; }

/* Navigation entre articles */
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.post-navigation .nav-links > div { background: var(--bh-white); box-shadow: 0 8px 30px rgba(37,37,37,.1); }
.post-navigation a { display: block; padding: 22px 26px; text-decoration: none; color: var(--bh-dark); font-family: var(--bh-font-head); font-weight: 700; line-height: 1.3; }
.post-navigation a:hover { color: var(--bh-earth); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-subtitle { display: block; margin-bottom: 6px; font-family: var(--bh-font-body); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--bh-text-soft); }

/* Pagination */
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers {
	min-width: 46px; padding: 13px 15px; text-align: center; text-decoration: none; line-height: 1;
	color: var(--bh-dark); background: var(--bh-white); font-weight: 600;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--bh-dark); color: var(--bh-white); }

/* ==========================================================================
   7. Barre latérale & widgets (cartes blanches)
   ========================================================================== */
.widget-area .widget {
	margin-bottom: 32px; padding: 32px 28px;
	background: var(--bh-white); box-shadow: 0 8px 30px rgba(37,37,37,.1);
}
.widget-title, .widget-area .wp-block-heading {
	margin: 0 0 16px; font-size: 20px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--bh-line); font-size: 16px; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--bh-dark); text-decoration: none; }
.widget li a:hover { color: var(--bh-earth); }
.bh-about p { font-size: 16px; color: var(--bh-text-soft); }

/* Formulaires */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], input[type="tel"], textarea, select {
	width: 100%; padding: 14px 16px;
	font: inherit; font-size: 16px; color: var(--bh-dark);
	background: var(--bh-white); border: 1px solid var(--bh-line); border-radius: 0;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--bh-sand); outline-offset: 0; border-color: var(--bh-sand); }
.search-form { display: flex; }
.search-form label { flex: 1; }
.search-form .search-submit { padding: 14px 18px; }

/* Commentaires */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 24px 0; border-bottom: 1px solid var(--bh-line); }
.comment-author img { float: left; margin-right: 14px; }
.comment-meta { font-size: 14px; margin-bottom: 12px; }
.comment-metadata a { color: var(--bh-text-soft); text-decoration: none; }
.comment-reply-link { padding: 10px 14px; font-size: 12px; }
.comment-form p { margin-bottom: 16px; }

/* Aucun résultat / 404 */
.no-results { text-align: center; }

/* ==========================================================================
   8. Pied de page : rangée « Contact & Accès » blanche + rangée sable fine
   ========================================================================== */
.site-footer { color: var(--bh-dark); }
.site-footer a { color: var(--bh-dark); }
.site-footer a:hover { color: var(--bh-earth); }
.site-footer__contact { background: var(--bh-white); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 72px var(--bh-gutter); }
.site-footer h2 { margin: 0 0 16px; font-size: 26px; color: var(--bh-dark); }
.site-footer p, .site-footer li { font-size: 16px; color: var(--bh-text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer__bottom { background: var(--bh-sand); padding: 32px var(--bh-gutter); text-align: center; font-size: 16px; color: var(--bh-dark); }

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.site-header__inner { padding: 20px 24px; }
	.branding, .main-navigation { padding: 0; }
	.menu-toggle { display: inline-flex; flex-shrink: 0; }
	.main-navigation { position: absolute; top: 100%; left: 0; right: 0; background: var(--bh-white); display: none; padding: 8px 0 20px; max-height: calc(100vh - 100px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
	.main-navigation.is-open { display: block; }
	.main-navigation > div > ul, .main-navigation > ul { display: block; }
	.main-navigation a { padding: 14px 24px; white-space: normal; }
	.main-navigation .sub-menu { position: static; opacity: 1; visibility: visible; box-shadow: none; display: none; padding: 0 0 0 16px; }
	.main-navigation li.is-open > .sub-menu { display: block; }
	.bh-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	body { font-size: 17px; }
	.site-header__inner { padding: 16px; gap: 12px; }
	.branding__site-title { font-size: 20px; max-width: none; }
	.bh-band { padding: 44px 0 40px; }
	.bh-posts { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.bh-card__body { padding: 24px 22px 28px; }
	.bh-panel { padding: 32px 22px; }
	.site-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 48px var(--bh-gutter); }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em auto; }
	.entry-content p, .bh-card__excerpt { text-align: left; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.bh-cta { padding: 28px 20px; }
}
