/* Site public — trois couleurs (variables posées sur <body> : --c1, --c2, --c3 et leurs teintes),
   titres en Grandstander, texte en Nunito. Chaque rubrique reçoit --strong / --tint / --ink-on / --text. */

@font-face { font-family: "Grandstander"; src: url("fonts/grandstander.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("fonts/caveat-brush.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("fonts/patrick-hand.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff") format("woff"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-italic.woff") format("woff"); font-weight: 200 1000; font-style: italic; font-display: swap; }

:root {
  --ink: #2D3047;
  --muted: #4A4D63;
  --soft: #5B5E73;
  --line: #ECE8E1;
  --paper: #FFFFFF;
  --display: "Grandstander", "Baloo 2", ui-rounded, "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* valeurs de secours (remplacées par les réglages du site) */
  --c1: #0B6E77; --c1-tint: #E2EEEF; --c1-ink: #FFFFFF; --c1-text: #0B6E77;
  --c2: #FFC93C; --c2-tint: #FFF2D0; --c2-ink: #2D3047; --c2-text: #8F6F22;
  --c3: #F4A38F; --c3-tint: #FCE9E4; --c3-ink: #2D3047; --c3-text: #946356;
  --cream: #FFF8E6;
  --strong: var(--c1); --tint: var(--c1-tint); --ink-on: var(--c1-ink); --text: var(--c1-text);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--c1-text); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--paper); padding: 10px 16px; border-radius: 10px; }
mark.hl { background: var(--c2); color: var(--c2-ink); padding: 0 .2em; border-radius: .35em .15em .4em .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.squiggle, .title-line { display: block; color: var(--c3); margin-top: 4px; }

/* ---------- en-tête */
.site-header { position: relative; z-index: 20; background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--brand-font, var(--display)); font-weight: var(--brand-weight, 700); font-size: calc(32px * var(--brand-scale, 1)); letter-spacing: var(--brand-spacing, 0); }
.brand-font-caveat { --brand-font: "Caveat Brush", var(--display); --brand-weight: 400; --brand-spacing: .01em; --brand-boost: 1.18; }
.brand-font-patrick { --brand-font: "Patrick Hand", var(--display); --brand-weight: 400; --brand-spacing: .01em; --brand-boost: 1.12; }
.brand-size-normal { --brand-scale: calc(1 * var(--brand-boost, 1)); }
.brand-size-grand { --brand-scale: calc(1.4 * var(--brand-boost, 1)); }
.brand-size-tres-grand { --brand-scale: calc(1.85 * var(--brand-boost, 1)); }
.brand-size-grand .brand-line, .brand-size-tres-grand .brand-line { width: 130px; }
.brand-line { color: var(--c2); width: 96px; height: 12px; margin-top: 2px; }
.brand-tag { font-size: 14px; color: var(--soft); margin-top: 4px; }
.menu-btn { display: none; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink); transition: background .15s; }
.main-nav > ul > li > a:hover { background: var(--tint); }
.main-nav > ul > li.is-current > a { background: var(--tint); box-shadow: inset 0 -3px 0 var(--strong); border-radius: 12px 12px 6px 6px; }
.main-nav > ul > li.nav-contact > a { background: var(--c1); color: var(--c1-ink); padding: 9px 18px; margin-left: 6px; font-weight: 800; box-shadow: none; border-radius: 999px; }
.main-nav > ul > li.nav-contact > a:hover { background: var(--ink); color: #fff; }
.nav-sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--strong); border-radius: 16px; box-shadow: 0 12px 30px rgba(45,48,71,.12); display: none; }
.nav-sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-sub a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav-sub a:hover { background: var(--tint); }
@media (hover: hover) and (min-width: 941px) {
  .main-nav > ul > li:hover .nav-sub, .main-nav > ul > li:focus-within .nav-sub { display: block; }
}

