/* AQ — système typographique commun, 2026-12-04.
   La géométrie des fiches, les drapeaux, logos, prix et interactions restent locaux. */
:root {
  --aq-ui-font: "Segoe UI", Arial, Helvetica, sans-serif;
  --aq-ui-text: #24374a;
  --aq-ui-heading: #173b63;
  --aq-ui-focus: #1764ac;
  --aq-ui-body: 16px;
  --aq-ui-small: 13px;
  --aq-ui-h1: clamp(26px, 3.2vw, 34px);
  --aq-ui-h2: clamp(21px, 2.3vw, 24px);
  --aq-ui-h3: 18px;
  --aq-ui-h4: 16px;
}
html body {font-family:var(--aq-ui-font)!important;font-size:var(--aq-ui-body);line-height:1.55;}
/* Scoped to actual textual elements: no icon-font, SVG or canvas overrides. */
html body :is(h1,h2,h3,h4,h5,h6,p,label,legend,summary,li,dt,dd,th,td,small,caption,figcaption,blockquote),
html body :is(h1,h2,h3,h4,h5,h6,p,label,legend,summary,li,dt,dd,th,td) a,
html body :is(button,input,select,textarea,optgroup,option),
html body :is(.btn,.button,.aq-button,.company-name,.product-title) {
  font-family:var(--aq-ui-font)!important;
  letter-spacing:normal!important;
}
html body :is(h1,h2,h3,h4,h5,h6) {font-weight:700!important;line-height:1.25!important;letter-spacing:-.015em!important;overflow-wrap:anywhere;}
html body h1 {font-size:var(--aq-ui-h1)!important;}
html body h2 {font-size:var(--aq-ui-h2)!important;}
html body h3 {font-size:var(--aq-ui-h3)!important;}
html body h4 {font-size:var(--aq-ui-h4)!important;}
html body :is(h5,h6) {font-size:14px!important;}
/* Heading colors belong to the local surface: preserve inherited and explicit colors on all backgrounds. */
html body p {line-height:1.55;}
html body :is(label,legend) {font-weight:600;line-height:1.4;}
html body :is(small,figcaption,caption,.muted,.help,.hint,.form-text) {line-height:1.45;}
html body :is(input:not([type]),input[type=text],input[type=email],input[type=search],input[type=tel],input[type=url],input[type=password],input[type=number],input[type=date],input[type=time],select,textarea) {
  font-size:16px!important;line-height:1.35!important;font-weight:400;max-width:100%;box-sizing:border-box;border-radius:7px;
}
html body :is(button,input[type=submit],input[type=button],.btn,.button) {font-weight:600;line-height:1.3;letter-spacing:normal!important;border-radius:7px;}
html body :is(input,select,textarea,button,a):focus-visible {outline:2px solid var(--aq-ui-focus);outline-offset:2px;}
html body :is(input[type=checkbox],input[type=radio]) {accent-color:var(--aq-ui-focus);}
html body :is(th,td) {line-height:1.4;}
/* Same hierarchy, compact role for repeated cards, not page-level titles. */
html body :is(.product,.product-card,.aq-result-copy,.aq-company-copy,.meal,.recipe-card,.store,.offer-card,.card) :is(h2,h3) {font-size:16px!important;line-height:1.35!important;}
html body :is(.product,.product-card,.meal,.recipe-card,.offer-card,.card) h4 {font-size:15px!important;line-height:1.35!important;}
/* Keep tabular prices and numeric controls easy to compare. */
html body :is(.price,.cost,.amount,.aq-line-cost,.aq-ingredient-offer,input[type=number]) {font-variant-numeric:tabular-nums;}
@media(max-width:600px){
 :root {--aq-ui-h1:26px;--aq-ui-h2:21px;--aq-ui-h3:18px;}
}
@media print {
 html body {font-size:12pt;}
 html body :is(h1,h2,h3,h4) {break-after:avoid;}
}

