/* Beauté Maline — style B « Le nuancier » (maquette du 27/09/2026, en ligne le 28/09/2026).
   Échelle typographique (manuel §13) : 13 · 15 · 17 · 21 · 27 · 40 px (34 px pour le H1 sur téléphone).
   Graisses : 400 courant · 600 accent · 700 titres.
   Les sélecteurs de composants sont préfixés (.bm-…, deux classes) pour passer devant le
   mu-plugin typographie.php, qui force span/p en 400 avec une spécificité (0,1,1). */

:root{
  --bm-blanc:#FFFFFF;--bm-encre:#1E1915;--bm-gris:#5E5650;--bm-filet:#E2DDD8;--bm-panneau:#F3F3F1;
  --bm-bleu:#0B6AA8;--bm-bleu-f:#084E7C;--bm-bleu-clair:#E4EFF7;--bm-attache:#2B2522;--bm-pied:#DDD6D0
}
html{-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
a{text-underline-offset:3px;text-decoration-thickness:1px}
:where(.wp-site-blocks) :focus-visible{outline:3px solid var(--bm-encre);outline-offset:2px}
.bm-accueil *,.bm-accueil *::before,.bm-barre *,.bm-verdict *,.bm-pied *,.bm-archive *{box-sizing:border-box}
.bm-vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ── En-tête ─────────────────────────────────────────────── */
.wp-site-blocks > header{margin:0}
.bm-tete{border-bottom:1px solid var(--bm-filet);background:var(--bm-blanc)}
.bm-tete .bm-tete-env{max-width:1180px;margin:0 auto;padding:6px 16px;min-height:60px;gap:0 24px;align-items:center}
.bm-tete .wp-block-site-title{margin:0;font-size:21px;font-weight:700;line-height:1.2}
.bm-tete .wp-block-site-title a{display:flex;align-items:center;gap:10px;color:var(--bm-encre);text-decoration:none}
.bm-tete .wp-block-site-title a::before{content:"";flex:none;width:34px;height:34px;border-radius:50%;background:url(logo-miroir-96.webp) center/cover no-repeat}
.bm-tete .bm-menu{max-width:100%;overflow-x:auto;scrollbar-width:none}
.bm-tete .bm-menu::-webkit-scrollbar{display:none}
.bm-tete .bm-menu .wp-block-navigation__container{gap:18px;flex-wrap:nowrap;white-space:nowrap}
.bm-tete .bm-menu .wp-block-navigation-item__content{display:inline-block;padding:8px 0;font-size:15px;font-weight:600;color:var(--bm-encre);text-decoration:none}
.bm-tete .bm-menu .wp-block-navigation-item__content:hover{color:var(--bm-bleu)}
.bm-tete .bm-menu .current-menu-item > .wp-block-navigation-item__content{color:var(--bm-bleu)}
@media (max-width:699px){.bm-tete .bm-tete-env{padding:4px 16px 0}.bm-tete .bm-menu{width:100%}}

/* ── Briques communes : étiquette, boutons, prix, mention ─────── */
.wp-site-blocks .bm-etq,.bm-barre .bm-etq,.bm-verdict .bm-etq{display:block;margin:0 0 6px;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--bm-bleu);line-height:1.4}
.wp-site-blocks .bm-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:14px 20px;border-radius:8px;background:var(--bm-bleu);color:#fff;font-size:17px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none}
.wp-site-blocks .bm-btn:hover,.wp-site-blocks .bm-btn:focus-visible{background:var(--bm-bleu-f);color:#fff}
.bm-btn-s{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:8px;background:var(--bm-bleu);color:#fff!important;font-size:15px;font-weight:700;line-height:1.2;text-decoration:none!important;white-space:nowrap}
.bm-btn-s:hover{background:var(--bm-bleu-f)}
.wp-site-blocks .bm-mention{margin:8px 0 0;font-size:13px;line-height:1.45;color:var(--bm-gris)}
.wp-site-blocks .bm-prixligne{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 10px}
.wp-site-blocks .bm-prix{font-size:27px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--bm-encre)}
.wp-site-blocks .bm-date{font-size:13px;color:var(--bm-gris)}

/* ── Accueil ─────────────────────────────────────────────── */
.bm-accueil{max-width:1180px;margin:0 auto;padding:0 16px;color:var(--bm-encre)}
.bm-accueil .bm-hero{padding:12px 0 0}
.bm-accueil h1{margin:0 0 8px;font-size:34px;line-height:1.1}
.bm-accueil .bm-chapo{margin:0 0 6px;max-width:600px;font-size:17px;line-height:1.5}
.bm-accueil .bm-hero > .bm-mention{margin:0 0 12px;max-width:600px}
/* Le nuancier : des mèches à toucher, qui défilent au pouce sur téléphone */
.bm-nuancier{margin:0;padding:0;border:0;min-width:0}
.bm-rangee{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 8px;scrollbar-width:none}
.bm-rangee::-webkit-scrollbar{display:none}
.bm-ech{position:relative;display:block;flex:0 0 27%;scroll-snap-align:start;padding:0 4px 6px;border-radius:6px;cursor:pointer;text-align:left}
.bm-ech::before{content:"";position:absolute;left:-5px;right:-5px;top:7px;height:2px;background:var(--bm-attache);z-index:0}
.bm-ech img{position:relative;z-index:1;display:block;width:100%;height:72px;object-fit:contain;object-position:center top}
.bm-ech input{position:absolute;inset:0;z-index:2;margin:0;opacity:0;cursor:pointer}
.wp-site-blocks .bm-ech .bm-no{display:block;margin-top:4px;font-size:13px;font-weight:600;color:var(--bm-gris)}
.bm-ech b{display:block;font-size:15px;line-height:1.25;font-weight:700}
.bm-ech:has(input:checked){background:var(--bm-bleu-clair);box-shadow:0 0 0 2px var(--bm-bleu)}
.bm-ech:has(input:checked) b{color:var(--bm-bleu-f)}
.bm-ech:has(input:focus-visible){outline:3px solid var(--bm-encre);outline-offset:2px}
.wp-site-blocks .bm-glisse{margin:2px 0 0;font-size:13px;color:var(--bm-gris)}
/* La recommandation : une seule visible, celle de la mèche cochée (sans script) */
.bm-reco{margin:10px 0 0;padding:12px 0 0;border-top:2px solid var(--bm-encre)}
.bm-reco-item{display:none}
.bm-ttm:has(input[value="fins"]:checked) .bm-reco-item[data-m="fins"],
.bm-ttm:has(input[value="decolores"]:checked) .bm-reco-item[data-m="decolores"],
.bm-ttm:has(input[value="boucles"]:checked) .bm-reco-item[data-m="boucles"],
.bm-ttm:has(input[value="courts"]:checked) .bm-reco-item[data-m="courts"],
.bm-ttm:has(input[value="volume"]:checked) .bm-reco-item[data-m="volume"],
.bm-ttm:has(input[value="epais"]:checked) .bm-reco-item[data-m="epais"]{display:block}
@supports not selector(:has(a)){.bm-reco-item:first-child{display:block}}
.wp-site-blocks .bm-reco-nom{margin:0 0 4px;font-size:21px;font-weight:700;line-height:1.12;letter-spacing:-.015em}
.wp-site-blocks .bm-pq{margin:0 0 10px;font-size:15px;line-height:1.45}
.wp-site-blocks .bm-liens{margin:10px 0 0;font-size:15px}
.bm-liens a{color:var(--bm-bleu);font-weight:700}
@media (min-width:700px){
  .bm-rangee{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 10px;overflow:visible}
  .bm-ech img{height:auto;aspect-ratio:100/126}
  .wp-site-blocks .bm-glisse{display:none}
}
@media (min-width:900px){
  .bm-accueil .bm-hero{padding-top:34px}
  .bm-accueil h1{font-size:40px;max-width:760px}
  .bm-ttm{display:grid;grid-template-columns:minmax(0,1fr) 360px;column-gap:48px;align-items:start;margin-top:8px}
  .bm-reco{margin:0;padding:18px;border:2px solid var(--bm-encre);border-radius:10px;position:sticky;top:16px}
  .wp-site-blocks .bm-reco-nom{font-size:27px}
}
/* Les problèmes courants, dans les mots de la lectrice */
.bm-problemes{margin:44px 0 0}
.bm-problemes h2,.bm-rubrique h2,.bm-promesse h2{margin:0 0 12px;font-size:27px}
.bm-pbs{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.bm-pbs li{margin:0}
.bm-pbs a{display:block;height:100%;padding:14px 16px;border:1px solid var(--bm-filet);border-radius:10px;color:var(--bm-encre);text-decoration:none;background:var(--bm-blanc)}
.bm-pbs a:hover{border-color:var(--bm-bleu);box-shadow:0 0 0 1px var(--bm-bleu)}
.bm-pbs b{display:block;font-size:17px;line-height:1.3}
.wp-site-blocks .bm-pbs .bm-rep{display:block;margin-top:6px;font-size:15px;color:var(--bm-gris);line-height:1.4}
.wp-site-blocks .bm-pbs .bm-lire{display:block;margin-top:6px;font-size:15px;font-weight:700;color:var(--bm-bleu)}
@media (min-width:700px){.bm-pbs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){.bm-pbs{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Les rubriques et leurs nuanciers */
.bm-rubriques{margin:48px 0 0}
.bm-rubrique{padding:24px 0;border-top:1px solid var(--bm-filet)}
.bm-rubrique:first-child{border-top:2px solid var(--bm-encre)}
.bm-rubrique h2 a{color:var(--bm-encre);text-decoration:none}
.bm-rubrique h2 a:hover{color:var(--bm-bleu)}
.bm-puces{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 6px}
.wp-site-blocks .bm-puces span{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:44px;height:58px;padding:0 4px 5px;border:1px solid rgba(0,0,0,.12);border-radius:6px;font-size:13px;font-weight:700;color:var(--bm-encre)}
.wp-site-blocks .bm-puces.bm-peau span:nth-child(n+5){color:#fff}
.bm-puces span.bm-non{outline:2px dashed var(--bm-encre);outline-offset:2px}
.wp-site-blocks .bm-puces.bm-lum span{min-width:74px;max-width:96px;height:auto;min-height:58px;padding-top:6px;font-weight:600;line-height:1.2;text-align:center}
.wp-site-blocks .bm-puces.bm-nm span{min-width:86px;color:#fff;font-weight:600;line-height:1.2;text-align:center}
.bm-mini-meches{display:flex;gap:8px;margin:12px 0 8px}
.bm-mini-meches img{display:block;width:44px;height:auto}
.wp-site-blocks .bm-cap{margin:0 0 12px;font-size:13px;line-height:1.45;color:var(--bm-gris)}
.bm-arts{list-style:none;margin:0;padding:0}
.bm-arts li{margin:0;padding:10px 0;border-top:1px dashed var(--bm-filet)}
.bm-arts a{display:block;font-size:17px;font-weight:700;line-height:1.3;color:var(--bm-encre);text-decoration:none}
.bm-arts a:hover{color:var(--bm-bleu)}
.wp-site-blocks .bm-arts span{display:block;font-size:15px;color:var(--bm-gris)}
@media (min-width:900px){.bm-rubrique{display:grid;grid-template-columns:360px minmax(0,1fr);column-gap:56px}}
/* La promesse */
.bm-promesse{margin:40px 0 0}
.bm-promesse ul{list-style:none;margin:0;padding:0;display:grid;gap:0 28px}
.bm-promesse li{margin:0;padding:12px 0;border-top:1px solid var(--bm-filet);font-size:15px}
.bm-promesse b{display:block;font-size:17px}
.wp-site-blocks .bm-tous{margin:28px 0 0;font-size:17px}
.bm-tous a{font-weight:700}
@media (min-width:900px){.bm-promesse ul{grid-template-columns:repeat(3,1fr)}}

/* ── Article ─────────────────────────────────────────────── */
.bm-article{max-width:1180px;margin:0 auto;padding:14px 16px 0}
.bm-article .bm-art-t{margin:0}
.wp-site-blocks .bm-fil{margin:0 0 8px;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.bm-fil a{color:var(--bm-bleu);text-decoration:none}
.bm-article .bm-titre{margin:0 0 10px;font-size:34px;line-height:1.12}
.bm-article .bm-meta{gap:.3em;margin:0 0 14px;font-size:15px;color:var(--bm-gris)}
.bm-article .bm-meta p{margin:0}
.bm-article .bm-meta a{color:var(--bm-encre)}
.bm-article .bm-une{margin:0 0 18px}
.bm-article .bm-une img{border-radius:10px}
.bm-corps{font-size:17px;line-height:1.55}
.bm-corps > *{max-width:100%}
.bm-corps h2{margin-top:40px;margin-bottom:12px}
.bm-corps h3{margin-top:28px;margin-bottom:8px}
.bm-corps p{margin-top:0;margin-bottom:14px}
.bm-corps ul,.bm-corps ol{padding-left:22px}
.bm-corps li{margin:0 0 6px}
.bm-corps figure img{border-radius:10px;height:auto}
.bm-corps figcaption{font-size:13px;color:var(--bm-gris)}
.bm-verdict-col{display:none}
@media (min-width:900px){
  .bm-article{display:grid;grid-template-columns:minmax(0,1fr) 340px;column-gap:56px;padding-top:26px}
  .bm-article .bm-art-t,.bm-article .bm-corps{grid-column:1}
  .bm-article .bm-titre{font-size:40px}
  .bm-verdict-col{display:block;grid-column:2;grid-row:1 / span 2}
  .bm-verdict{position:sticky;top:16px;padding:18px;border:2px solid var(--bm-encre);border-radius:10px;background:var(--bm-blanc)}
}
.wp-site-blocks .bm-verdict-nom{margin:0 0 8px;font-size:21px;font-weight:700;line-height:1.2}

/* Tableaux : lisibles, et en cartes sur téléphone (tableaux.js pose data-label) */
.wp-block-post-content table{font-size:15px;line-height:1.4}
.wp-block-post-content th{font-weight:700}
@media (max-width:699px){
  .wp-block-post-content table.bm-tab-cartes thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .wp-block-post-content table.bm-tab-cartes,.wp-block-post-content table.bm-tab-cartes tbody,
  .wp-block-post-content table.bm-tab-cartes tr,.wp-block-post-content table.bm-tab-cartes td{display:block;width:100%;box-sizing:border-box}
  .wp-block-post-content table.bm-tab-cartes tr{margin:0 0 10px;padding:10px 12px;border:1px solid var(--bm-filet);border-radius:8px}
  .wp-block-post-content table.bm-tab-cartes td{padding:3px 0!important;border:0!important;text-align:left!important}
  .wp-block-post-content table.bm-tab-cartes td:first-child{padding-bottom:6px!important;font-size:17px}
  .wp-block-post-content table.bm-tab-cartes td[data-label]::before{content:attr(data-label) " : ";color:var(--bm-gris);font-size:13px}
}

/* Les articles et les pages portent leurs couleurs écrites en dur (palette framboise du
   21/09). Sans toucher au contenu, on les ramène à la palette du nuancier. Inventaire et
   réécriture propre : étape séparée, avec marche à blanc (voir le journal du 28/09). */
.wp-block-post-content [style*="font-family:Manrope" i]{font-family:inherit!important}
.wp-block-post-content [style*="background:#FDF2F8" i]{background:var(--bm-panneau)!important}
.wp-block-post-content [style*="border:1px solid #FBCFE8" i]{border-color:var(--bm-filet)!important}
.wp-block-post-content [style*="border-bottom:1px solid #FBCFE8" i]{border-bottom-color:var(--bm-filet)!important}
.wp-block-post-content [style*="border-top:1px solid #FBCFE8" i]{border-top-color:var(--bm-filet)!important}
.wp-block-post-content [style*="border-bottom:2px solid #BE185D" i]{border-bottom-color:var(--bm-encre)!important}
.wp-block-post-content [style*="border-left:4px solid #BE185D" i]{border-left-color:var(--bm-bleu)!important}
.wp-block-post-content [style*="border:1px solid #BE185D" i]{border-color:var(--bm-bleu)!important}
.wp-block-post-content [style*="color:#BE185D" i]{color:var(--bm-bleu)!important}
.wp-block-post-content [style*="color:#831843" i]{color:var(--bm-encre)!important}
.wp-block-post-content [style*="color:#A8A29E" i]{color:var(--bm-gris)!important}
.wp-block-post-content [style*="background:#BE185D" i]{background:var(--bm-bleu)!important;color:#fff!important}
.wp-block-post-content a[style*="background:#831843" i]{background:var(--bm-bleu-f)!important;color:#fff!important}
.wp-block-post-content div[style*="background:#831843" i]{background:var(--bm-encre)!important}
.wp-block-post-content [style*="background:#831843" i] [style*="color:#FBCFE8" i]{color:var(--bm-bleu-clair)!important}
.wp-block-post-content [style*="color:#FDF2F8" i]{color:var(--bm-panneau)!important}
.wp-block-post-content a[style*="background:#BE185D" i],.wp-block-post-content a[style*="background:#831843" i]{border-radius:8px!important;font-weight:700}

/* ── Barre d'achat collante (téléphone) ──────────────────── */
.bm-barre{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:center;padding:8px 16px 7px;background:var(--bm-blanc);border-top:2px solid var(--bm-encre);font-family:var(--wp--preset--font-family--familjen-grotesk);color:var(--bm-encre)}
.bm-barre .bm-barre-nom{display:block;overflow:hidden;font-size:15px;font-weight:700;line-height:1.25;white-space:nowrap;text-overflow:ellipsis}
.bm-barre .bm-barre-prix{display:block;font-size:13px;font-weight:400;color:var(--bm-gris)}
.bm-barre .bm-barre-mention{grid-column:1 / -1;margin:3px 0 0;font-size:13px;line-height:1.3;color:var(--bm-gris)}
body.bm-avec-barre{padding-bottom:104px}
@media (min-width:900px){.bm-barre{display:none}body.bm-avec-barre{padding-bottom:0}}

/* ── Pied de page ────────────────────────────────────────── */
.wp-site-blocks > footer{margin-top:0}
.bm-pied{margin-top:56px;padding:30px 16px 32px;background:var(--bm-encre);color:var(--bm-pied);font-size:15px;line-height:1.55}
.bm-pied-env{max-width:1148px;margin:0 auto;display:grid;gap:26px}
.bm-pied a{color:#fff}
.bm-pied .bm-pied-logo{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:21px;font-weight:700;text-decoration:none}
.bm-pied .bm-pied-logo::before{content:"";flex:none;width:34px;height:34px;border-radius:50%;background:url(logo-miroir-96.webp) center/cover no-repeat}
.bm-pied p{margin:0;max-width:520px}
.wp-site-blocks .bm-pied .bm-pied-t{margin:0 0 10px;font-size:15px;font-weight:700;color:#fff}
.bm-pied ul{list-style:none;margin:0;padding:0}
.bm-pied li{margin:0 0 8px}
.bm-pied li a{color:var(--bm-pied);text-decoration:none}
.bm-pied li a:hover{color:#fff;text-decoration:underline}
.bm-pied .bm-pied-mention{max-width:1148px;margin:26px auto 0;padding-top:18px;border-top:1px solid #3A322D;font-size:13px}
@media (min-width:800px){.bm-pied-env{grid-template-columns:minmax(0,1.4fr) 1fr 1fr;gap:40px}}
/* Le lien « Une erreur à signaler ? » (mu-plugin pied-contact.php) suit le pied de page : même fond. */
body > div:has(> a[href$="/contact/"]){background:var(--bm-encre);max-width:none!important;padding-top:0!important;padding-bottom:22px!important}
body > div:has(> a[href$="/contact/"]) a{color:var(--bm-pied)!important;font-size:13px!important}

/* ── Rubriques et page d'autrice (archive.html) : des cartes, plus des articles entiers ── */
.bm-archive{max-width:1180px;margin:0 auto;padding:18px 16px 0}
.bm-archive .bm-archive-titre{margin:0 0 10px;font-size:34px}
.bm-archive .bm-archive-desc{max-width:680px;margin:0 0 24px;font-size:17px;color:var(--bm-gris)}
.bm-archive .bm-archive-desc p{margin:0 0 10px}
.bm-archive .bm-cartes{display:grid;gap:28px;margin:0;padding:0;list-style:none;border-top:2px solid var(--bm-encre);padding-top:20px}
.bm-archive .bm-cartes > li{margin:0!important}
.bm-archive .bm-carte{margin:0}
.bm-archive .bm-carte .wp-block-post-featured-image{margin:0 0 10px}
.bm-archive .bm-carte img{border-radius:10px}
.bm-archive .bm-carte h2{margin:0 0 6px;font-size:21px;line-height:1.2}
.bm-archive .bm-carte h2 a{color:var(--bm-encre);text-decoration:none}
.bm-archive .bm-carte h2 a:hover{color:var(--bm-bleu)}
.bm-archive .bm-carte .wp-block-post-excerpt__excerpt{margin:0;font-size:15px;line-height:1.45;color:var(--bm-gris)}
.bm-archive .wp-block-query-pagination{margin:28px 0 0;font-size:15px}
@media (min-width:700px){.bm-archive .bm-cartes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){.bm-archive{padding-top:30px}.bm-archive .bm-archive-titre{font-size:40px}.bm-archive .bm-cartes{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ── Encadré en tête d'article vers la page problème du même sujet (28/09/2026) ── */
.wp-block-post-content .bm-vers-pb{margin:0 0 22px}
.wp-block-post-content .bm-vers-pb a{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding:12px 16px;border:2px solid var(--bm-bleu);border-radius:8px;background:var(--bm-bleu-clair);color:var(--bm-bleu-f);font-size:15px;font-weight:700;line-height:1.35;text-decoration:none}
.wp-block-post-content .bm-vers-pb a:hover,.wp-block-post-content .bm-vers-pb a:focus-visible{background:var(--bm-blanc)}
.wp-block-post-content .bm-vers-pb b{font-size:17px;font-weight:700;color:var(--bm-encre)}