/* ---------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 16px; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--c1); color: var(--c1-ink); }
.btn-main:hover { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-joy { background: var(--c2); color: var(--c2-ink); border: 0; }
.btn-joy:hover { filter: brightness(.95); color: var(--c2-ink); }
.btn-link { font-weight: 800; }

/* ---------- accueil */
.home-hero { background: var(--cream); padding: 48px 0 32px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.kicker { margin: 0 0 12px; font-weight: 800; color: var(--c1-text); letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.home-hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.15; margin-bottom: 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.lead p { margin-bottom: .6em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-books { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; }
.hero-book { margin: 0; }
.hero-book-0 { transform: rotate(-2deg); }
.hero-book-1 { transform: translateY(-28px) rotate(1.5deg); }
.hero-book-2 { transform: rotate(-1deg); }
.hero-book figcaption { display: flex; flex-direction: column; font-size: 13px; color: var(--soft); margin-top: 8px; line-height: 1.35; }
.hero-book figcaption strong { color: var(--ink); font-size: 14px; }
.wave { display: block; width: 100%; height: 48px; fill: var(--cream); }

.cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px 18px 18px 8px; box-shadow: inset 8px 0 0 rgba(0,0,0,.1), 0 8px 20px rgba(45,48,71,.12); background: var(--tint); display: block; }
.cover-blank { background: var(--strong); color: var(--ink-on); display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.2; }

.doors { padding: 32px 0 56px; }
.doors h2 { font-size: 38px; }
.section-intro { color: var(--soft); margin: 10px 0 26px; }
.doors .title-line { margin-bottom: 26px; }
.doors .title-line + .section-intro { margin-top: -14px; }
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.door { background: var(--tint); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 196px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.door:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 14px 28px rgba(45,48,71,.1); color: var(--ink); }
.badge-icon { width: 54px; height: 54px; flex: none; border-radius: 18px; background: var(--strong); color: var(--ink-on); display: inline-flex; align-items: center; justify-content: center; }
.door-title { font-family: var(--display); font-weight: 700; font-size: 25px; }
.door-text { color: var(--muted); }

.home-duo { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 8px; padding-bottom: 56px; align-items: flex-start; }
.duo-col { flex: 1 1 440px; min-width: 0; }
.duo-col h2 { font-size: 30px; margin-bottom: 16px; }
.listen-card { background: var(--tint); border-radius: 28px; padding: 30px; }
.listen-card .kicker { color: var(--text); }
.listen-card h2 { margin-bottom: 4px; }
.listen-title { font-weight: 800; }
.player { width: 100%; margin: 8px 0 12px; }
.review-card { background: var(--c3-tint); border-radius: 28px; padding: 30px; }
.big-quote { display: block; font-family: var(--display); font-weight: 800; font-size: 72px; line-height: .6; color: var(--c3); margin-top: 14px; }
.review-card blockquote { margin: 0 0 8px; font-size: 20px; line-height: 1.5; }
.review-card .who { font-size: 15px; color: var(--muted); }
.review-card a { color: var(--ink); font-weight: 800; }
.contact-card { background: var(--c1); color: var(--c1-ink); border-radius: 28px; padding: 30px; }
.contact-card h2 { line-height: 1.2; }
.contact-card .lead { color: inherit; opacity: .9; font-size: 17px; }
.contact-card a { color: inherit; }

/* ---------- pages de rubrique */
.page-hero { background: var(--tint); padding: 34px 0 28px; position: relative; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.hero-title { display: flex; align-items: center; gap: 16px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 48px); }
.page-hero .lead { margin-top: 12px; color: var(--muted); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--paper); border: 2px solid var(--paper); text-decoration: none; font-weight: 800; font-size: 15px; color: var(--ink); transition: border-color .15s; }
.subnav a:hover { border-color: var(--strong); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--c1); border-color: var(--c1); color: var(--c1-ink); }
.page-body { padding-top: 40px; padding-bottom: 72px; }
.section-title { font-size: 34px; }
.page-body > .section-intro { margin-bottom: 24px; }
.top-body { max-width: 760px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.rich { max-width: 760px; }
.rich h2 { font-size: 28px; margin: 1.2em 0 .4em; }
.rich h3 { font-size: 22px; margin: 1em 0 .3em; }
.rich img { border-radius: 16px; margin: 8px 0; }
.rich blockquote { margin: 1em 0; padding: 12px 20px; background: var(--cream); border-radius: 16px; }
.empty { color: var(--soft); font-style: italic; }
.sub-title { font-size: 24px; margin: 28px 0 14px; }

/* livres */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; margin-top: 24px; align-items: start; }
.book { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.book-body { display: flex; flex-direction: column; gap: 6px; }
.book h3 { font-size: 21px; line-height: 1.25; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.tag-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.meta { font-size: 15px; color: var(--muted); margin: 0; }
.note { font-size: 14px; color: var(--soft); font-style: italic; margin: 0; }
.more summary { cursor: pointer; font-weight: 800; font-size: 15px; padding: 4px 0; color: var(--c1-text); }
.more .rich { font-size: 15px; }

/* bouton « Acheter » et liste des vendeurs (élément <details>, sans JavaScript) */
.buy { margin-top: 6px; }
.btn-buy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 20px 9px 16px; border-radius: 999px; background: var(--buy-tint); color: var(--ink); border: 2px solid var(--buy); font-weight: 800; cursor: pointer; list-style: none; user-select: none; transition: background .15s; }
.btn-buy svg { color: var(--buy); }
.buy[open] .btn-buy, .btn-buy:hover { background: var(--buy); color: var(--buy-ink); }
.buy[open] .btn-buy svg, .btn-buy:hover svg { color: currentColor; }
.btn-buy::-webkit-details-marker { display: none; }
.btn-buy::after { content: "▾"; font-size: 13px; }
.buy[open] .btn-buy::after { content: "▴"; }
.buy-list { list-style: none; margin: 8px 0 0; padding: 6px; border: 2px solid var(--buy); border-radius: 18px; background: var(--paper); }
.buy-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 15px; }
.buy-list a:hover { background: var(--buy-tint); color: var(--ink); }
.buy-list small { display: block; font-weight: 400; font-size: 12px; color: var(--soft); }
.buy-list span[aria-hidden] { color: var(--c1-text); }

