/* ============================================================
   Pernambucongo Design System — global entry point.
   Consumers link THIS file only. It is a list of @import lines.
   ============================================================ */
/* Pernambucongo webfonts — loaded from Google Fonts.
   NOTE: the original site's exact fonts were not provided. These are the
   closest festive matches: Montserrat (geometric heavy display) + Poppins
   (rounded humanist body). Flagged to the user for confirmation. */

/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/f-fa9410a8.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/f-80361034.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f-fef23f72.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f-40675173.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f-fef23f72.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f-40675173.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/f-fef23f72.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/f-40675173.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/f-fef23f72.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/f-40675173.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/f-fef23f72.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/f-40675173.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f-fdd32fbf.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f-2c64ec86.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f-6c36a31d.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f-35700bd2.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f-b9c13540.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/f-5b056b9f.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/f-ae5af0f6.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/f-a2ed39fd.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f-21ea504f.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/f-c2caf178.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/f-8012f3b0.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/f-93e47d65.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Pernambucongo — Color tokens
   A warm Brazilian-carnaval palette: marigold sun, flame orange,
   turquoise, deep carnaval-night green and warm cream.
   ============================================================ */
:root {
  /* ---- Base palette ---------------------------------------- */
  --pc-marigold:       #FFBD17; /* signature sun-yellow surface  */
  --pc-marigold-deep:  #F2A40B; /* shadowed marigold / borders   */
  --pc-marigold-tint:  #FFE49A; /* soft yellow wash              */

  --pc-flame:          #E0420A; /* orange-red — primary accent   */
  --pc-flame-deep:     #BC360A; /* pressed / dark flame          */
  --pc-mango:          #EB7618; /* bright orange — secondary     */
  --pc-mango-tint:     #F6B27A; /* soft orange wash              */

  --pc-teal:           #5FB8AC; /* turquoise                     */
  --pc-teal-deep:      #3D9C8E; /* pressed teal                  */
  --pc-teal-tint:      #CEEFE4; /* soft teal wash                */

  --pc-ink:            #14211C; /* deep carnaval-night green     */
  --pc-ink-soft:       #2A3733; /* raised dark surface           */

  --pc-cream:          #FFF8E7; /* page background / paper       */
  --pc-cream-deep:     #F4E7C8; /* shadowed cream / dividers     */
  --pc-white:          #FFFFFF;

  /* ---- Text ------------------------------------------------- */
  --pc-text:           #14211C; /* primary text on light         */
  --pc-text-muted:     #5E6B62; /* secondary text on light       */
  --pc-text-on-dark:   #FFF8E7; /* text on ink / flame           */
  --pc-text-on-marigold:#1B1206;/* text on marigold panels       */

  /* ---- Semantic aliases ------------------------------------- */
  --surface-page:      var(--pc-cream);
  --surface-panel:     var(--pc-marigold);   /* big content panels */
  --surface-dark:      var(--pc-ink);        /* dark sections      */
  --surface-card:      var(--pc-white);

  --accent:            var(--pc-flame);       /* primary action     */
  --accent-hover:      #F2541B;
  --accent-active:     var(--pc-flame-deep);
  --accent-2:          var(--pc-teal);        /* info / secondary   */
  --accent-3:          var(--pc-mango);       /* highlights / play  */

  --border:            var(--pc-cream-deep);
  --border-strong:     var(--pc-ink);

  /* ---- Status (festival-friendly) --------------------------- */
  --ok:                var(--pc-teal-deep);
  --warn:              var(--pc-mango);
  --danger:            var(--pc-flame);
}

/* ============================================================
   Pernambucongo — Typography tokens
   Display: Montserrat (heavy, geometric, festive — set UPPERCASE
   with wide tracking for titles). Body/UI: Poppins (rounded humanist).
   ============================================================ */
:root {
  --font-display: 'Montserrat', 'Arial Black', system-ui, sans-serif;
  --font-body:    'Poppins', system-ui, -apple-system, sans-serif;

  /* Weights */
  --fw-regular: 400; /* @kind font */
  --fw-medium:  500; /* @kind font */
  --fw-semibold:600; /* @kind font */
  --fw-bold:    700; /* @kind font */
  --fw-display: 800; /* @kind font */
  --fw-black:   900; /* @kind font */

  /* Type scale (fluid-ready px values) */
  --text-xs:    0.75rem;  /* 12px */
  --text-sm:    0.875rem; /* 14px */
  --text-base:  1rem;     /* 16px */
  --text-md:    1.125rem; /* 18px */
  --text-lg:    1.375rem; /* 22px */
  --text-xl:    1.75rem;  /* 28px */
  --text-2xl:   2.25rem;  /* 36px */
  --text-3xl:   3rem;     /* 48px */
  --text-4xl:   4rem;     /* 64px */
  --text-5xl:   5.25rem;  /* 84px */

  /* Line heights */
  --leading-tight:  1.05;
  --leading-snug:   1.2;
  --leading-normal: 1.55;

  /* Tracking — display titles are widely spaced on this brand */
  --tracking-display: 0.08em;
  --tracking-wide:    0.14em;  /* small caps labels / ribbons */
  --tracking-body:    0;
}

