  :root {
    --bg: #efefef;
    --surface: #ffffff;
    --ink: #161616;
    --muted: #5c5c5c;
    --line: #d6d6d6;
    --control: #d6d6d6;
    --primary: #212121;
    --on-primary: #ffffff;
    --fill: #212121;
    --on-fill: #ffffff;
    --accent: #212121;
    --tint: color-mix(in srgb, var(--primary) 8%, transparent);
    --cube-top: #b9b9b9;
    --cube-left: #8e8e8e;
    --cube-right: #606060;
    --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }
  /* sombre par défaut ; le thème clair est choisi dans le menu (attribut data-theme="light" sur <html>) */
  :root:not([data-theme="light"]) {
    --bg: #161616;
    --surface: #212121;
    --ink: #ededed;
    --muted: #a9a9a9;
    --line: #3b3b3b;
    --control: #3b3b3b;
    --primary: #8e8e8e;
    --on-primary: #161616;
    --fill: #ffffff;
    --on-fill: #161616;
    --accent: #8e8e8e;
    --tint: color-mix(in srgb, var(--primary) 8%, transparent);
    --cube-top: #b9b9b9;
    --cube-left: #8e8e8e;
    --cube-right: #606060;
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html { color-scheme: light; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    padding: 0 16px 104px;
  }
  .topbar { position: sticky; top: 0; z-index: 20; display: block; margin: 0 -16px 8px; padding: 0 16px; background: transparent; }
  .topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface); opacity: var(--hdr-a, 1); pointer-events: none; } /* fond de l'en-tête : opacité pilotée par le défilement */
  html { overflow-y: scroll; scrollbar-gutter: stable; scroll-padding-top: 80px; } /* la barre de défilement garde sa place : rien ne se décale d'un onglet à l'autre */ /* les défilements vers une ancre ne passent pas sous l'en-tête */
  .topbar-inner { display: flex; align-items: center; justify-content: flex-start; gap: 8px; max-width: 960px; margin: 0 auto; padding: 12px 0; }
  .brand { display: inline-flex; align-items: center; gap: 10px; margin-left: 4px; font-family: var(--display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
  .brand-logo { display: block; flex: none; width: 36px; height: 36px; border-radius: 9px; } /* un peu plus petit que le bouton burger (40 px) : à l'œil, il paraît de la même taille que sa zone de survol */
  .brand:hover { opacity: 0.8; }
  .brand:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
  .bar[hidden] { display: none; }
  .breadcrumb { margin-top: 24px; }
  .breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.875rem; }
  .breadcrumb a { color: var(--muted); text-decoration: none; }
  .breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .breadcrumb a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
  .breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
  .breadcrumb li + li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 10px 1px 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.6;
  }
  .breadcrumb + header { padding-top: 16px; }
  body.is-accueil { padding-bottom: 48px; }
  body.is-accueil .topbar { margin-bottom: 0; }
  #view-accueil { min-height: 60vh; }
  .hero { display: flex; flex-direction: column; align-items: center; gap: 40px; padding-top: 40px; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-text h1, .hero-text h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 9vw, 5rem); line-height: 1.05; letter-spacing: -0.03em; }
  .hero-sub { margin: 12px auto 28px; color: var(--muted); font-size: 1.125rem; max-width: 36ch; }
  .cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--fill);
    color: var(--on-fill);
    font-weight: 700;
    text-decoration: none;
  }
  .cta:hover { filter: brightness(0.9); }
  .cta:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  /* test : texte et bouton au centre de la photo, sur un calque sombre */
  .hero-media { position: relative; width: 100%; max-width: 960px; }
  .hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); }
  .hero-overlay h1, .hero-overlay h2 { color: #ffffff; font-size: clamp(2.25rem, 8vw, 4.5rem); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4); }
  .hero-overlay .hero-sub { margin: 10px auto 32px; color: rgba(255, 255, 255, 0.9); }
  .hero-overlay .hero-sub:last-child { margin-bottom: 0; }
  .hero-overlay .cta { background: linear-gradient(135deg, #d0f281 0%, #7bc06b 100%); color: #161616; } /* dégradé en diagonale, du haut à gauche vers le bas à droite (couleurs du logo) */
  /* carrousel : les diapositives (photo + calque + texte) glissent, les points restent en bas au centre de la photo */
  .carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; }
  .carousel-track::-webkit-scrollbar { display: none; }
  .carousel-track:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  .slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
  .carousel-dots { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; display: flex; justify-content: center; }
  .dot { display: grid; place-items: center; width: 20px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; opacity: 0.55; transition: opacity 200ms ease, transform 200ms ease; }
  .dot:hover::before { opacity: 0.9; }
  .dot[aria-current="true"]::before { opacity: 1; transform: scale(1.25); }
  .dot:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; border-radius: 50%; }
  .mosaic-wrap { margin: clamp(88px, 12vw, 136px) 0 48px; }
  .mosaic-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
  .mosaic-title { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.1; }
  .btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid var(--control);
    border-radius: 12px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: border-color 120ms;
  }
  .btn-outline:hover { border-color: var(--primary); }
  .topbar-contact { margin-left: auto; padding: 6px 16px; } /* même design que « Envoyer par message », taille ajustée pour garder la hauteur de l'en-tête */
  .btn-outline:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  /* mosaïque : uniquement des carrés 1:1, en grille alignée à gauche. Grand écran : 3 colonnes × 2 rangées ; mobile : 2 colonnes × 3 rangées */
  .mosaic-wrap { container-type: inline-size; }
  .mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - 16px) / 2); gap: 16px; }
  #view-accueil .mosaic .photo { max-width: none; max-height: none; width: auto; height: 100%; aspect-ratio: auto; border-radius: 8px; }
  #view-accueil .mosaic .photo svg { width: 40px; height: 40px; }
  .mosaic-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--control);
    border-radius: 12px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: border-color 120ms;
  }
  .mosaic-btn svg { width: 22px; height: 22px; flex: none; }
  @media (max-width: 430px) {
    .mosaic-btn span { width: min-content; } /* sur petit écran, le texte passe sur deux lignes et la flèche reste collée à lui */
  }
  @media (max-width: 360px) {
    .mosaic-btn { gap: 6px; padding: 8px; font-size: 1rem; }
    .mosaic-btn svg { width: 20px; height: 20px; }
  }
  .mosaic-btn:hover { border-color: var(--primary); }
  .mosaic-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  @media (min-width: 760px) {
    .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - 48px) / 3); gap: 24px; }
  }
  .features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: clamp(56px, 8vw, 88px) 0 0; padding: 0; list-style: none; text-align: center; }
  .features li { display: flex; flex-direction: column; align-items: center; padding: 28px 24px; border-radius: 16px; background: var(--surface); }
  .feature-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 12px; /* carré aux coins arrondis, comme les boutons */
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink);
  }
  .feature-icon svg { width: 26px; height: 26px; }
  .feature-title { margin: 16px 0 8px; font-size: 1.125rem; }
  .feature-text { margin: 0; max-width: 30ch; color: var(--muted); font-size: 0.9375rem; }
  @media (min-width: 760px) {
    .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  }
  #view-accueil .photo { width: 100%; max-width: 960px; background: var(--surface); aspect-ratio: 96 / 65; border-radius: 8px; }
  /* mobile (moins de 760 px) : la photo d'accueil garde ses marges sur les côtés, comme sur grand écran */
  .photo picture { display: contents; }
  @media (max-width: 759px) {
    .hero { padding-top: 16px; }
    /* le texte et le bouton se placent au-dessus des points du carrousel (qui restent visibles) */
    .hero-overlay { padding: 16px 24px 52px; }
    .hero-overlay h1, .hero-overlay h2 { font-size: clamp(2rem, 9vw, 3rem); }
    .hero-overlay .hero-sub { margin: 6px auto 22px; font-size: 1rem; }
    .hero-overlay .cta { padding: 10px 22px; }
    /* la photo prend environ les 3/4 de la hauteur de l'écran */
    #view-accueil .carousel-track .photo { aspect-ratio: auto; height: 75vh; height: 75svh; min-height: 300px; }
    .slide:first-child .photo img { object-position: 70% 50%; } /* GameCube : on garde la console entière dans le cadre */
  }
  /* téléphones : burger, logo, nom et bouton Contact tiennent sur une seule ligne dans l'en-tête */
  @media (max-width: 480px) {
    .brand { white-space: nowrap; }
    .brand-name { font-size: clamp(0.75rem, 3.5vw, 1rem); }
    .topbar-contact { padding: 6px 12px; }
  }
  /* très petits écrans : seul le logo reste visible, le nom reste lu par les lecteurs d'écran */
  @media (max-width: 359px) {
    .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  }
  #view-accueil .photo svg { width: 56px; height: 56px; }
  .catnav { position: relative; margin-left: -10px; } /* l'icône (20 px dans un bouton de 40 px) s'aligne sur le bord du contenu */
  .burger {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .burger:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .burger:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
  .burger-lines,
  .burger-lines::before,
  .burger-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 200ms ease, top 200ms ease, background-color 200ms ease;
  }
  .burger-lines { position: relative; }
  .burger-lines::before, .burger-lines::after { content: ""; position: absolute; left: 0; }
  .burger-lines::before { top: -6px; }
  .burger-lines::after { top: 6px; }
  .burger[aria-expanded="true"] .burger-lines { background: transparent; }
  .burger[aria-expanded="true"] .burger-lines::before { top: 0; transform: rotate(45deg); }
  .burger[aria-expanded="true"] .burger-lines::after { top: 0; transform: rotate(-45deg); }
  .catmenu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 10;
    width: max-content;
    min-width: 240px;
    padding: 8px;
    white-space: nowrap;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
  .catmenu[hidden] { display: none; }
  .menu-label { margin: 4px 12px 4px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
  .menu-list { list-style: none; margin: 0; padding: 0; }
  .menu-sep { height: 1px; margin: 8px 4px; border: 0; background: var(--line); }
  .catmenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
  }
  .catmenu a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .catmenu a:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
  .menu-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .menu-theme:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .menu-theme:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
  .switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--control); transition: background-color 200ms ease; }
  .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: transform 200ms ease; }
  .menu-theme[aria-checked="true"] .switch { background: linear-gradient(135deg, #d0f281 0%, #7bc06b 100%); } /* vert du logo quand le mode sombre est actif */
  .menu-theme[aria-checked="true"] .switch::after { transform: translateX(18px); background: #161616; }
  .catitem-disabled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    font-weight: 600;
    cursor: not-allowed;
  }
  .catitem-name { color: var(--ink); opacity: 0.45; white-space: nowrap; }
  .cat-tag {
    padding: 2px 10px;
    border: 1px solid var(--muted);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
  }
  main { --side: 320px; --gap: 24px; max-width: 960px; margin: 0 auto; }

  header { padding: 40px 0 36px; display: flex; gap: 18px; align-items: center; }
  h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
  }

  .tabs {
    position: relative;
    display: flex;
    gap: 4px;
    margin: 0 0 32px;
    padding: 4px;
    background: color-mix(in srgb, var(--ink) 6%, var(--bg));
    border-radius: 14px;
  }
  .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 260ms ease;
  }
  .tab-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 0;
    border-radius: 10px;
    background: var(--bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1), width 260ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .tab-indicator.no-anim { transition: none; }
  .tab[aria-selected="true"] { color: var(--ink); }
  .tab[aria-selected="true"] .tab-sub { color: var(--muted); }
  .tab:hover:not([aria-selected="true"]) { color: var(--ink); }
  .tab:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
  .tab-sub { color: var(--muted); font-size: 0.8125rem; font-weight: 400; transition: color 260ms ease; }
  .empty { margin: 0 0 8px; color: var(--muted); }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }

  section, .summary {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
  }
  section + section { margin-top: 28px; }
  .base[hidden] + section { margin-top: 0; }
  h2 {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
  }
  .hint { margin: 0 0 14px; color: var(--muted); font-size: 0.9375rem; }

  .base-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .base-head h2 { margin: 0; font-size: 1.5rem; }
  .base-header { margin: -20px -20px 0; padding: 20px 20px 16px; border-radius: 16px 16px 0 0; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
  .base-header + .accordion { margin-top: 8px; border-top: 0; }
  .base-price { font-family: var(--display); font-weight: 800; font-size: 1.5rem; white-space: nowrap; }
  .base .hint { margin: 4px 0 0; }
  .accordion { margin-top: 12px; border-top: 1px solid var(--line); }
  .pack-note { margin: 14px 0 0; color: var(--muted); font-size: 0.9375rem; font-style: italic; }
  .acc { border-bottom: 1px solid var(--line); }
  .acc:last-child { border-bottom: 0; }
  .acc summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
  }
  .acc summary::-webkit-details-marker { display: none; }
  .acc summary::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 120ms;
  }
  .acc[data-open] summary::after { transform: rotate(-135deg); }
  .acc summary:hover { color: var(--primary); }
  .acc summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
  .acc .extra-desc { margin: 0; max-width: none; }
  .acc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 14px; }
  .photo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: var(--bg);
    color: var(--muted);
    overflow: hidden;
  }
  .photo svg { width: 40px; height: 40px; opacity: 0.5; }
  .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

  .options { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .extra, .extra-row {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 32px;
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--bg);
    transition: border-color 200ms ease, background-color 200ms ease;
  }
  .extra { cursor: pointer; }
  .extra:hover, .extra-row:hover { border-color: var(--accent); }
  .extra.on, .extra-row.on {
    border-color: transparent;
    background:
      linear-gradient(color-mix(in srgb, var(--surface) 50%, var(--bg)), color-mix(in srgb, var(--surface) 50%, var(--bg))) padding-box,
      linear-gradient(135deg, #d0f281 0%, #7bc06b 100%) border-box; /* bordure en dégradé diagonal */
  }
  .extra:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
  .extra input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
  }
  .extra-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 8px; align-items: start; flex: 1; }
  .extra-body > .extra-info { display: contents; }
  .extra-body .extra-name { grid-column: 1; grid-row: 1; }
  .extra-body .extra-right { grid-column: 2; grid-row: 1; }
  .extra-body .extra-desc { grid-column: 1 / -1; grid-row: 2; }
  .choice { gap: 14px 16px; }
  .choice .extra-info { flex: 1 1 100%; }
  .seg { display: flex; flex-wrap: wrap; gap: 8px; }
  .seg-opt { position: relative; cursor: pointer; }
  .seg-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .seg-opt span {
    position: relative;
    display: inline-block;
    padding: 10px 14px;
    border: 2px solid var(--control);
    border-radius: 10px;
    background: var(--surface);
    font-weight: 600;
    transition: background-color 200ms ease, border-color 200ms ease;
  }
  .seg-opt:hover input:not(:checked) + span { border-color: var(--primary); } /* pas d'état de survol sur le choix déjà sélectionné */
  .seg-opt input:checked + span {
    background: linear-gradient(135deg, #d0f281 0%, #7bc06b 100%); /* sélectionné : bouton plein avec le même dégradé que « Découvrir » et « Copier ma commande » */
    background-origin: border-box;
    border-color: transparent;
    color: #161616;
  }
  .seg-opt input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
  .stack { align-items: flex-start; flex-wrap: nowrap; }
  .dimmed { pointer-events: none; border-color: color-mix(in srgb, var(--line) 35%, transparent); }
  .dimmed .extra-name, .dimmed .extra-desc, .dimmed .extra-price, .dimmed .stepper { opacity: 0.35; }
  .dimmed .stepper button:disabled { opacity: 1; }
  .dimmed .extra-price.extra-flag { opacity: 1; }
  .extra-flag {
    padding: 2px 10px;
    border: 1px solid var(--muted);
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
  }
  @media (max-width: 520px) {
    .extra-right.has-flag { flex-direction: column; align-items: flex-end; gap: 2px; }
  }
  .extra-main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1 1 200px; min-width: 0; }
  .extra-main .extra-info { flex: none; }
  .colorcard { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 14px; }
  .colorcard .extra-head { padding: 0; border: 0; border-radius: 0; background: none; }
  /* même écart visible que sous le titre (≈ 18 px) : 14 px d'écart de carte + 1 px.
     Le groupe a 5 px de marge intérieure (compensée par des marges négatives) pour que l'anneau de la case choisie
     (3 px + 2 px de décalage) reste dans le cadre et ne soit pas coupé pendant l'animation d'ouverture. */
  .colorcard .swatches { margin: -4px -5px -5px; padding: 5px; }
  .swatches { display: flex; flex-wrap: wrap; gap: 10px; }
  .swatch-opt { position: relative; cursor: pointer; }
  .swatch-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .swatch {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid var(--control);
    background: var(--surface);
  }
  .swatch.translucent {
    background: repeating-conic-gradient(color-mix(in srgb, var(--ink) 14%, var(--surface)) 0% 25%, var(--surface) 0% 50%) 50% / 12px 12px;
  }
  .swatch svg {
    width: 30px;
    height: 30px;
    stroke: color-mix(in srgb, var(--sw) 45%, var(--ink));
    stroke-width: 3;
    stroke-linejoin: round;
  }
  .swatch .cube-top { fill: color-mix(in srgb, var(--sw) 70%, #fff); }
  .swatch .cube-left { fill: var(--sw); }
  .swatch .cube-right { fill: color-mix(in srgb, var(--sw) 62%, #000); }
  .swatch.translucent svg polygon { fill-opacity: 0.72; }
  .swatch-opt:hover input:not(:checked) + .swatch { border-color: var(--accent); } /* pas d'état de survol sur la couleur déjà sélectionnée */
  .swatch-opt input:checked + .swatch::after {
    content: "";
    position: absolute;
    inset: -5px;
    padding: 3px;
    border-radius: 13px;
    background: linear-gradient(135deg, #d0f281 0%, #7bc06b 100%); /* anneau en dégradé diagonal */
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
  }
  .swatch-opt input:focus-visible + .swatch { outline: 3px dashed var(--primary); outline-offset: 3px; }
  .swatch-opt input:checked:focus-visible + .swatch { outline-offset: 8px; } /* le repère de focus se place autour de l'anneau */
  .swatch-current { color: var(--muted); font-size: 0.9375rem; }
  .swatches[hidden], .swatch-current[hidden], .stepper[hidden], .extra[hidden], .extra-row[hidden], .subchoice[hidden] { display: none; }
  .subchoice { display: flex; flex-direction: column; gap: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
  .subchoice .extra-info { flex: none; }
  .colorcard .stepper { align-self: flex-start; }
  .extra-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 200px; }
  .extra-name { font-weight: 600; }
  .extra-desc { color: var(--muted); font-size: 0.9375rem; }
  .extra-price { font-weight: 700; white-space: nowrap; }
  .extra-right { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
  .box {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--control);
    background: var(--surface);
    transition: background-color 200ms ease, border-color 200ms ease;
  }
  .extra:hover .box { border-color: var(--primary); }
  .extra input:checked + .extra-body .box {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat,
      linear-gradient(135deg, #d0f281 0%, #7bc06b 100%);
    background-origin: border-box;
    background-clip: border-box;
    border-color: transparent;
  }

  .stepper { display: inline-flex; align-items: center; gap: 4px; }
  .stepper button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--control);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
  }
  .stepper button:hover:not(:disabled) { border-color: var(--primary); }
  .stepper button:disabled { opacity: 0.35; cursor: default; }
  .stepper button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
  .stepper output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

  .summary h2 { margin-bottom: 12px; }
  .summary-lines { list-style: none; margin: 0; padding: 0; }
  .summary-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  .summary-lines li:first-child { border-top: 0; }
  .summary-lines .price { white-space: nowrap; font-variant-numeric: tabular-nums; }
  .total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 2px solid var(--ink);
  }
  .total span:first-child { font-weight: 600; }
  .total-amount { font-family: var(--display); font-weight: 800; font-size: 2.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

  .note { color: var(--muted); font-size: 0.875rem; margin: 18px 0 0; }

  .copy-wrap { position: relative; margin-top: 24px; }
  .tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 4px);
    padding: 6px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #161616;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); /* reste visible sur le fond blanc du mode clair */
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms, transform 150ms;
  }
  .tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 8px;
    height: 8px;
    background: inherit;
    transform: translate(-50%, -4px) rotate(45deg);
  }
  .tooltip.show { opacity: 1; transform: translate(-50%, 0); }
  .copy {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #d0f281 0%, #7bc06b 100%); /* même dégradé diagonal que « Découvrir » */
    color: #161616;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .copy:hover:not(:disabled) { filter: brightness(0.9); }
  .copy:disabled { opacity: 0.4; cursor: default; }
  .contact {
    display: block;
    margin-top: 16px;
    padding: 12px 16px;
    border: 2px solid var(--control);
    border-radius: 12px;
    color: var(--ink);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: border-color 120ms;
  }
  .contact:hover { border-color: var(--primary); }
  .contact:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  .copy:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  .status { margin: 8px 0 0; font-size: 0.9375rem; }
  .status:empty { display: none; }
  .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .fallback {
    display: none;
    width: 100%;
    margin-top: 8px;
    min-height: 120px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
  }

  .bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
    transition: transform 200ms ease;
  }
  .bar.is-away { transform: translateY(100%); pointer-events: none; } /* masqué quand le bloc « Ta commande » est à l'écran */
  .bar-total { display: flex; flex-direction: column; line-height: 1.2; }
  .bar-total small { color: var(--muted); }
  .bar-total strong { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
  .bar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d0f281 0%, #7bc06b 100%); /* même dégradé que « Découvrir » et « Copier ma commande » */
    color: #161616;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
  .bar a:hover { filter: brightness(0.9); }
  .bar a svg { width: 18px; height: 18px; flex: none; }
  @media (max-width: 360px) {
    .bar { gap: 8px; }
    .bar a { padding: 10px 12px; gap: 6px; }
  }
  .bar a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

  @media (min-width: 860px) {
    body { padding-bottom: 48px; }
    .layout { grid-template-columns: minmax(0, 1fr) var(--side); align-items: start; }
    .tabs { width: calc(100% - var(--side) - var(--gap)); }
    .summary { position: sticky; top: 88px; }
    .bar { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
  }