/* boutique */
.shop-block { margin-bottom: 48px; }
.shop-block .section-intro { margin-top: 6px; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; margin-top: 18px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 22px; display: flex; flex-wrap: wrap; gap: 20px; }
.product-img { width: 150px; height: 150px; flex: none; border-radius: 22px; object-fit: cover; }
.product-blank { background: var(--strong); color: var(--ink-on); display: flex; align-items: center; justify-content: center; }
.product-body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.product .kicker { margin: 0; font-size: 13px; letter-spacing: .02em; text-transform: none; }
.product h3 { font-size: 23px; line-height: 1.2; }
.product .rich { font-size: 15px; color: var(--muted); }
.product .rich p { margin: 0 0 .4em; }
.sample { background: var(--cream); border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.sample-label { font-size: 12px; font-weight: 800; color: var(--soft); text-transform: uppercase; letter-spacing: .05em; }
.sample .player { margin: 2px 0; }
.product-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.price { font-family: var(--display); font-weight: 700; font-size: 26px; }
.soon { font-weight: 800; color: var(--soft); }

/* médias */
.medias { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; max-width: 860px; }
.media { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; }
.media-img { width: 160px; height: 160px; object-fit: cover; border-radius: 16px; flex: none; }
.media-body { flex: 1 1 300px; min-width: 0; }
.media .kicker { color: var(--text); font-size: 13px; margin-bottom: 6px; }
.media h3 { font-size: 22px; margin-bottom: 8px; }

/* avis */
.reviews { columns: 3 300px; column-gap: 20px; margin-top: 24px; }
.review { break-inside: avoid; margin: 0 0 20px; background: var(--c3-tint); border-radius: 24px; padding: 24px; }
.review:nth-child(3n+2) { background: var(--paper); border: 2px solid var(--c3-tint); }
.review blockquote { margin: 0 0 10px; font-size: 18px; }
.review figcaption { font-size: 14px; color: var(--muted); }

/* agenda */
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.event { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.events-past .event { border-style: dashed; }
.event-date { flex: none; width: 68px; text-align: center; background: var(--c2-tint); border-radius: 12px; padding: 6px 0; font-family: var(--display); line-height: 1.1; display: flex; flex-direction: column; }
.event-date .d { font-size: 24px; font-weight: 700; }
.event-date .m, .event-date .y { font-size: 13px; }
.events-past .event-date { background: var(--cream); }
.event-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.event-sub { font-size: 15px; color: var(--muted); }
.event-desc { font-size: 15px; }
.events.compact .event-desc { display: none; }

/* ---------- formulaire de contact */
.contact-panel { background: var(--c1); color: var(--c1-ink); border-radius: 28px; padding: 32px; max-width: 760px; margin-top: 8px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.contact-form .full, .contact-form .form-errors { grid-column: 1 / -1; }
.contact-form .full-start { grid-column: 1 / -1; justify-self: start; }
.contact-form input, .contact-form select, .contact-form textarea { padding: 12px 14px; border-radius: 12px; border: 2px solid transparent; background: var(--paper); font: inherit; font-weight: 400; color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--c2); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: #FFE4DE; color: #7A1E0E; border-radius: 12px; padding: 12px 16px; }
.form-errors p { margin: 0; }
.flash { border-radius: 14px; padding: 14px 18px; font-weight: 700; margin: 0 0 20px; }
.flash-ok { background: var(--c2-tint); color: var(--ink); }
.contact-card .flash, .contact-panel .flash { margin-top: 12px; }

/* ---------- pied de page */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: var(--soft); }
.footer-row a { color: var(--soft); }

/* ---------- mobile */
@media (max-width: 940px) {
  .wrap { padding: 0 16px; }
  .header-row { padding-top: 12px; padding-bottom: 12px; flex-wrap: nowrap; }
  .brand-name { font-size: 26px; }
  .brand-line { width: 78px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--c1); color: var(--c1-ink); cursor: pointer; flex: none; }
  .menu-btn .i-close { display: none; }
  .menu-btn[aria-expanded="true"] .i-open { display: none; }
  .menu-btn[aria-expanded="true"] .i-close { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 12px 16px 24px; border-bottom: 1px solid var(--line); max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 18px 30px rgba(45,48,71,.12); }
  .main-nav.open { display: block; }
  .no-js .main-nav { display: block; position: static; box-shadow: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 10px; }
  .main-nav > ul > li { background: var(--tint); border-radius: 18px; padding: 6px 8px 10px; }
  .main-nav > ul > li > a, .main-nav > ul > li.is-current > a { background: transparent; box-shadow: none; font-family: var(--display); font-size: 22px; font-weight: 700; padding: 6px 8px; }
  .main-nav > ul > li.nav-contact { background: var(--c1); }
  .main-nav > ul > li.nav-contact > a { margin: 0; padding: 6px 8px; }
  .nav-sub { display: flex; flex-wrap: wrap; gap: 6px; position: static; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 4px 6px 0; }
  .nav-sub::before { display: none; }
  .nav-sub a { background: var(--paper); border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 800; }
  body { font-size: 16px; }
  .home-hero { padding: 24px 0 12px; }
  .lead { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .hero-books { display: flex; overflow-x: auto; gap: 14px; padding: 30px 16px 8px; margin: 0 -16px; scroll-snap-type: x mandatory; }
  .hero-book { flex: none; width: 140px; scroll-snap-align: start; }
  .doors { padding: 16px 0 32px; }
  .doors h2, .duo-col h2 { font-size: 27px; }
  .door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .door { min-height: 120px; padding: 16px; border-radius: 20px; gap: 10px; }
  .door .badge-icon { width: 42px; height: 42px; border-radius: 14px; }
  .door .badge-icon svg { width: 22px; height: 22px; }
  .door-title { font-size: 19px; line-height: 1.2; }
  .door-text { display: none; }
  .home-duo { padding-bottom: 32px; gap: 20px; }
  .listen-card, .review-card, .contact-card, .contact-panel { padding: 22px; border-radius: 22px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .contact-form .full-start { justify-self: stretch; }
  .page-hero { padding: 22px 0 20px; }
  .page-hero .badge-icon { width: 46px; height: 46px; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; margin: 18px -16px 0; padding: 0 16px 6px; }
  .subnav a { flex: none; }
  .page-body { padding-top: 24px; padding-bottom: 48px; }
  .section-title { font-size: 27px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .book { padding: 10px; border-radius: 16px; gap: 10px; }
  .book h3 { font-size: 18px; }
  .btn-buy { padding: 8px 12px; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .product { padding: 18px; }
  .product-img { width: 100px; height: 100px; border-radius: 18px; }
  .media { padding: 18px; }
  .media-img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 380px) {
  .books { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .door:hover { transform: none; }
}

/* ---------- 1.3.0 : recherche */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.main-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.search { display: flex; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 14px; transition: border-color .15s; }
.search:focus-within { border-color: var(--c1); }
.search input { border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); width: 210px; padding: 6px 0; outline: none; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--c1); color: var(--c1-ink); cursor: pointer; flex: none; }
.search button:hover { background: var(--ink); color: #fff; }
.search-big { max-width: 620px; margin-top: 18px; padding: 4px 6px 4px 20px; border-color: var(--paper); box-shadow: 0 8px 24px rgba(45,48,71,.08); }
.search-big input { width: 100%; font-size: 18px; padding: 10px 0; }
.search-big button { width: 46px; height: 46px; }
.search-results { padding-top: 10px; }
.search-group { margin: 26px 0 34px; }
.search-group .count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--c1-tint); font-family: var(--body); font-size: 15px; font-weight: 800; vertical-align: middle; }
.hits { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.hit { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.hit-cover { flex: none; width: 64px; }
.hit-cover .cover { width: 64px; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; }
.hit-cover .cover-blank { font-size: 9px; padding: 4px; }
.hit-title { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration-color: var(--c2); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.hit .meta { margin: 2px 0 0; }
.hit-text { margin: 6px 0 0; color: var(--soft); font-size: 15px; }

/* ---------- 1.3.0 : avis sous les livres */
.book-reviews { margin-top: 10px; padding-top: 12px; border-top: 2px dotted var(--line); display: flex; flex-direction: column; gap: 8px; }
.book-reviews-title { margin: 0; display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--c3-text); }
.mini-review { margin: 0; padding: 10px 12px; background: var(--c3-tint); border-radius: 4px 16px 16px 16px; font-size: 14px; line-height: 1.5; }
.mini-review p { margin: 0; }
.mini-review footer { margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--soft); }
.book-reviews .btn-link { font-size: 14px; }

/* ---------- 1.3.0 : photos des rencontres */
.event-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.event-photo { display: block; width: 104px; height: 78px; border-radius: 12px; overflow: hidden; background: var(--line); }
.event-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.event-photo:hover img { transform: scale(1.06); }
.zoom { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
.zoom::backdrop { background: rgba(45,48,71,.82); }
.zoom img { display: block; max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 14px; margin: 0 auto; }
.zoom p { color: #fff; text-align: center; margin: 10px 0 0; font-weight: 700; }
.zoom-close, .zoom-nav { position: fixed; border: 0; border-radius: 999px; width: 48px; height: 48px; background: var(--paper); color: var(--ink); font-size: 24px; font-weight: 800; cursor: pointer; }
.zoom-close { top: 16px; right: 16px; }
.zoom-nav { top: 50%; transform: translateY(-50%); }
.zoom-prev { left: 16px; } .zoom-next { right: 16px; }

@media (max-width: 940px) {
  .main-nav { display: none; align-items: stretch; }
  .main-nav.open { display: flex; }
  .no-js .main-nav { display: flex; }
  .search-mini { margin-bottom: 4px; }
  .search-mini input { width: 100%; flex: 1; font-size: 17px; }
  .brand-size-grand { --brand-scale: calc(1.12 * var(--brand-boost, 1)); }
  .brand-size-tres-grand { --brand-scale: calc(1.4 * var(--brand-boost, 1)); }
  .event-photo { width: 84px; height: 64px; }
  .hit { padding: 12px; gap: 12px; }
  .hit-cover, .hit-cover .cover { width: 52px; }
}

/* ---------- 1.4.0 : photo à côté du texte d'une page (portrait de « Ma bio ») */
.with-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 44px; align-items: start; }
.with-photo .page-photo { grid-column: 2; grid-row: 1; margin: 6px 12px 0 0; }
.with-photo .rich { grid-column: 1; grid-row: 1; }
.page-photo { position: relative; }
.page-photo::before { content: ""; position: absolute; inset: 0; transform: translate(12px, 12px) rotate(2deg); border-radius: 28px 28px 28px 8px; background: var(--c2); }
.page-photo img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px 28px 28px 8px; background: var(--line); }
@media (max-width: 940px) {
  .with-photo { grid-template-columns: 1fr; gap: 26px; }
  .with-photo .page-photo, .with-photo .rich { grid-column: 1; grid-row: auto; }
  .with-photo .page-photo { width: min(72%, 280px); margin: 4px auto 6px; }
}
