/* Socle requis hors de l'aperçu Artifact (mêmes valeurs que le socle de l'aperçu) */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; font: 14px system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; }
[hidden] { display: none !important; }

  /* Concept : une vitrine de parfumerie tunisienne. Arche rose poudré, filets dorés, bandeau noir pour les offres. */
  :root {
    --bg: #FFFBFA; --surface: #FFFFFF; --ink: #171213; --mute: #6B5E60;
    --blush: #F7E6E3; --rose: #E4B7B2; --gold: #B58A3E; --gold-ink: #8A6422; --gold-soft: #EBD7A9;
    --line: #EBDAD7; --night: #161112; --onnight: #F7ECE9; --ncard: #221A1C;
    --glass: #FFFFFF; --amber: #C9954A; --sand: #E8C9B0; --berry: #9E2F45;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #141011; --surface: #1D1819; --ink: #F6EDEA; --mute: #B5A5A6;
      --blush: #2B1F20; --rose: #C98F8B; --gold: #D2AA62; --gold-ink: #DDBB78; --gold-soft: #5A4524;
      --line: #352A2B; --night: #0B0808; --onnight: #F7ECE9; --ncard: #181112;
      --glass: #2A2223; --amber: #D8A25A; --sand: #C9A58A; --berry: #C4506A;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #141011; --surface: #1D1819; --ink: #F6EDEA; --mute: #B5A5A6;
    --blush: #2B1F20; --rose: #C98F8B; --gold: #D2AA62; --gold-ink: #DDBB78; --gold-soft: #5A4524;
    --line: #352A2B; --night: #0B0808; --onnight: #F7ECE9; --ncard: #181112;
    --glass: #2A2223; --amber: #D8A25A; --sand: #C9A58A; --berry: #C4506A;
    color-scheme: dark;
  }

  body { background: var(--bg); color: var(--ink); font-family: Jost, system-ui, sans-serif; font-size: 16px; overflow-x: clip; }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
  section[id] { scroll-margin-top: 150px; }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

  .wrap { width: 100%; max-width: 1280px; margin-inline: auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
  .eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.4rem;
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
  .btn-ink { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
  .btn-ink:hover { background: var(--gold); border-color: var(--gold); color: #171213; }
  .btn-line { border: 1px solid var(--ink); color: var(--ink); }
  .btn-line:hover { background: var(--ink); color: var(--bg); }
  .btn-gold { background: var(--gold); color: #171213; border: 1px solid var(--gold); }
  .btn-gold:hover { background: transparent; color: var(--gold); }
  .btn[disabled] { opacity: .45; cursor: not-allowed; }
  .chip { min-height: 40px; padding: 0 1rem; border: 1px solid var(--line); font-size: 13px; letter-spacing: .06em; color: var(--mute); background: var(--surface); cursor: pointer; transition: all .2s; }
  .chip:hover { border-color: var(--gold); color: var(--ink); }
  .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

  /* Illustrations produits */
  .art .gf { fill: var(--gold); } .art .gi { fill: var(--gold-ink); }
  .art .wf { fill: var(--glass); } .art .dk { fill: var(--night); }
  .art .lbl { fill: var(--surface); opacity: .92; }
  .art .st { stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
  .art .ln { stroke: var(--ink); stroke-width: 1; fill: none; stroke-linecap: round; }
  .art .shadow { fill: var(--ink); opacity: .12; }
  .art .l-rose { fill: var(--rose); } .art .l-amber { fill: var(--amber); } .art .l-gold { fill: var(--gold-soft); }
  .art .l-berry { fill: var(--berry); } .art .l-sand { fill: var(--sand); } .art .l-dark { fill: var(--night); }

  .tile { background: radial-gradient(120% 90% at 50% 100%, var(--rose) -40%, var(--blush) 62%); position: relative; }
  .arch { border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--blush), var(--rose) 160%); }
  .arch-line { border-radius: 999px 999px 0 0; border: 1px solid var(--gold); }
  .card-img svg, .card-img img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .card:hover .card-img svg, .card:hover .card-img img { transform: translateY(-4px) scale(1.03); }
  .strike { text-decoration: line-through; text-decoration-thickness: 1px; }
  .toast { position: fixed; left: 50%; transform: translate(-50%, 20px); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 70;
    background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; max-width: calc(100vw - 32px); }
  .toast.on { opacity: 1; transform: translate(-50%, 0); }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100vw, 26rem); z-index: 60; background: var(--bg); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); display: flex; flex-direction: column; }
  .drawer.open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 55; background: rgba(10, 6, 7, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .wa-float { position: fixed; z-index: 35; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
  .navlink { position: relative; padding: .35rem 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
  .navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
  .navlink:hover::after, .navlink[aria-current="page"]::after { transform: scaleX(1); }
