/*
Theme Name:   Bestiaire Kaeppelin (GeneratePress)
Theme URI:    https://www.bestiaire-kaeppelin.com
Description:  Thème enfant de GeneratePress reprenant le design historique du Bestiaire Kaeppelin (ex-Green Earth). Les mises à jour de GeneratePress se font normalement ; les personnalisations vivent ici.
Author:       Bestiaire Kaeppelin
Template:     generatepress
Version:      1.0.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain:  bestiaire-gp
*/

/* ---------- Polices hébergées localement (RGPD : aucun appel à Google) ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/open-sans.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("assets/fonts/open-sans-italic.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/merriweather.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/merriweather-italic.woff2") format("woff2"); }

/* ---------- Palette reprise de Green Earth ---------- */
:root {
	--bk-text: #777777;
	--bk-title: #494949;
	--bk-post-title: #303030;
	--bk-link: #4f4f4f;
	--bk-link-hover: #8a8a8a;
	--bk-border: #ececec;
	--bk-button-bg: #e9d424;
	--bk-button-text: #786d14;
	--bk-footer-bg: #2f261a;
	--bk-footer-top: #43392b;
	--bk-footer-border: #3f362a;
	--bk-footer-text: #cfc2ae;
	--bk-footer-muted: #aba395;
	--bk-copyright-bg: #1f1911;
	--bk-copyright-text: #808080;
	--bk-header-overlay: rgba(0, 0, 0, .3);
	--bk-subnav-bg: rgba(0, 0, 0, .8);
}

body { font-family: "Open Sans", Arial, sans-serif; color: var(--bk-text); }
h1, h2, h3, h4, h5, h6, .entry-title, .widget-title, .main-title { font-family: "Merriweather", Georgia, serif; color: var(--bk-title); font-weight: 400; }
h1 { font-size: 30px; } h2 { font-size: 25px; } h3 { font-size: 20px; } h4 { font-size: 18px; } h5 { font-size: 16px; } h6 { font-size: 15px; }
.entry-title a, .entry-title { color: var(--bk-post-title); }
a { color: var(--bk-link); }
a:hover, a:focus { color: var(--bk-link-hover); }

