/* Blog — blog.lespetitesmainsenchantees.fr
   Feuille autonome (pas de Tailwind) : reprend la charte de la boutique
   (caramel #b87c4c, creme #f5f0eb, sable #d4a574, Parisienne / Noto Sans / Open Sans).
   Mode sombre : classe .dark sur <html>, comme la boutique. */

:root {
  --primary: #b87c4c;
  --primary-ink: #8f5c34;
  --accent: #d4a574;
  --cream: #f5f0eb;
  --rose: #c94f72;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f0eb;
  --ink: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --line: #e9e1d8;
  --on-primary: #ffffff;
  --shadow: 0 1px 2px rgba(80,50,25,.06), 0 8px 24px -12px rgba(80,50,25,.18);
  --script: "Parisienne", cursive;
  --head: "Noto Sans", "Open Sans", system-ui, sans-serif;
  --body: "Open Sans", ui-sans-serif, system-ui, sans-serif;
}
html.dark {
  --primary: #d4a574; --primary-ink: #e2b98c; --accent: #b87c4c; --cream: #241d18; --rose: #e88aa2;
  --bg: #181310; --surface: #211a15; --surface-2: #241d18; --ink: #f3ece4; --text: #d9cfc4; --muted: #a3968a;
  --line: #3a2f27; --on-primary: #1c1510; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.2; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bandeau + en-tete */
.ribbon { background: #b87c4c; color: #fff; text-align: center; font-size: 13px; padding: 7px 16px; }
.ribbon a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand small { font-family: var(--script); font-size: 26px; color: var(--primary); line-height: 1; padding-top: 4px; }
nav.main { display: flex; gap: 26px; margin-inline: auto; }
nav.main a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); border-color: var(--primary); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .sun { display: none; }
html.dark .icon-btn .sun { display: block; }
html.dark .icon-btn .moon { display: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: 600 14px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, transform .2s; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-ink); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); }

/* Menu mobile : les rubriques passent sous l'en-tete, en defilement horizontal */
.mobile-nav { display: none; gap: 8px; overflow-x: auto; padding-block: 0 12px; scrollbar-width: none; }
.mobile-nav::-webkit-scrollbar { display: none; }

/* Messages (flash) */
.flashes { display: grid; gap: 8px; padding-block: 12px 0; }
.flash { border-radius: 12px; padding: 12px 16px; font-size: 14px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.flash.error { border-color: #e7a3a3; }
.flash.success { border-color: var(--accent); }

/* Heros */
.hero { background: var(--surface-2); position: relative; overflow: hidden; }
.hero .wrap { padding-block: 48px 56px; position: relative; }
.hero-title { text-align: center; margin-bottom: 36px; }
.hero-title .script { font-family: var(--script); font-weight: 400; font-size: clamp(46px, 8vw, 84px); color: var(--primary); line-height: 1.05; display: block; }
.hero-title p { margin: 10px auto 0; max-width: 52ch; color: var(--muted); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--accent); opacity: .5; }
.featured { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; }
.featured .media { background: var(--cream); min-height: 360px; position: relative; }
.featured .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.featured .body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.featured h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
.featured p { margin: 0; max-width: 48ch; }
.featured:hover h2 { color: var(--primary-ink); }
.featured .btn { align-self: flex-start; margin-top: 8px; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.vid-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--rose); }
.vid-badge svg { width: 15px; height: 15px; }