/* Convenience text roles ------------------------------------- */
.pc-display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  color: var(--accent);
}
.pc-title {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-snug);
}
.pc-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--text-sm);
}
.pc-body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  font-size: var(--text-md);
  color: var(--pc-text);
}
.pc-lead {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  line-height: var(--leading-normal);
  font-size: var(--text-lg);
}

/* ============================================================
   Pernambucongo — Spacing, radii, layout tokens
   Generous, breezy spacing; chunky rounded corners on panels.
   ============================================================ */
:root {
  /* Spacing scale (4px base) */
  --space-0:  0;
  --space-1:  0.25rem;  /* 4  */
  --space-2:  0.5rem;   /* 8  */
  --space-3:  0.75rem;  /* 12 */
  --space-4:  1rem;     /* 16 */
  --space-5:  1.5rem;   /* 24 */
  --space-6:  2rem;     /* 32 */
  --space-7:  3rem;     /* 48 */
  --space-8:  4rem;     /* 64 */
  --space-9:  6rem;     /* 96 */
  --space-10: 8rem;     /* 128 */

  /* Radii — friendly and rounded */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* Layout */
  --container-max: 1180px;
  --container-pad: clamp(1rem, 4vw, 3rem);
  --panel-pad: clamp(1.5rem, 4vw, 3.5rem);
}

/* ============================================================
   Pernambucongo — Effects: shadows, borders, motion, motifs
   The brand reads as hand-painted paper: soft drop shadows under
   panels, chunky dark outlines on buttons, zigzag + asterisk motifs.
   ============================================================ */
:root {
  /* Shadows — warm, soft, never grey-blue */
  --shadow-sm:  0 2px 6px rgba(20, 33, 28, 0.12);
  --shadow-md:  0 8px 22px rgba(20, 33, 28, 0.16);
  --shadow-lg:  0 18px 44px rgba(20, 33, 28, 0.22);
  --shadow-panel: 0 14px 40px rgba(188, 54, 10, 0.18); /* warm flame cast */

  /* Chunky outline used on buttons / circles (hand-stamped feel) */
  --outline-ink: 3px solid var(--pc-ink);

  /* Focus ring */
  --focus-ring: 0 0 0 3px var(--pc-cream), 0 0 0 6px var(--pc-flame);

  /* Motion — lively but quick; a touch of bounce on press */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-fast: 120ms; /* @kind other */
  --dur: 200ms; /* @kind other */
  --dur-slow: 380ms; /* @kind other */
}