/* ---------- En-tête : bandeau sombre translucide posé sur le diaporama ---------- */
.site-header { background: var(--bk-header-overlay); border-radius: 0 0 5px 5px; position: absolute; left: 0; right: 0; top: 0; z-index: 20; max-width: 980px; margin: 0 auto; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Bandeau des pages intérieures (image de l'atelier + titre blanc) */
.bk-bandeau { background-color: #3a3125; background-position: 50% 50%; background-size: cover; min-height: 200px; display: flex; align-items: flex-end; }
.bk-bandeau-inner { width: 100%; max-width: 980px; margin: 0 auto; padding: 110px 20px 22px; }
.bk-bandeau-titre { margin: 0; color: #fff; font-size: 30px; text-shadow: 1px 2px #2b360e; }
@media (max-width: 768px) { .bk-bandeau-titre { font-size: 22px; } }
.site-logo img { max-height: 48px; width: auto; }
.main-title a, .main-title a:hover, .site-description { color: #fff; }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a { font-family: Georgia, "Times New Roman", Times, serif; font-size: 13px; color: #fff; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.sfHover > a { color: #d4d4d4; background: transparent; }
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: #fff; background: transparent; }
.main-navigation .main-nav ul ul { background: var(--bk-subnav-bg); }
.main-navigation .main-nav ul ul li a { color: #e6e6e6; }
.main-navigation .main-nav ul ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul ul li a:hover { color: #999; }
.menu-toggle, .menu-toggle:hover, .menu-toggle:focus { color: #fff; background: transparent; }
.home .main-navigation.toggled .main-nav > ul { background: var(--bk-subnav-bg); }

/* ---------- Diaporama d'accueil (bloc « Diaporama accueil ») ---------- */
.bk-diaporama { position: relative; margin: 0; overflow: hidden; background: #222; }
/* Thème classique : WordPress ajoute un conteneur interne que GeneratePress limite à la largeur du site. */
.bk-diaporama > .wp-block-group__inner-container { max-width: none; margin: 0; padding: 0; position: relative; }
.bk-diaporama .wp-block-cover { min-height: 517px; margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.bk-diaporama .wp-block-cover:first-child { position: relative; }
.bk-diaporama .wp-block-cover.is-active { opacity: 1; z-index: 1; }
.bk-diaporama:not(.is-ready) .wp-block-cover:first-child { opacity: 1; }
.bk-diaporama .wp-block-cover__inner-container { max-width: 940px; color: #fff; text-shadow: 2px 2px 2px rgba(0, 0, 0, .6); }
.bk-diaporama .wp-block-cover__inner-container h2 { color: #fff; font-size: 38px; }
.bk-diaporama-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; padding: 6px 10px; background: rgba(0, 0, 0, .35); border-radius: 10px; }
.bk-diaporama-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); box-shadow: none; cursor: pointer; }
.bk-diaporama-dots button[aria-current="true"] { background: #fff; }
.bk-diaporama-dots .bk-diaporama-toggle { width: auto; height: 10px; border-radius: 0; background: transparent; color: #fff; font-size: 9px; line-height: 10px; padding: 0 2px; }
.bk-diaporama-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bk-diaporama + .bk-header-bar, .bk-header-bar { height: 6px; box-shadow: 0 -1px 4px -1px #333; position: relative; z-index: 2; }
@media (max-width: 768px) { .bk-diaporama .wp-block-cover { min-height: 300px; } .bk-diaporama .wp-block-cover__inner-container h2 { font-size: 24px; } }

/* ---------- Titre d'accueil (ex « stunning text ») ---------- */
.bk-accroche { text-align: center; margin-bottom: 2em; padding-bottom: 1.5em; border-bottom: 1px solid var(--bk-border); }
.bk-accroche h1 { color: #333; margin-bottom: .4em; }
.bk-accroche p span, .bk-accroche .bk-accroche-sous-titre { display: inline-block; background: #f3f3f3; color: #666; padding: 2px 15px; font-size: 13px; }

/* ---------- Liste des œuvres (Boucle de requête « bk-oeuvres ») ---------- */
.bk-oeuvres .wp-block-post { padding-bottom: 1.5em; margin-bottom: 1.5em; border-bottom: 1px solid var(--bk-border); }
.bk-oeuvres .wp-block-post-title { font-size: 18px; margin-bottom: .3em; }
.bk-oeuvres .wp-block-post-title a { color: var(--bk-post-title); text-decoration: none; }
.bk-oeuvres .wp-block-post-date { font-size: 11px; font-style: italic; color: #999; }

/* ---------- Boutons jaunes ---------- */
button, html input[type="button"], input[type="reset"], input[type="submit"],
a.button, a.gdl-button, .wp-block-button__link, .wpcf7-submit, .bk-commander a {
	background-color: var(--bk-button-bg); color: var(--bk-button-text);
	font-family: "Open Sans", Arial, sans-serif; font-weight: 700; font-size: 11px;
	border: 0; border-radius: 3px; padding: 7px 22px; box-shadow: 0 1px 1px #888;
}
button:hover, input[type="submit"]:hover, a.button:hover, .wp-block-button__link:hover, .wpcf7-submit:hover, .bk-commander a:hover,
button:focus, input[type="submit"]:focus, a.button:focus, .wp-block-button__link:focus { background-color: #ddc81c; color: var(--bk-button-text); }

/* ---------- Barre latérale ---------- */
.sidebar .widget { background: transparent; padding: 0 0 20px; }
.sidebar .widget-title, .sidebar .widget h2 { font-size: 14px; color: var(--bk-title); padding-bottom: 8px; border-bottom: 1px solid var(--bk-border); }
.sidebar .wp-block-latest-posts li { padding: 8px 0; border-bottom: 1px solid var(--bk-border); font-family: "Merriweather", Georgia, serif; font-size: 12px; }
.sidebar .wp-block-latest-posts__post-date { font-size: 10px; font-style: italic; color: #999; font-family: "Open Sans", Arial, sans-serif; }

/* ---------- Pied de page : brun foncé, formulaire de contact à gauche ---------- */
.site-footer .footer-widgets { background: var(--bk-footer-bg); color: var(--bk-footer-text); border-top: 8px solid var(--bk-footer-top); font-size: 12px; }
.site-footer .footer-widgets .widget-title, .site-footer .footer-widgets h2 { color: #fff; font-size: 15px; }
.site-footer .footer-widgets a { color: #fff; }
.site-footer .footer-widgets a:hover { color: #cfcfcf; }
.site-footer .footer-widgets ul li { border-bottom: 1px solid var(--bk-footer-border); padding: 5px 0; }
.site-footer .footer-widgets input[type="text"], .site-footer .footer-widgets input[type="email"], .site-footer .footer-widgets textarea {
	background: #fff; color: #555; border: 1px solid #362d20; width: 100%;
}
@media (min-width: 769px) {
	.footer-widgets-container .inside-footer-widgets { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
	.footer-widgets-container .inside-footer-widgets > div { width: auto; flex: none; }
}
.site-info { background: var(--bk-copyright-bg); color: var(--bk-copyright-text); font-size: 11px; }
.site-info a { color: var(--bk-copyright-text); }

/* ---------- Ancien shortcode [column] (fiches des sérigraphies) ---------- */
.shortcode1-4, .shortcode1-3, .shortcode1-2, .shortcode2-3, .shortcode3-4, .shortcode1 { float: left; margin-right: 2%; }
.shortcode1-4 { width: 23%; } .shortcode1-3 { width: 31.33%; } .shortcode1-2 { width: 48%; }
.shortcode2-3 { width: 64.66%; } .shortcode3-4 { width: 73%; } .shortcode1 { width: 98%; }
.entry-content::after { content: ""; display: table; clear: both; }
/* Les colonnes se superposent dès que le contenu est trop étroit (barre latérale, tablette, mobile). */
.entry-content { container-type: inline-size; }
@container (max-width: 720px) { .shortcode1-4, .shortcode1-3, .shortcode1-2, .shortcode2-3, .shortcode3-4 { width: 100%; float: none; margin-right: 0; } }

/* ---------- Formulaires Contact Form 7 ---------- */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { width: 100%; }
.wpcf7 small { display: block; font-size: 11px; line-height: 1.5; color: inherit; opacity: .85; }
