/*
Theme Name: Lingot or
Description: Thème enfant GeneratePress de lingot-or.com, guide indépendant de l'or physique (maquette E du 13/11/2026) : fond blanc, bandes or mat, filets or, titres en Cormorant Garamond, texte en Inter (polices hébergées), motif de page d'accueil « Accueil lingot-or ». Socle Fox embarqué (fox-socle/). Présentation seulement.
Author: Fox
Template: generatepress
Version: 1.0.4
Fox Socle: 1.3.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lingot-or-theme
*/

/* Site tokens: the yellow and the gold are decoration only, never text. */
:root {
	--lo-yellow: #C9A55C;
	--lo-gold: #B8913F;
	--lo-rule: #E6DCC8;
	--lo-display: "Cormorant Garamond", Georgia, serif;
}

body { font-family: "Inter", system-ui, sans-serif; color: var(--contrast); background-color: var(--base-3); }
h1, h2, h3, .entry-title, .page-title { font-family: var(--lo-display); font-weight: 600; line-height: 1.08; letter-spacing: 0; }
h1, .entry-title { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.55rem; }
a { text-underline-offset: 3px; }

/* Price band (Lingot Cours plugin) */
.lo-ticker { background: var(--lo-yellow); color: #1C1A17; font-size: 14px; }
/* One thin line: 10px + 20px line + 10px = 40px. No prices: the band stays, empty, at the same height. */
.lo-ticker:empty { min-height: 40px; }
.lo-ticker .lc-bandeau { display: flex; align-items: baseline; gap: 0 32px; max-width: 1200px; margin: 0 auto; padding: 10px 24px; border: 0; box-sizing: border-box; line-height: 20px; white-space: nowrap; }
.lo-ticker .lc-bandeau__liste { flex: 0 1 auto; min-width: 0; margin: 0; flex-wrap: nowrap; gap: 0 28px; align-items: baseline; overflow-x: auto; scrollbar-width: none; }
.lo-ticker .lc-bandeau__item { display: flex; gap: 6px; align-items: baseline; }
.lo-ticker .lc-bandeau__item dt { font-size: 14px; line-height: 20px; opacity: 1; font-weight: 500; text-transform: none; letter-spacing: 0; }
.lo-ticker .lc-bandeau__item dt::after { content: " :"; }
.lo-ticker .lc-bandeau__item dd { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700; }
/* The update line goes right when there is room; otherwise it is cut, never wrapped. */
.lo-ticker .lc-bandeau__maj { flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; font-size: 13px; line-height: 20px; opacity: 1; }
@media (max-width: 1100px) { .lo-ticker .lc-bandeau__maj { display: none; } }
.lo-ticker a { color: #1C1A17; }

/* Header */
.site-header { border-bottom: 1px solid var(--lo-rule); }
.main-title, .site-title { font-family: var(--lo-display); font-weight: 700; font-size: 32px; letter-spacing: .01em; }
.main-title a, .site-title a { color: var(--contrast); }
.main-navigation .main-nav ul li a { font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

/* Entries */
.entry-content > * + h2 { margin-top: 2.2em; padding-top: .6em; border-top: 1px solid var(--lo-rule); }
.entry-content blockquote { border-left: 4px solid var(--lo-yellow); }
.entry-content table { border-collapse: collapse; }
.entry-content th { background: var(--base-2); }
.entry-content th, .entry-content td { border: 1px solid var(--lo-rule); padding: .5em .7em; }
.entry-meta { font-size: 14px; color: var(--contrast-2); }

/* Buttons */
.wp-block-button__link { border-radius: 0; font-weight: 600; padding: 14px 22px; }
.wp-block-button.lo-btn > .wp-block-button__link, .wp-block-button.lo-btn-ink > .wp-block-button__link { background: #1C1A17; color: #fff; padding: 14px 22px; }
.wp-block-button.lo-btn-line > .wp-block-button__link { background: transparent; color: #1C1A17; border: 2px solid #1C1A17; padding: 12px 20px; }
.wp-block-button.lo-btn > .wp-block-button__link:hover, .wp-block-button.lo-btn-ink > .wp-block-button__link:hover { background: var(--accent); color: #fff; }
.wp-block-button.lo-btn-line > .wp-block-button__link:hover { background: #1C1A17; color: #fff; }

/* Home: the pattern runs full width, its groups keep a 1200 px column. */
.lo-home .site-content, .lo-home .site-content .content-area, .lo-home .inside-article { padding: 0; }
.lo-home .entry-content { margin-top: 0; }
.lo-une, .lo-pieces, .lo-guides, .lo-band__grid { max-width: 1200px; margin-left: auto; margin-right: auto; box-sizing: border-box; padding-left: 24px; padding-right: 24px; }
.lo-tag { display: inline-block; background: var(--lo-yellow); color: #1C1A17; padding: 4px 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.lo-une { padding-top: 72px; padding-bottom: 64px; }
.lo-une__grid { gap: 48px; }
.lo-une__title { font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1; margin: .35em 0; }
.lo-une__deck { font-size: 19px; line-height: 1.65; color: var(--contrast-2); max-width: 520px; }
.lo-une__media { position: relative; text-align: center; }
.lo-une__media::before { content: ""; position: absolute; left: 0; right: 0; top: 42%; height: 120px; background: var(--lo-yellow); }
.lo-une__img { position: relative; margin: 0 auto; max-width: 420px; }
.lo-band__media img, .lo-grid__img img { mix-blend-mode: multiply; }
.lo-une__img img { filter: drop-shadow(0 10px 18px rgba(28, 26, 23, .18)); }

.lo-pieces { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--lo-rule); }
.lo-head, .lo-head > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 32px; }
.lo-head__title { margin: 0; }
.lo-head > .wp-block-group__inner-container { flex: 1 1 100%; margin: 0; }
.lo-head > .wp-block-group__inner-container::after, .lo-head:not(:has(> .wp-block-group__inner-container))::after { content: ""; flex: 1 1 80px; height: 1px; background: var(--lo-gold); order: 2; }
.lo-head__more { order: 3; margin: 0; font-weight: 600; }
.lo-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.lo-grid__img { margin: 0 0 12px; border-bottom: 4px solid var(--lo-yellow); }
.lo-grid__title { font-size: 1.45rem; margin: 0; }
.lo-grid__title a { color: var(--contrast); text-decoration: none; }

.lo-band { background: var(--lo-yellow); color: #1C1A17; padding: 64px 0; }
.lo-band h2, .lo-band p { color: #1C1A17; }
.lo-band__title { font-weight: 700; margin-top: 0; }
.lo-band__media { display: flex; justify-content: center; align-items: flex-end; gap: 24px; }
.lo-band__media figure { margin: 0; max-width: 160px; }

.lo-guides { padding-top: 72px; padding-bottom: 72px; gap: 48px; }
.lo-list .wp-block-post-template { counter-reset: lo; list-style: none; margin: 0; padding: 0; }
.lo-list .wp-block-post { counter-increment: lo; display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--lo-rule); }
.lo-list .wp-block-post::before { content: counter(lo, decimal-leading-zero); font-family: var(--lo-display); font-size: 28px; color: var(--accent); }
.lo-list__title { font-family: "Inter", system-ui, sans-serif; font-size: 18px; font-weight: 500; margin: 0; }
.lo-list__title a { color: var(--contrast); text-decoration: none; }
.lo-list__title a:hover, .lo-grid__title a:hover { color: var(--accent); }

/* Footer */
.site-info { border-top: 8px solid var(--lo-yellow); background: var(--base-2); color: var(--contrast-2); font-size: 14px; }
.site-info .copyright-bar, .inside-site-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.lo-foot-brand { font-family: var(--lo-display); font-weight: 700; font-size: 22px; color: var(--contrast); }
.lo-foot-end { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.lo-foot-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.lo-foot-note, .lo-foot-copy { display: block; }

@media (max-width: 900px) {
	.lo-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.lo-une { padding-top: 40px; }
	.lo-band__media figure { max-width: 100px; }
	.lo-ticker:empty { min-height: 36px; }
	.lo-ticker .lc-bandeau { padding: 8px 16px; }
	.lo-ticker .lc-bandeau__liste { flex: 1 1 auto; min-width: 0; gap: 0 20px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
	.lo-ticker .lc-bandeau__item { flex: 0 0 auto; }
	.lo-ticker .lc-bandeau__maj { display: none; }
	.lo-pieces, .lo-guides, .lo-une, .lo-band__grid { padding-left: 16px; padding-right: 16px; }
}
.lc-bandeau, .lc-graphique { --lc-accent: var(--lo-gold); }
/* Fox Affiliate's .fox-link (loaded after Fox Blocks) must not restyle Fox Blocks CTA buttons. */
.fxb-cta-button.fox-link, .fxb-cta-button.fox-link:hover, .fxb-cta-button.fox-link:focus-visible { color: var(--fxb-on-accent, #fff); text-decoration: none; }