/* Compatibility: existing AQ directory and Éconolys styles use !important. */
html body[data-aq-directory] {font-family:var(--aq-ui-font)!important;font-size:var(--aq-ui-body)!important;}
html body[data-aq-directory] :is(h1,h2,h3,h4,h5,h6,input,select,textarea,button),
html body[data-aq-directory] .card h3 a,
html body[data-aq-directory] .card .company-name {font-family:var(--aq-ui-font)!important;letter-spacing:normal!important;}
html body[data-aq-directory] :is(h1,h2,h3,h4,h5,h6),html body[data-aq-directory] .card h3 a {font-weight:700!important;}
html body[data-aq-directory] .card :is(h2,h3) {font-size:16px!important;line-height:1.35!important;}
html body :is(.aq-brand,.hero,.page-header,.page-title,.heading,.header) h1 {font-size:var(--aq-ui-h1)!important;line-height:1.25!important;}
html body :is(.aq-brand,.hero,.page-header,.page-title,.heading,.header) h2 {font-size:var(--aq-ui-h2)!important;line-height:1.25!important;}
html body :is(main,article,section) > p:not(.muted):not(.note):not(.caption):not(.price):not(.cost) {font-size:16px;line-height:1.55;}
html body :is(.product,.product-card,.meal,.recipe-card,.offer-card,.card) p {font-size:14px;line-height:1.5;}
html body :is(.muted,.help,.hint,.form-text,small) {font-size:var(--aq-ui-small);}
html body :is(input:not([type]),input[type=text],input[type=email],input[type=search],input[type=tel],input[type=url],input[type=password],input[type=number],select,textarea):not([disabled]) {border-color:#aebdcb;}
html body :is(button,input[type=submit],input[type=button],.btn,.button) {font-size:14px;}

/* AQ public footer: identical navigation and hierarchy throughout the site. */
html body footer#aq-public-footer {
 box-sizing:border-box!important;display:block!important;position:relative!important;clear:both!important;
 width:100%!important;max-width:none!important;margin:36px 0 0!important;padding:26px clamp(16px,4vw,64px) 18px!important;
 background:#005eb8!important;color:#fff!important;border:0!important;border-radius:0!important;text-align:center!important;
 font-family:var(--aq-ui-font)!important;font-size:14px!important;line-height:1.5!important;
 box-shadow:0 0 0 100vmax #005eb8;clip-path:inset(0 -100vmax);
}
html body footer#aq-public-footer a {color:#fff!important;font-family:var(--aq-ui-font)!important;text-decoration:underline!important;text-underline-offset:3px;line-height:1.5!important;}
html body footer#aq-public-footer > a {font-size:16px!important;font-weight:700!important;}
html body footer#aq-public-footer nav {display:flex!important;justify-content:center!important;flex-wrap:wrap!important;gap:8px 16px!important;margin:18px auto 0!important;max-width:1280px!important;}
html body footer#aq-public-footer nav a {font-size:14px!important;font-weight:400!important;}
html body footer#aq-public-footer > div {color:#fff!important;font-size:13px!important;}
html body footer#aq-public-footer a:focus-visible {outline:2px solid #fff!important;outline-offset:3px;}
html body .aq-page-footer-note {max-width:1040px;margin:20px auto;padding:12px 16px;font-size:13px;line-height:1.5;color:#526579;}
@media(max-width:600px){html body footer#aq-public-footer {padding:22px 16px 24px!important;}html body footer#aq-public-footer nav {gap:8px 12px!important;}}

/* Official AQ logo supplied 2026-12-04; no substitute wordmark. */
html body #aq-official-masthead {display:flex!important;justify-content:center;align-items:center;box-sizing:border-box;width:100%;max-width:none;margin:0 0 16px!important;padding:12px 12px;background:#fff!important;border-bottom:1px solid #dce6f1;clear:both;grid-column:1/-1;overflow-x:auto!important;}
html body #aq-official-masthead a {display:block!important;flex:0 0 700px!important;width:700px!important;min-width:700px!important;max-width:none!important;margin:0 auto;text-decoration:none!important;}
html body #aq-official-masthead img {display:block!important;width:700px!important;height:132px!important;min-width:700px!important;min-height:132px!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;filter:none!important;opacity:1!important;transform:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
html body:has(#aq-official-masthead) img[data-aq-legacy-brand="1"] {display:none!important;}
@media(max-width:600px){html body #aq-official-masthead {padding:10px 12px;margin-bottom:10px!important;}}

/* Keep native logo size even on narrow screens; scroll only the masthead. */
@media(max-width:724px){html body #aq-official-masthead{justify-content:flex-start!important;}html body #aq-official-masthead a{margin-left:0!important;margin-right:0!important;}}

/* Common FR/EN selector, same masthead as native-size logo. */
html body #aq-official-masthead {position:relative!important;min-height:156px;}
html body #aq-official-masthead #aq-header-languages {position:absolute!important;right:18px;top:50%;transform:translateY(-50%);display:flex!important;align-items:center;justify-content:flex-end;gap:5px;margin:0!important;padding:0!important;width:auto!important;z-index:2;}
html body #aq-official-masthead #aq-header-languages a {display:inline-flex!important;flex:0 0 auto!important;align-items:center;justify-content:center;width:auto!important;min-width:34px!important;max-width:none!important;min-height:32px;padding:4px 7px;box-sizing:border-box;margin:0!important;border:1px solid #005eb8;border-radius:6px;color:#005eb8!important;background:#fff!important;font-size:13px;font-weight:700;line-height:1.2;text-decoration:none!important;}
html body #aq-official-masthead #aq-header-languages a[aria-current="true"] {background:#005eb8!important;color:#fff!important;}
html body #aq-official-masthead #aq-header-languages a:focus-visible {outline:2px solid #005eb8;outline-offset:3px;}
html body:has(#aq-header-languages) .language-switcher,html body:has(#aq-header-languages) .aqm-langs {display:none!important;}
@media(max-width:960px){html body #aq-official-masthead {display:flex!important;flex-direction:column;align-items:flex-start!important;min-height:0;padding-top:8px!important;}html body #aq-official-masthead #aq-header-languages{position:sticky!important;left:0;right:auto;top:auto;transform:none;order:-1;align-self:stretch;justify-content:flex-end;margin:0 0 4px!important;}html body #aq-official-masthead > a {flex:0 0 auto!important;}}
html body .aq-language-availability {margin:0 auto 12px;padding:6px 14px;max-width:1000px;color:#38536a;background:#f2f7fc;font-size:13px;text-align:center;}

/* AQ public layout system v8 — shared canvas, alignment, spacing and controls.
   Keep specialized content and offer-card geometry local; print styles untouched. */
:root {
 --aq-page-width:1120px; --aq-page-gutter:24px; --aq-page-space:24px;
 --aq-page-bg:#f2f6fb; --aq-page-ink:#24374a; --aq-page-border:#dce5ef;
 --aq-page-radius:12px; --aq-page-blue:#005eb8;
}
@media screen {
 html body:has(> #aq-official-masthead[data-aq-layout]) {
  box-sizing:border-box!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;min-width:0!important;
  background:var(--aq-page-bg)!important;color:var(--aq-page-ink);font-size:16px!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout="scanner"]){
  background:#101214!important;color:#fff;
 }
 html body:has(> #aq-official-masthead[data-aq-layout="special"]){display:block!important;}
 html body #aq-official-masthead[data-aq-layout] {
  width:100%!important;max-width:none!important;margin:0!important;
  min-height:156px;padding:12px max(var(--aq-page-gutter),calc((100% - var(--aq-page-width))/2))!important;
  box-shadow:none!important;justify-content:center!important;align-items:center!important;
 }
 html body #aq-official-masthead[data-aq-layout] > a {
  flex:0 0 700px!important;width:700px!important;min-width:700px!important;margin:0 auto!important;
 }
 html body #aq-official-masthead[data-aq-layout] #aq-header-languages {
  right:max(var(--aq-page-gutter),calc((100% - var(--aq-page-width))/2))!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > main,
 html body:has(> #aq-official-masthead[data-aq-layout]) > .wrap {
  box-sizing:border-box!important;width:calc(100% - 2 * var(--aq-page-gutter))!important;
  max-width:var(--aq-page-width)!important;min-width:0!important;
  margin:var(--aq-page-space) auto 40px!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout="standard"]) > main:not(.card):not(.panel) {
  padding-inline:0!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout="reading"]) > main > article {
  max-width:880px;box-sizing:border-box;margin-inline:auto;
 }
 html body:has(> #aq-official-masthead[data-aq-layout="confirmation"]) > main {
  max-width:760px!important;padding:24px!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout^="scanner"]) > .wrap {
  max-width:760px!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > header:not(.aq-location-header) {
  box-sizing:border-box!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:18px var(--aq-page-gutter)!important;
  border-radius:0!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > header > :is(.wrap,.wide,.inner,.head-inner,.hero-inner,.top-wrap),
 html body:has(> #aq-official-masthead[data-aq-layout]) > .toolbar > :is(.wrap,.wide,.inner) {
  box-sizing:border-box!important;width:100%!important;max-width:var(--aq-page-width)!important;
  margin-inline:auto!important;padding-inline:0!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > header:has(h1):not(.aq-location-header) {
  background:var(--aq-page-blue)!important;color:white!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > header:has(h1):not(.aq-location-header) h1 {
  color:#fff!important;margin:0 0 8px!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > header:has(h1):not(.aq-location-header) > p,
 html body:has(> #aq-official-masthead[data-aq-layout]) > header:has(h1):not(.aq-location-header) :is(.wrap,.wide,.hero-copy,.top-copy,.head-inner,.inner) > p {
  color:#eef5ff!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > header:has(h1):not(.aq-location-header) :is(.kicker,.eyebrow) {color:#eef5ff!important;}
 /* Hide empty legacy logo strips, but preserve navigation, disclosures and store branding. */
 html body:has(> #aq-official-masthead[data-aq-layout]) [data-aq-redundant="1"],
 html body:has(> #aq-official-masthead[data-aq-layout]) :is(header,.aq-global-brand):has(> a:only-child > img[data-aq-legacy-brand="1"]:only-child) {
  display:none!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > [data-home-link] {
  box-sizing:border-box!important;width:calc(100% - 2 * var(--aq-page-gutter))!important;
  max-width:var(--aq-page-width)!important;margin:16px auto 0!important;padding:0!important;background:transparent!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > main > h1 {
  margin:0 0 20px!important;line-height:1.25!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > main > :is(section.hero,section.panel,section.box,article.aq-product-sheet) {
  box-sizing:border-box;border-radius:var(--aq-page-radius)!important;
  margin-block:0 20px!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) :is(.panel,.card,.box,.recipe-card,.meal-card,.offer-card) {
  border-radius:var(--aq-page-radius)!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) :is(input:not([type]),input[type=text],input[type=email],input[type=search],input[type=tel],input[type=url],input[type=password],input[type=number],input[type=date],input[type=time],select,textarea):not([disabled]) {
  border:1px solid #aebdcb;border-radius:7px!important;min-height:38px;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) :is(button,.btn,.button,input[type=submit],input[type=button]) {
  border-radius:7px!important;font-size:14px!important;line-height:1.3!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout]) > footer#aq-public-footer {
  margin-top:36px!important;padding-inline:var(--aq-page-gutter)!important;
  box-shadow:none!important;clip-path:none!important;
 }
 html body:has(> #aq-official-masthead[data-aq-layout="gallery"]) > :is(.aq-location-header,.banner,.aq-gallery-search-controls) {
  box-sizing:border-box;width:calc(100% - 2 * var(--aq-page-gutter));max-width:var(--aq-page-width);margin-inline:auto;
 }
 html body:has(> #aq-official-masthead[data-aq-layout="gallery"]) > .aq-location-header {margin-top:var(--aq-page-space);}
 @media(max-width:960px){
  :root{--aq-page-gutter:16px;--aq-page-space:18px;}
  html body #aq-official-masthead[data-aq-layout]{min-height:0!important;padding:8px 16px 12px!important;justify-content:flex-start!important;}
  html body #aq-official-masthead[data-aq-layout] > a{flex:0 0 auto!important;margin:0 auto!important;}
  html body #aq-official-masthead[data-aq-layout] #aq-header-languages{right:auto!important;left:0!important;width:calc(100vw - 32px)!important;max-width:100%!important;align-self:flex-start!important;}
 }
 @media(max-width:732px){
  html body #aq-official-masthead[data-aq-layout] > a{margin-left:0!important;margin-right:0!important;}
 }
 @media(max-width:600px){
  :root{--aq-page-gutter:12px;--aq-page-space:16px;}
  html body:has(> #aq-official-masthead[data-aq-layout]) > header:not(.aq-location-header){padding:16px 12px!important;}
 }
}
