/*
Theme Name: Diamant Leger
Description: Thème maison léger du Diamant mandarin. Remplace Astra et Astra Pro. Sans framework, sans dépendance premium. Charte : or, orange, marron, beige ; Brawler, Urbanist, Bayon ; grands arrondis.
Author: MyGoodSite
Version: 0.1.11
Requires PHP: 8.0
Text Domain: diamant-leger
*/

/* Polices servies en local (fichiers repris d'astra-local-fonts) */
/* latin */
@font-face {
  font-family: 'Bayon';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bayon/9XUrlJNmn0LPFm-uMBc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Brawler';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/brawler/xn7gYHE3xXewAscGggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/urbanist/L0xjDF02iFML4hGCyOCpRdycFsGxSrqD-R4vH5mqe8Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/urbanist/L0xjDF02iFML4hGCyOCpRdycFsGxSrqD-R4vEZmq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Couleurs globales Astra, toujours utilisées par les blocs Spectra des contenus */
	--ast-global-color-0: #ffbd3f; --ast-global-color-1: #ffa700; --ast-global-color-2: #3e1d00; --ast-global-color-3: #3f2e1f;
	--ast-global-color-4: #ffffff; --ast-global-color-5: #fefaee; --ast-global-color-6: #3e1d00; --ast-global-color-7: #160b00; --ast-global-color-8: #111111;
	--ld-or: #ffbd3f; --ld-orange: #ffa700; --ld-marron: #3e1d00; --ld-marron-clair: #3f2e1f; --ld-beige: #fefaee; --ld-blanc: #fff;
	--ld-lien: #7a4300;   /* marron doré : contraste AA sur blanc et beige */
	--ld-largeur: 1200px; --ld-rayon: 40px; --ld-rayon-petit: 18px;
	--ld-titres: "Brawler", Georgia, serif; --ld-texte: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif; --ld-boutons: "Bayon", "Urbanist", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ld-marron-clair); font: 400 17px/1.65 var(--ld-texte); }
