/*
Theme Name: Pharmasole
Theme URI: https://www.pharmasole.it/
Author: Parafarmacia del Sole
Description: Tema su misura per Pharmasole – Parafarmacia del Sole: vetrina prodotti, blog, SEO e Google Discover.
Version: 1.2.0
Requires PHP: 8.3
Text Domain: pharmasole
*/

@font-face { font-family: "DM Sans"; src: url(assets/fonts/DMSans-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(assets/fonts/DMSans-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #2a2c64;
  --navy-2: #3b3f86;
  --navy-dark: #1c1e47;
  --sun: #f6b73c;
  --sun-soft: #fff4dc;
  --mint: #e9f4f1;
  --sky: #eef0fa;
  --bg: #fbfbfd;
  --ink: #1d2033;
  --muted: #5d6178;
  --line: #e3e5ef;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(29,32,51,.05), 0 6px 18px rgba(29,32,51,.06);
  --wrap: 1220px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.22; color: var(--navy-dark); letter-spacing: -.012em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; }

.ico { width: 22px; height: 22px; flex: none; }
.ico--sm { width: 18px; height: 18px; }
.ico--cat { width: 30px; height: 30px; }

/* ---------- Boutons, puces ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--sun { background: var(--sun); color: var(--navy-dark); }
.btn--sun:hover { background: #ffc85a; color: var(--navy-dark); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--light:hover { background: rgba(255,255,255,.2); color: #fff; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .82rem; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.chip:hover { background: #dfe2f6; color: var(--navy-dark); }
.chip--lg { min-height: 40px; padding: 7px 16px; font-size: .92rem; background: #fff; border: 1px solid var(--line); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chips { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.section-title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 700; color: var(--navy-dark); margin: 0 0 18px; letter-spacing: -.01em; }
.section-title--light { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--navy-2); margin-bottom: 10px; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--sun-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .92rem; color: #5a4310; }
.notice--soft { background: var(--mint); color: #24453c; }
.empty { padding: 30px 0; color: var(--muted); }

/* ---------- En-tête ---------- */
.topbar { background: var(--navy); color: #dfe1f5; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 36px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__in { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand img { width: auto; height: 40px; }
.search { flex: 1; display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 18px; max-width: 560px; }
.search:focus-within { border-color: var(--navy-2); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; min-width: 0; height: 40px; outline: none; }
.search button { border: 0; background: var(--navy); color: #fff; border-radius: 999px; min-width: 44px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; padding: 0 12px; font-weight: 700; }
.search button:hover { background: var(--navy-dark); }
.quick ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.quick a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.quick a:hover { color: var(--navy-2); }
.menu-toggle, .menu-close { display: none; background: none; border: 0; padding: 10px; margin: -10px; cursor: pointer; color: var(--navy); min-width: 44px; min-height: 44px; }

.catnav { border-top: 1px solid var(--line); background: #fff; }
.drawer-head, .drawer-links { display: none; }
.catmenu { list-style: none; display: flex; justify-content: space-between; margin: 0; padding: 0; }
.catmenu__item { position: static; }
.catmenu__link { display: flex; align-items: center; gap: 8px; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; border-bottom: 3px solid transparent; }
.catmenu__link .ico--cat { width: 22px; height: 22px; color: var(--navy-2); }
.catmenu__item:hover > .catmenu__link, .catmenu__item:focus-within > .catmenu__link { border-bottom-color: var(--sun); color: var(--navy); }
.sub-toggle { display: none; }
.megamenu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(29,32,51,.12); padding: 26px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 22px; }
.catmenu__item:hover > .megamenu, .catmenu__item:focus-within > .megamenu { display: block; }
.megamenu__cols { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 32px; }
.megamenu__cols > li { break-inside: avoid; margin-bottom: 16px; }
.megamenu__cols ul { list-style: none; margin: 4px 0 0; padding: 0; }
.megamenu__cols a { text-decoration: none; color: var(--muted); display: block; padding: 3px 0; font-size: .92rem; }
.megamenu__cols a:hover { color: var(--navy); }
.megamenu__cols .megamenu__head { color: var(--navy-dark); font-weight: 700; font-size: .96rem; }
.megamenu__all { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; font-weight: 700; text-decoration: none; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 22px 0 18px; padding: 0; font-size: .86rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #a5a8bd; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Accueil ---------- */
.hero { background: radial-gradient(1100px 420px at 85% -10%, var(--sun-soft), transparent 60%), linear-gradient(180deg, var(--sky), var(--bg)); padding: 56px 0 44px; }
.hero__in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-bottom: 14px; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.search--hero { max-width: 600px; background: #fff; box-shadow: var(--shadow); margin-top: 22px; padding: 6px 6px 6px 22px; }
.search--hero input { height: 46px; }
.search--hero button { height: 48px; padding: 0 20px; }
.hero__trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero__trust li { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); color: var(--muted); }
.hero__trust .ico { width: 28px; height: 28px; color: var(--navy-2); }
.hero__trust strong { color: var(--navy-dark); }
.home-block { margin-top: 48px; }
.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tiles a { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--navy-dark); font-weight: 700; transition: border-color .15s, transform .15s, box-shadow .15s; min-height: 76px; }
.cat-tiles a:hover { border-color: var(--navy-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.cat-tiles .ico--cat { color: var(--navy-2); background: var(--sky); border-radius: 12px; padding: 7px; width: 44px; height: 44px; }
.brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.brand-list a { display: inline-block; padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; }
.brand-list a:hover { border-color: var(--navy-2); color: var(--navy); }
.about-band { margin-top: 64px; background: var(--navy); color: #e4e6f7; padding: 54px 0; }
.about-band__in > div { max-width: 760px; }
.about-band p { font-size: 1.08rem; }

/* ---------- Cartes produit ---------- */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-grid--4 { grid-template-columns: repeat(4, 1fr); }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.p-card:hover { box-shadow: var(--shadow); border-color: #cfd3e6; }
.p-card__img { display: block; aspect-ratio: 1 / 1; background: #f4f5f9; }
.p-card__img img { width: 100%; height: 100%; object-fit: cover; }
.p-card__ph { display: flex; height: 100%; align-items: center; justify-content: center; color: #b9bdd6; }
.p-card__ph .ico { width: 64px; height: 64px; }
.p-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.p-card__cat { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.p-card__name { color: var(--navy-dark); font-weight: 700; text-decoration: none; line-height: 1.35; }
.p-card__name:hover { color: var(--navy-2); text-decoration: underline; }
.p-card__brand { font-size: .86rem; color: var(--muted); }

/* ---------- Cartes article ---------- */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-grid--2 { grid-template-columns: repeat(2, 1fr); }
.b-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.b-card__img { display: block; aspect-ratio: 16 / 9; background: var(--sky); }
.b-card__img img { width: 100%; height: 100%; object-fit: cover; }
.b-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; }
.b-card__title { font-size: 1.14rem; line-height: 1.32; margin: 0; font-weight: 700; color: var(--navy-dark); }
.b-card__title a { color: inherit; text-decoration: none; }
.b-card__title a:hover { color: var(--navy-2); text-decoration: underline; }
.b-card__excerpt { color: var(--muted); font-size: .95rem; margin: 0; }
.b-card__meta { margin: auto 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Archives ---------- */
.archive-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.archive-head h1 { margin-bottom: 8px; }
.archive-head__page { color: var(--muted); font-weight: 400; font-size: .7em; }
.archive-head__intro { color: var(--muted); max-width: 780px; }
.archive-head__intro p:last-child { margin-bottom: 0; }
.archive-head__count { margin: 10px 0 0; color: var(--muted); white-space: nowrap; font-size: .92rem; }
.archive-head--img { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.archive-head__img { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sky); aspect-ratio: 16 / 9; }
.archive-head__img img { width: 100%; height: 100%; object-fit: cover; }
.archive-text { margin-top: 46px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 34px 0 0; padding: 0; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 700; color: var(--ink); padding: 0 10px; }
.pagination a:hover { border-color: var(--navy-2); color: var(--navy); }
.pagination [aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .gap { align-self: center; color: var(--muted); }

/* ---------- Fiche produit ---------- */
.product__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; align-items: start; }
.product__media { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 140px; }
.product__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product__media figcaption { font-size: .78rem; color: var(--muted); padding: 8px 14px; border-top: 1px solid var(--line); }
.product__ph { display: flex; aspect-ratio: 1 / 1; align-items: center; justify-content: center; color: #b9bdd6; background: #f4f5f9; }
.product__ph .ico { width: 120px; height: 120px; }
.product__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin: 12px 0 14px; }
.product__facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.product__facts span { color: var(--muted); }
.product__facts span::after { content: ":"; }
.product__lead { font-size: 1.06rem; color: var(--ink); }
.product__ask { background: var(--sky); border-radius: var(--radius); padding: 20px 22px; margin: 20px 0 16px; }
.product__ask-title { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; }
.product__ask p { font-size: .96rem; }
.product__ask-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product__body { max-width: 860px; margin-top: 44px; }
.product__section { font-size: 1.4rem; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.related, .more-posts { margin-top: 56px; }

/* ---------- Article ---------- */
.article__head { margin-bottom: 20px; }
.article__head h1 { margin-top: 12px; }
.article__lead { font-size: 1.18rem; color: var(--muted); line-height: 1.55; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin: 0; }
.article__meta img { border-radius: 50%; width: 40px; height: 40px; }
.article__meta .dot { color: #b4b7ca; }
.article__img { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.article__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.author-box { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 40px; }
.author-box img { border-radius: 50%; width: 88px; height: 88px; flex: none; }
.author-box__name { font-weight: 700; font-size: 1.1rem; color: var(--navy-dark); margin: 0; }
.author-box__role { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.author-box p:last-child { margin-bottom: 0; }

/* ---------- Contenu ---------- */
.entry { overflow-wrap: break-word; }
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .35em; }
.entry img { border-radius: var(--radius-sm); }
.entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--sun); color: var(--muted); }
.entry a { font-weight: 700; }
.entry--article > p:first-child::first-letter { float: left; font-size: 3.4em; line-height: .9; padding: 6px 10px 0 0; color: var(--navy); font-weight: 700; }
.page-content h1 { margin-top: 4px; }
.page-extra { margin-top: 44px; }
.wpcf7 label { display: block; font-weight: 700; margin-bottom: 14px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; font-weight: 400; margin-top: 4px; }
.wpcf7 textarea { min-height: 160px; }
.wpcf7 input[type=submit] { background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 700; cursor: pointer; min-height: 46px; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 28px; }
.contact-card p { margin: 0 0 6px; }

/* Tableaux */
.table-wrap { margin: 1.4em 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.entry th, .entry td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; hyphens: auto; overflow-wrap: anywhere; }
.entry th { background: var(--sky); color: var(--navy-dark); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-dark); color: #c9cbe3; margin-top: 72px; font-size: .95rem; }
.about-band + .site-footer { margin-top: 0; }
.footer-help { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-help__title { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-help p { margin: 0; }
.footer-help__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer-col__title { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: #c9cbe3; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col--brand img { width: auto; height: 40px; margin-bottom: 16px; }
.footer-col address { font-style: normal; line-height: 1.7; }
.footer-col strong { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 26px; font-size: .85rem; }
.footer-legal p { margin: 0; }
.footer-legal a { color: #c9cbe3; }
.page-404 { padding: 30px 0 10px; }
.page-404 .search { margin: 20px 0 30px; max-width: none; }
.cat-tiles--small { grid-template-columns: repeat(2, 1fr); }
.search--page { max-width: 560px; margin-top: 10px; }

/* ---------- Tablette ---------- */
@media (max-width: 1180px) {
  .quick { display: none; }
  .catmenu__link span { font-size: .84rem; }
  .catmenu__link .ico--cat { display: none; }
}
@media (max-width: 1024px) {
  .menu-toggle, .menu-close { display: inline-flex; align-items: center; justify-content: center; }
  .site-header__in { gap: 16px; min-height: 68px; }
  .catnav { position: fixed; inset: 0 auto 0 0; width: min(380px, 88vw); z-index: 80; transform: translateX(-102%); transition: transform .22s ease; overflow-y: auto; border: 0; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.drawer-open { overflow: hidden; }
  body.drawer-open .catnav { transform: none; }
  body.drawer-open::after { content: ""; position: fixed; inset: 0; background: rgba(20,22,48,.45); z-index: 70; }
  /* L'en-tête (qui contient le tiroir) passe au-dessus du voile, sinon le voile capte les appuis sur les liens */
  body.drawer-open .site-header { z-index: 90; }
  .catnav { background: #fff; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .catnav__in { padding: 0; }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 700; color: var(--navy-dark); border-bottom: 1px solid var(--line); }
  .catmenu { flex-direction: column; }
  .catmenu__item { position: relative; border-bottom: 1px solid var(--line); }
  .catmenu__link { padding: 14px 56px 14px 20px; border: 0; font-size: 1rem; }
  .catmenu__link span { font-size: 1rem; }
  .catmenu__link .ico--cat { display: block; }
  .sub-toggle { display: block; position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
  .sub-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translate(-50%, -70%) rotate(45deg); transition: transform .15s; }
  .sub-toggle[aria-expanded=true]::before { transform: translate(-50%, -30%) rotate(-135deg); }
  .megamenu, .catmenu__item:hover > .megamenu { display: none; position: static; box-shadow: none; padding: 0 20px 14px 50px; border: 0; }
  .catmenu__item.is-open > .megamenu { display: block; }
  .megamenu__cols { columns: 1; }
  .megamenu__cols > li { margin-bottom: 8px; }
  .megamenu__cols ul { padding-left: 12px; }
  .megamenu__cols a { padding: 7px 0; }
  .drawer-links { display: block; list-style: none; margin: 0; padding: 12px 20px 30px; }
  .drawer-links a { display: block; padding: 10px 0; text-decoration: none; font-weight: 700; color: var(--navy); }
  .hero__in { grid-template-columns: 1fr; gap: 26px; }
  .hero__trust { grid-template-columns: repeat(3, 1fr); }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .p-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .product__top { grid-template-columns: 1fr; gap: 22px; }
  .product__media { position: static; max-width: 520px; }
  .archive-head--img { grid-template-columns: 1fr; gap: 18px; }
  .archive-head__img { aspect-ratio: 21 / 9; }
  .b-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tableaux en fiches (jusqu'à 760 px) ---------- */
@media (max-width: 760px) {
  .table-cards table, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards thead { display: none; }
  .table-cards tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; overflow: hidden; }
  .table-cards tr:has(th) { display: none; }
  .table-cards table.no-head tr:has(th) { display: block; }
  .table-cards table.no-head th { display: block; }
  .table-cards td { border: 0; border-bottom: 1px solid var(--line); }
  .table-cards td:last-child { border-bottom: 0; }
  .table-cards td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--navy-dark); }
  .entry table { font-size: .93rem; }
}

/* ---------- Mobile : contenu utile au-dessus de la ligne de flottaison ---------- */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .topbar { display: none; }
  .site-header__in { flex-wrap: wrap; gap: 6px 12px; min-height: 0; padding-top: 8px; padding-bottom: 10px; }
  .brand img { height: 30px; width: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; padding-left: 14px; }
  .search input { height: 36px; }
  .search button { height: 38px; }
  .breadcrumb { display: none; }
  h1 { font-size: 1.7rem; }
  .archive-head { display: block; margin: 16px 0 12px; }
  .archive-head__intro { font-size: .96rem; }
  .archive-head__count { margin-top: 6px; }
  .archive-head__img { aspect-ratio: 16 / 5; border-radius: var(--radius-sm); margin-top: 12px; }
  .archive-head--img { gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chips li { flex: none; }
  .chip--lg { min-height: 38px; }
  .hero { padding: 22px 0 22px; }
  .hero h1 { font-size: 1.75rem; }
  .hero__lead { font-size: 1rem; margin-bottom: 0; }
  .search--hero { margin-top: 14px; padding-left: 16px; }
  .search--hero button { padding: 0 14px; }
  .hero__trust { display: none; }
  .home-block { margin-top: 30px; }
  .cat-tiles { gap: 10px; }
  .cat-tiles a { padding: 12px; gap: 10px; min-height: 64px; font-size: .9rem; }
  .cat-tiles .ico--cat { width: 36px; height: 36px; padding: 5px; }
  .p-grid, .p-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-card__body { padding: 10px 12px 14px; }
  .p-card__name { font-size: .95rem; }
  .b-grid, .b-grid--2 { grid-template-columns: 1fr; gap: 16px; }
  .product { margin-top: 14px; }
  .product__top { gap: 16px; }
  .product__media { max-width: none; }
  .product__media img { aspect-ratio: 4 / 3; }
  .product__title { font-size: 1.5rem; margin: 8px 0 10px; }
  .product__ask { padding: 16px; }
  .article { margin-top: 14px; }
  .article__head h1 { font-size: 1.7rem; margin: 8px 0 10px; }
  .article__lead { font-size: 1.05rem; margin-bottom: 10px; }
  .article__img { margin: 0 -16px 22px; border-radius: 0; }
  .author-box { flex-direction: column; }
  .archive-text { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-help { flex-direction: column; align-items: flex-start; }
  .page-content { margin-top: 14px; }
}

/* Tabelle a due colonne: restano tabella, testo che va a capo */
.table-simple table { table-layout: fixed; }
.table-simple td:first-child, .table-simple th:first-child { width: 58%; }
@media (max-width: 640px) { .table-simple th, .table-simple td { padding: 7px 9px; font-size: .9rem; } }