/* Liste */
section.list { padding-block: 56px 24px; }
.list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.list-head h1, .list-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 9px 16px; font: 500 14px/1 var(--body); text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--primary); }
.chip[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; background: var(--surface); min-width: 0; flex: 0 1 280px; color: var(--muted); }
.search input { border: 0; background: transparent; font: 15px var(--body); color: var(--ink); padding: 11px 0; width: 100%; outline: none; }
.search:focus-within { border-color: var(--primary); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.card .thumb { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--surface-2); position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.04); }
.card h3 { font-size: 19px; font-weight: 700; }
.card:hover h3 { color: var(--primary-ink); }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.play { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: #b8325a; border-radius: 999px; padding: 5px 11px 5px 8px; font: 600 12px/1 var(--body); display: flex; align-items: center; gap: 5px; }
.play svg { width: 14px; height: 14px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }

/* YouTube */
section.yt { padding-block: 48px; }
.yt-box { background: var(--surface-2); border-radius: 28px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 36px; align-items: center; }
.yt-box h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 6px; }
.yt-box p { margin: 12px 0 20px; }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.video { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.video .frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; position: relative; background: #2a211b; }
.video .frame img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video .frame span { position: absolute; inset: 0; display: grid; place-items: center; }
.yt-btn { width: 48px; height: 34px; border-radius: 9px; background: #e0245e; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.video strong { font: 700 14px/1.35 var(--head); color: var(--ink); }

/* Newsletter */
.news { padding-block: 56px 72px; text-align: center; }
.news h2 { font-family: var(--script); font-weight: 400; color: var(--primary); font-size: clamp(40px, 6vw, 56px); }
.news p { margin: 4px auto 22px; max-width: 46ch; }
.news form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin-inline: auto; }
.news input[type="email"] { flex: 1 1 240px; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font: 15px var(--body); background: var(--surface); color: var(--ink); }
.news input[type="email"]:focus { outline: none; border-color: var(--primary); }
.news small { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; }

/* Pied de page */
footer.site { background: var(--cream); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 44px; }
.foot img { width: 170px; }
.foot h4 { margin: 0 0 10px; font: 700 15px var(--head); color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--primary-ink); }
.social { display: inline-flex; gap: 8px; align-items: center; color: var(--rose); font-weight: 600; }
.legal { border-top: 1px solid var(--line); padding-block: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.legal a { text-decoration: none; }

/* Article */
.article { padding-block: 32px 24px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary-ink); text-decoration: none; margin-bottom: 22px; }
.a-head { max-width: 760px; margin-inline: auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.a-head h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.01em; }
.a-head .meta { justify-content: center; }
.a-cover { max-width: 980px; margin: 32px auto 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--surface-2); }
.a-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 680px; margin: 40px auto 0; font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 24px; font-weight: 700; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 1.6em 0 .5em; }
.prose .lead { font-size: 19px; color: var(--ink); }
.prose > p:first-child::first-letter { font-family: var(--script); font-size: 3.6em; float: left; line-height: .8; padding: 8px 10px 0 0; color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--primary); }
.prose a { color: var(--primary-ink); text-underline-offset: 3px; }
.prose img { border-radius: 16px; margin: 1.6em auto; height: auto; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--script); font-size: 30px; line-height: 1.3; color: var(--primary-ink); }
.prose pre { overflow-x: auto; background: var(--surface-2); border-radius: 12px; padding: 14px; font-size: 14px; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }

/* Video integree : rien n'est charge depuis YouTube avant le clic */
.player { margin: 2em 0; border-radius: 18px; overflow: hidden; background: #2a211b; aspect-ratio: 16 / 9; position: relative; }
.player button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.player button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.player .yt-btn { position: relative; width: 68px; height: 48px; border-radius: 14px; }
.player .note { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); text-align: left; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.callout { display: flex; gap: 18px; align-items: center; background: var(--surface-2); border-radius: 18px; padding: 18px; margin: 2em 0; text-decoration: none; }
.callout img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex: none; }
.callout div { display: grid; gap: 4px; }
.callout strong { font: 700 17px var(--head); color: var(--ink); }
.callout .price { color: var(--primary-ink); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.tags span { font-size: 13px; background: var(--surface-2); border-radius: 999px; padding: 5px 12px; color: var(--muted); }
.related { padding-block: 40px 24px; border-top: 1px solid var(--line); margin-top: 48px; }
.related h2 { font-size: 24px; margin-bottom: 22px; }
.preview-bar { background: #1e293b; color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }
.preview-bar a { color: #fff; font-weight: 600; }

@media (max-width: 960px) {
  .grid, .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yt-box { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  nav.main { gap: 18px; }
}
@media (max-width: 760px) {
  nav.main { display: none; }
  .mobile-nav { display: flex; }
  .bar { justify-content: space-between; min-height: 64px; }
  .brand img { height: 46px; }
  .brand small { display: none; }
  .shop-link span { display: none; }
  .shop-link { padding: 12px; }
  .featured { grid-template-columns: 1fr; }
  .featured .media { min-height: 0; aspect-ratio: 4 / 3; }
  .a-cover { aspect-ratio: 4 / 3; border-radius: 18px; }
}
@media (max-width: 560px) {
  .grid, .videos { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .callout { align-items: flex-start; }
  .callout img { width: 68px; height: 68px; }
  .search { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