img, video, iframe, svg { max-width: 100%; height: auto; }
a { color: var(--ld-lien); text-decoration-color: var(--ld-or); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ld-marron); text-decoration-color: var(--ld-orange); }
:focus-visible { outline: 3px solid var(--ld-orange); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ld-titres); color: var(--ld-marron); font-weight: 400; line-height: 1.25; margin: 1.3em 0 .55em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p, ul, ol, figure, table, blockquote { margin: 0 0 1.1em; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid #efe4c8; padding: .5em .6em; text-align: left; }
blockquote { border-left: 4px solid var(--ld-or); padding: .3em 1.2em; background: var(--ld-beige); border-radius: 0 var(--ld-rayon-petit) var(--ld-rayon-petit) 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ld-evitement { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ld-marron); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0; }
.ld-evitement:focus { left: 0; }
.ld-cadre { width: 100%; max-width: calc(var(--ld-largeur) + 32px); margin: 0 auto; padding: 0 16px; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

/* Boutons */
.ld-bouton, .wp-block-button__link, .wpcf7-submit, .button, button.button, input[type=submit], .woocommerce a.button, .woocommerce button.button {
	display: inline-block; font: 400 1.15rem/1 var(--ld-boutons); letter-spacing: .03em; padding: 13px 28px; border: 2px solid var(--ld-marron);
	border-radius: 50px; background: transparent; color: var(--ld-marron); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.ld-bouton:hover, .wp-block-button__link:hover, .wpcf7-submit:hover, .button:hover, input[type=submit]:hover { background: var(--ld-orange); color: var(--ld-marron); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button { background: var(--ld-or); }

/* En-tête */
.ld-entete { background: #fff; border-bottom: 1px solid #f3e6c4; position: sticky; top: 0; z-index: 30; }
.admin-bar .ld-entete { top: 32px; }
.ld-entete-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.ld-marque img { display: block; width: 72px; height: auto; }
.ld-navigation { display: flex; align-items: center; gap: 22px; }
.ld-menu, .ld-menu ul { list-style: none; margin: 0; padding: 0; }
.ld-menu { display: flex; flex-wrap: wrap; align-items: center; }
.ld-menu li { position: relative; }
.ld-menu a { display: block; padding: 12px 14px; color: var(--ld-marron); font-weight: 600; text-decoration: none; }
.ld-menu > li > a:hover, .ld-menu > .current-menu-item > a, .ld-menu > .current-menu-ancestor > a { color: var(--ld-lien); box-shadow: inset 0 -3px var(--ld-or); }
.ld-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border-radius: var(--ld-rayon-petit); box-shadow: 0 14px 34px rgb(62 29 0 / .14); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.ld-menu .sub-menu .sub-menu { left: 100%; top: 0; }
.ld-menu li:hover > .sub-menu, .ld-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ld-menu .sub-menu a { font-weight: 500; padding: 9px 12px; border-radius: 12px; }
.ld-menu .sub-menu a:hover { background: var(--ld-beige); }
.ld-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 0 0 3px 8px; }
.ld-bouton-entete { font-size: 1.05rem; padding: 11px 22px; white-space: nowrap; }
.ld-menu-bouton { display: none; align-items: center; gap: 8px; border: 2px solid var(--ld-marron); background: #fff; color: var(--ld-marron); border-radius: 50px; padding: 9px 16px; font: 400 1.05rem var(--ld-boutons); cursor: pointer; }
.ld-burger, .ld-burger::before, .ld-burger::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.ld-burger::before, .ld-burger::after { content: ""; position: absolute; left: 0; }
.ld-burger::before { top: -6px; } .ld-burger::after { top: 6px; }

/* Contenu */
.ld-contenu { padding: 26px 0 56px; }
.ld-fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .9rem; }
.ld-fil li + li::before { content: "»"; margin-right: 6px; color: var(--ld-orange); }
.ld-fil a { color: var(--ld-marron-clair); }
.ld-titre { margin-top: .2em; }
.ld-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ld-marron-clair); }
.ld-meta img.avatar { border-radius: 50%; margin-right: 4px; }
.ld-image-une { margin: 18px 0 26px; }
.ld-image-une img { width: 100%; border-radius: var(--ld-rayon); aspect-ratio: 4 / 3; object-fit: cover; }
.ld-article .ld-texte, .ld-article-tete { max-width: 820px; margin-left: auto; margin-right: auto; }
.ld-texte > :first-child { margin-top: 0; }
.table-des-matieres { background: var(--ld-beige); border: 2px solid var(--ld-or); border-radius: var(--ld-rayon-petit); padding: 16px 22px; margin-bottom: 1.6em; }
.table-des-matieres h2 { font-size: 1.25rem; margin-top: 0; }
.table-des-matieres ul { margin: 0; padding-left: 1.2em; }
.ld-nav-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 40px auto; }
.ld-nav-articles a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: var(--ld-rayon-petit); background: var(--ld-beige); text-decoration: none; color: var(--ld-marron); }
.ld-nav-suiv { text-align: right; grid-column: 2; }
.ld-nav-titre { font-family: var(--ld-titres); }
.ld-similaires { margin-top: 30px; }
.ld-cartes { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ld-cartes-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ld-carte { background: var(--ld-beige); border-radius: var(--ld-rayon); overflow: hidden; padding-bottom: 18px; display: flex; flex-direction: column; }
.ld-carte > :not(.ld-carte-image) { padding: 0 22px; }
.ld-carte-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ld-carte-titre { font-size: 1.25rem; margin: 16px 0 6px; }
.ld-carte-titre a { color: var(--ld-marron); text-decoration: none; }
.ld-carte-titre a:hover { text-decoration: underline; text-decoration-color: var(--ld-or); }
.ld-carte .ld-meta { font-size: .85rem; font-weight: 500; }
.ld-lire { margin-top: auto; }
.ld-lire a { font: 400 1.05rem var(--ld-boutons); text-decoration: none; }
.ld-avec-colonne { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.ld-colonne .widget { background: var(--ld-beige); border-radius: var(--ld-rayon-petit); padding: 18px 20px; margin-bottom: 22px; }
.ld-colonne h2 { font-size: 1.2rem; margin-top: 0; }
.ld-colonne ul, .ld-colonne ol { padding-left: 1.1em; }
.ld-banniere { background: var(--ld-beige) var(--ld-banniere, none) center / cover; text-align: center; padding: 34px 0 22px; position: relative; }
.ld-banniere::before { content: ""; position: absolute; inset: 0; background: rgb(254 250 238 / .82); }
.ld-banniere .ld-cadre { position: relative; }
.ld-banniere h1 { font-family: var(--ld-boutons); font-size: clamp(2rem, 1.2rem + 4vw, 4.4rem); margin: 0; letter-spacing: .02em; }
.ld-banniere .ld-fil ol { justify-content: center; margin: 8px 0 0; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 50px; border: 2px solid var(--ld-or); text-decoration: none; color: var(--ld-marron); }
.nav-links .current { background: var(--ld-or); }

/* Formulaires */
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], textarea, select {
	width: 100%; max-width: 100%; padding: 11px 14px; border: 1.5px solid #d9c59a; border-radius: 14px; font: inherit; background: #fff; color: var(--ld-marron); }
textarea { min-height: 140px; }
label { font-weight: 600; color: var(--ld-marron); }
.ld-commentaires { max-width: 820px; margin: 40px auto 0; }
.ld-commentaires-liste { padding-left: 0; list-style: none; }
.ld-commentaires-liste .comment-body { background: var(--ld-beige); border-radius: var(--ld-rayon-petit); padding: 16px 20px; margin-bottom: 14px; }
.ld-commentaires-liste .avatar { border-radius: 50%; float: left; margin-right: 12px; }

/* Pied de page */
.ld-pied { background: var(--ld-marron); color: #f3e7cf; }
.ld-pied a { color: #ffe0a3; }
.ld-pied a:hover { color: #fff; }
.ld-pied-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 30px; padding-top: 44px; padding-bottom: 30px; }
.ld-pied h2 { color: var(--ld-or); font-size: 1.2rem; margin-top: 0; }
.ld-pied ul { list-style: none; padding: 0; margin: 0 0 18px; }
.ld-pied li { padding: 4px 0; }
.ld-copyright { background: var(--ld-marron-clair); font-size: .9rem; }
.ld-copyright p { margin: 0; padding: 14px 0; }

/* WooCommerce */
.ld-woo .woocommerce-breadcrumb { font-size: .9rem; margin-bottom: 14px; }
.ld-woo ul.products { list-style: none; padding: 0; }

/* Téléphone */
@media (max-width: 1100px) {
	.ld-menu-bouton { display: inline-flex; }
	.ld-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 20px; box-shadow: 0 16px 30px rgb(62 29 0 / .12); max-height: calc(100vh - 80px); overflow: auto; }
	.ld-navigation.ld-ouvert { display: flex; }
	.ld-menu { flex-direction: column; align-items: stretch; }
	.ld-menu a { border-bottom: 1px solid #f3e6c4; }
	.ld-menu .sub-menu, .ld-menu .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
	.ld-bouton-entete { text-align: center; margin-top: 12px; }
	.ld-avec-colonne { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) { .admin-bar .ld-entete { top: 46px; } }
@media (max-width: 640px) {
	body { font-size: 16px; }
	.ld-nav-articles { grid-template-columns: 1fr; }
	.ld-nav-suiv { grid-column: 1; text-align: left; }
	.ld-image-une img, .ld-carte { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Contenus Spectra : préfixes et descriptions en or/orange sur fond clair → marron doré lisible (contraste AA) */
.uagb-ifb-title-prefix, .uagb-desc-text, .uagb-ifb-desc { color: var(--ld-marron-clair) !important; }
.ld-colonne a, .wp-block-latest-posts__post-title, .wp-block-latest-comments__comment-link { color: var(--ld-lien); }

/* Identité d'origine : fond beige partout, boutons Bayon en capitales (Bayon n'a pas de minuscules accentuées) */
body, .ld-entete { background: var(--ld-beige); }
.ld-carte, .ld-nav-articles a, .table-des-matieres, .ld-colonne .widget, .ld-commentaires-liste .comment-body { background: #fff; }
.ld-banniere { background-color: #fff; }
.ld-bouton, .wp-block-button__link, .wpcf7-submit, .button, input[type=submit], .ld-menu-bouton, .ld-lire a { text-transform: uppercase; }
.ld-menu .sub-menu { background: #fff; }

/* Blocs Spectra « pleine largeur » : de bord à bord sans défilement horizontal */
html, body { overflow-x: clip; }
.ld-texte > .alignfull, .ld-texte > .wp-block-uagb-container.alignfull { width: auto !important; max-width: none !important; margin-left: -16px !important; margin-right: -16px !important; }
@media (min-width: 1233px) { .ld-texte > .alignfull, .ld-texte > .wp-block-uagb-container.alignfull { margin-left: calc((100vw - 1200px) / -2) !important; margin-right: calc((100vw - 1200px) / -2) !important; } }
/* Titres comme sous Astra : Brawler gras en capitales */
.ld-titre, .ld-texte h1, .ld-texte h2, .ld-banniere h1 { text-transform: uppercase; font-weight: 700; }
.table-des-matieres h2 { text-transform: none; }

/* Liens VolièrePro (02/12/2026) */
.ld-encadre-vp { background: var(--ld-beige, #fefaee); border: 2px solid var(--ld-or, #ffbd3f); border-radius: 40px; padding: 18px 28px; margin: 32px 0; }
.ld-encadre-vp p { margin: 0; }
.ld-produit-cat{display:block;font-size:.85em;color:#3f2e1f;margin:.5em 0 .2em}