/* ---- Zigzag divider (orange chevron band) ------------------ */
.pc-zigzag {
  height: 26px;
  width: 100%;
  background: var(--pc-flame);
  -webkit-mask: repeating-linear-gradient(135deg, #000 0 18px, transparent 18px 36px) bottom/36px 100% repeat-x,
                repeating-linear-gradient(45deg, #000 0 18px, transparent 18px 36px) bottom/36px 100% repeat-x;
  mask: repeating-linear-gradient(135deg, #000 0 18px, transparent 18px 36px) bottom/36px 100% repeat-x,
        repeating-linear-gradient(45deg, #000 0 18px, transparent 18px 36px) bottom/36px 100% repeat-x;
  clip-path: polygon(0 0, 5% 100%, 10% 0, 15% 100%, 20% 0, 25% 100%, 30% 0, 35% 100%, 40% 0, 45% 100%, 50% 0, 55% 100%, 60% 0, 65% 100%, 70% 0, 75% 100%, 80% 0, 85% 100%, 90% 0, 95% 100%, 100% 0);
}

/* ---- Grain / paper texture overlay (subtle) ---------------- */
.pc-grain {
  position: relative;
}
.pc-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(20,33,28,0.9) 0.5px, transparent 0.6px);
  background-size: 4px 4px;
  border-radius: inherit;
}

/* ---- Asterisk / sparkle accent (decorative) ---------------- */
.pc-aster {
  color: var(--pc-flame);
  font-family: var(--font-display);
  line-height: 0;
  display: inline-block;
}

  html, body { margin: 0; background: var(--pc-cream); }
  * { box-sizing: border-box; }
  a { color: var(--pc-flame); }
  a:hover { color: var(--pc-flame-deep); }


/* ============================================================
   Pernambucongo — Adaptation mobile, tablette et grand écran
   ------------------------------------------------------------
   Les mises en page principales sont pilotées depuis le code
   (hook usePCLayout, points de rupture 640 / 780 / 1024 px).
   Ce fichier ne traite que ce qui relève vraiment du CSS :
   typographie fluide, images, cibles tactiles, filets de
   sécurité contre tout débordement horizontal.
   ============================================================ */

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }

/* Rien ne peut dépasser la largeur de l'écran. */
img, video, iframe, svg, table { max-width: 100%; }
/* `height:auto` seulement si l'élément ne fixe pas déjà sa hauteur, sinon on
   casserait les cadres en object-fit: cover (photos produits, vignettes). */
img:not([style*="height"]), video:not([style*="height"]) { height: auto; }

/* Les mots trop longs (URL, adresse e-mail) se coupent — mais `break-word`
   et non `anywhere` : `anywhere` autorise la colonne à se réduire jusqu'à
   une lettre de large, ce qui hachait les titres verticalement. */
h1, h2, h3, h4, p, li, a, span, button, label, td, th {
  overflow-wrap: break-word;
}
/* Césure française pour les paragraphes étroits. */
@media (max-width: 640px) {
  p { hyphens: auto; -webkit-hyphens: auto; }
}

/* Aucune case de grille ne pousse sa grille au-delà de l'écran. */
[style*="grid-template-columns"] > * { min-width: 0; }

/* ---- Typographie fluide ---------------------------------------------------- */
@media (max-width: 780px) {
  :root {
    --text-4xl: clamp(2.1rem, 8vw, 3rem);
    --text-3xl: clamp(1.9rem, 7vw, 2.6rem);
    --text-2xl: clamp(1.6rem, 6vw, 2.1rem);
    --text-xl:  clamp(1.35rem, 5vw, 1.7rem);
  }
}
@media (max-width: 400px) {
  /* Très petits écrans (iPhone SE) : on resserre encore l'interlettrage des
     gros titres d'affichage, très espacés par défaut. */
  h1, h2 { letter-spacing: 0.01em !important; }
  :root { --container-pad: 0.9rem; --panel-pad: 1rem; }
}

/* ---- Confort tactile ------------------------------------------------------- */
@media (pointer: coarse) {
  /* Cible d'au moins 44 px : recommandation WCAG 2.5.5. */
  button, [role="button"], a[href], select, input[type="date"], input[type="time"] {
    min-height: 44px;
  }
  /* 16 px minimum dans les champs, sinon iOS zoome automatiquement au focus. */
  input, select, textarea { font-size: max(16px, var(--text-base)); }
}

/* ---- Filet de sécurité ----------------------------------------------------- */
/* Si une mise en page oubliée restait sur deux colonnes en dessous de 560 px,
   elle repasse sur une colonne plutôt que de déborder. */
@media (max-width: 560px) {
  [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]):not([style*="auto 1fr"]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  [style*="display: flex"], [style*="display:flex"] { flex-wrap: wrap; }
}

/* ---- Grands écrans --------------------------------------------------------- */
@media (min-width: 1600px) {
  /* Le contenu ne s'étire pas indéfiniment : les lignes resteraient trop longues. */
  :root { --container-max: 1280px; }
}

/* ---- Lien d'évitement clavier ---------------------------------------------- */
.pc-skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.pc-skip:focus {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: auto; height: auto; clip: auto; clip-path: none;
  background: var(--pc-ink); color: var(--pc-cream);
  padding: 0.8rem 1.2rem; font-family: var(--font-display); font-weight: 700;
  text-decoration: none;
}

/* ---- Impression ------------------------------------------------------------ */
@media print {
  header, footer nav { display: none !important; }
  body { background: #fff; }
}

/* ---- Préférence système « réduire les animations » ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Boutons et rubans : libellés qui passent à la ligne si nécessaire ------ */
/* Le système de design fixe `white-space: nowrap` sur les boutons et les
   rubans (libellés courts, aspect « tampon »). Sous 780 px, certains libellés
   dépassaient la largeur de l'écran : on autorise alors le retour à la ligne
   via cette variable, lue directement par les styles inline. */
@media (max-width: 780px) {
  :root { --pc-nowrap: normal; }
}

/* Réserve de place sous le pied de page pour la barre de panier fixe. */
.pc-espace-barre { height: 0; }
@media (max-width: 1023px) {
  .pc-espace-barre { height: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
