/* ============================================================
   BOBOCHIC PARIS — Design Tokens
   Miroir exact du fichier Figma "Styles – Bobochic"
   ============================================================
   Fonts (locales + Google) — injectés par le design system.
   ============================================================ */



/* ============================================================
   Structure :
     1. Primitifs (couleurs brutes, tailles, devices)
     2. Couleurs sémantiques (surface, background, border, foreground)
     3. Spacing sémantique (margin, gap, height, width)
     4. Radius
     5. Line-stroke
     6. Elevation
     7. Typographie (familles, graisses, tailles, tokens composés)
   ============================================================ */


:root {

  /* ==========================================================
     1. PRIMITIFS — COULEURS
     Collection "Primitives" · Mode 1
     ========================================================== */

  /* Neutral */
  --color-neutral-0:    #ffffff;
  --color-neutral-50:   #f9f9f9;
  --color-neutral-100:  #f2f2f2;
  --color-neutral-150:  #e6e6e6;
  --color-neutral-200:  #d9d9d9;
  --color-neutral-250:  #cccccc;
  --color-neutral-300:  #bfbfbf;
  --color-neutral-350:  #b3b3b3;
  --color-neutral-400:  #a6a6a6;
  --color-neutral-450:  #8c8c8c;
  --color-neutral-500:  #808080;
  --color-neutral-550:  #737373;
  --color-neutral-600:  #666666;
  --color-neutral-650:  #595959;
  --color-neutral-700:  #4d4d4d;
  --color-neutral-750:  #404040;
  --color-neutral-800:  #333333;
  --color-neutral-850:  #262626;
  --color-neutral-900:  #1a1a1a;
  --color-neutral-950:  #0b0b0c;
  --color-neutral-1000: #000000;

  /* Red */
  --color-red-100: #fef2f2;
  --color-red-200: #fde1e1;
  --color-red-300: #fbbebe;
  --color-red-400: #f99393;
  --color-red-500: #f75556;
  --color-red-600: #e80206;
  --color-red-700: #c90205;
  --color-red-800: #a40104;
  --color-red-900: #740103;

  /* Green */
  --color-green-100: #f2fef2;
  --color-green-200: #e1fde1;
  --color-green-300: #bffbbe;
  --color-green-400: #95f893;
  --color-green-500: #58f655;
  --color-green-600: #17e702;
  --color-green-700: #14c802;
  --color-green-800: #10a301;
  --color-green-900: #0b7301;

  /* Orange */
  --color-orange-100: #fef6f2;
  --color-orange-200: #fdebe1;
  --color-orange-300: #fbd4be;
  --color-orange-400: #f8bb93;
  --color-orange-500: #f69e55;
  --color-orange-600: #e78502;
  --color-orange-700: #c87302;
  --color-orange-800: #a35e01;
  --color-orange-900: #734201;

  /* Yellow */
  --color-yellow-100: #fefbf2;
  --color-yellow-200: #fdf6e1;
  --color-yellow-300: #fbecbe;
  --color-yellow-400: #f8e293;
  --color-yellow-500: #f6d855;
  --color-yellow-600: #e7c602;
  --color-yellow-700: #c8ab02;
  --color-yellow-800: #a38c01;
  --color-yellow-900: #736301;


  /* ==========================================================
     1. PRIMITIFS — TAILLES
     ========================================================== */

  --size-0:  0;
  --size-1:  2px;
  --size-2:  4px;
  --size-3:  8px;
  --size-4:  16px;
  --size-5:  24px;
  --size-6:  32px;
  --size-7:  40px;
  --size-8:  48px;
  --size-9:  56px;
  --size-10: 64px;
  --size-11: 80px;
  --size-12: 96px;
  --size-13: 120px;
  --size-14: 144px;
  --size-15: 200px;
  --size-16: 256px;


  /* ==========================================================
     1. PRIMITIFS — DEVICES
     ========================================================== */

  --device-mobile-width:  393px;
  --device-mobile-height: 852px;
  --device-tablet-width:  834px;
  --device-tablet-height: 1194px;
  --device-desktop-width:  1536px;
  --device-desktop-height: 864px;


  /* ==========================================================
     2. COULEURS SÉMANTIQUES
     Collection "Color" · Mode "Value"
     ========================================================== */

  /* --- $surface --- */
  --color-surface-0:  var(--color-neutral-0);
  --color-surface-1:  var(--color-neutral-50);
  --color-surface-2:  var(--color-neutral-100);
  --color-surface-3:  var(--color-neutral-150);
  --color-surface-4:  var(--color-neutral-200);
  --color-surface-5:  var(--color-neutral-350);
  --color-surface-6:  var(--color-neutral-550);
  --color-surface-7:  var(--color-neutral-800);
  --color-surface-8:  var(--color-neutral-850);
  --color-surface-9:  var(--color-neutral-900);
  --color-surface-10: var(--color-neutral-950);

  /* --- $background --- */
  --color-background-neutral-0:  var(--color-neutral-0);
  --color-background-neutral-1:  var(--color-neutral-50);
  --color-background-neutral-2:  var(--color-neutral-100);
  --color-background-neutral-3:  var(--color-neutral-150);
  --color-background-neutral-4:  var(--color-neutral-200);
  --color-background-neutral-5:  var(--color-neutral-350);
  --color-background-neutral-6:  var(--color-neutral-550);
  --color-background-neutral-7:  var(--color-neutral-800);
  --color-background-neutral-8:  var(--color-neutral-850);
  --color-background-neutral-9:  var(--color-neutral-900);
  --color-background-neutral-10: var(--color-neutral-950);
  --color-background-red-light:    var(--color-red-200);
  --color-background-red-dark:     var(--color-red-800);
  --color-background-green-light:  var(--color-green-200);
  --color-background-green-dark:   var(--color-green-900);
  --color-background-orange-light: var(--color-orange-200);
  --color-background-orange-dark:  var(--color-orange-700);
  --color-background-yellow-light: var(--color-yellow-200);
  --color-background-yellow-dark:  var(--color-yellow-600);

  /* --- $border --- */
  --color-border-neutral-0:  var(--color-neutral-0);
  --color-border-neutral-1:  var(--color-neutral-50);
  --color-border-neutral-2:  var(--color-neutral-100);
  --color-border-neutral-3:  var(--color-neutral-150);
  --color-border-neutral-4:  var(--color-neutral-200);
  --color-border-neutral-5:  var(--color-neutral-350);
  --color-border-neutral-6:  var(--color-neutral-550);
  --color-border-neutral-7:  var(--color-neutral-800);
  --color-border-neutral-8:  var(--color-neutral-850);
  --color-border-neutral-9:  var(--color-neutral-900);
  --color-border-neutral-10: var(--color-neutral-950);
  --color-border-red-light:    var(--color-red-200);
  --color-border-red-dark:     var(--color-red-800);
  --color-border-green-light:  var(--color-green-200);
  --color-border-green-dark:   var(--color-green-900);
  --color-border-orange-light: var(--color-orange-200);
  --color-border-orange-dark:  var(--color-orange-700);
  --color-border-yellow-light: var(--color-yellow-200);
  --color-border-yellow-dark:  var(--color-yellow-600);

  /* --- $foreground --- */
  --color-foreground-neutral-0:  var(--color-neutral-0);
  --color-foreground-neutral-1:  var(--color-neutral-50);
  --color-foreground-neutral-2:  var(--color-neutral-100);
  --color-foreground-neutral-3:  var(--color-neutral-150);
  --color-foreground-neutral-4:  var(--color-neutral-200);
  --color-foreground-neutral-5:  var(--color-neutral-350);
  --color-foreground-neutral-6:  var(--color-neutral-550);
  --color-foreground-neutral-7:  var(--color-neutral-800);
  --color-foreground-neutral-8:  var(--color-neutral-850);
  --color-foreground-neutral-9:  var(--color-neutral-900);
  --color-foreground-neutral-10: var(--color-neutral-950);
  --color-foreground-red-light:    var(--color-red-200);
  --color-foreground-red-dark:     var(--color-red-800);
  --color-foreground-green-light:  var(--color-green-200);
  --color-foreground-green-dark:   var(--color-green-900);
  --color-foreground-orange-light: var(--color-orange-200);
  --color-foreground-orange-dark:  var(--color-orange-700);
  --color-foreground-yellow-light: var(--color-yellow-200);
  --color-foreground-yellow-dark:  var(--color-yellow-600);


  /* ==========================================================
     3. SPACING SÉMANTIQUE
     Collection "Number" · Mode "Value"
     ========================================================== */

  /* Margins — Mobile */
  --spacing-margin-mobile-sm: var(--size-3);   /*  8px */
  --spacing-margin-mobile-md: var(--size-4);   /* 16px */
  --spacing-margin-mobile-lg: var(--size-5);   /* 24px */

  /* Margins — Tablet */
  --spacing-margin-tablet-sm: var(--size-7);   /* 40px */
  --spacing-margin-tablet-md: var(--size-10);  /* 64px */
  --spacing-margin-tablet-lg: var(--size-13);  /* 120px */

  /* Margins — Desktop */
  --spacing-margin-desktop-sm: var(--size-10); /* 64px */
  --spacing-margin-desktop-md: var(--size-14); /* 144px */
  --spacing-margin-desktop-lg: var(--size-16); /* 256px */

  /* Gap */
  --spacing-gap-none: var(--size-0);
  --spacing-gap-xs:   var(--size-1);   /*  2px */
  --spacing-gap-sm:   var(--size-2);   /*  4px */
  --spacing-gap-md:   var(--size-3);   /*  8px */
  --spacing-gap-lg:   var(--size-4);   /* 16px */
  --spacing-gap-xl:   var(--size-5);   /* 24px */
  --spacing-gap-2xl:  var(--size-6);   /* 32px */
  --spacing-gap-3xl:  var(--size-7);   /* 40px */
  --spacing-gap-4xl:  var(--size-8);   /* 48px */
  --spacing-gap-5xl:  var(--size-9);   /* 56px */
  --spacing-gap-6xl:  var(--size-10);  /* 64px */

  /* Height (padding vertical) */
  --spacing-height-none: var(--size-0);
  --spacing-height-xs:   var(--size-1);   /*  2px */
  --spacing-height-sm:   var(--size-2);   /*  4px */
  --spacing-height-md:   var(--size-3);   /*  8px */
  --spacing-height-lg:   var(--size-4);   /* 16px */
  --spacing-height-xl:   var(--size-5);   /* 24px */
  --spacing-height-2xl:  var(--size-6);   /* 32px */
  --spacing-height-3xl:  var(--size-7);   /* 40px */
  --spacing-height-4xl:  var(--size-9);   /* 56px */
  --spacing-height-5xl:  var(--size-10);  /* 64px */

  /* Width (padding horizontal) */
  --spacing-width-none: var(--size-0);
  --spacing-width-xs:   var(--size-1);    /*  2px */
  --spacing-width-sm:   var(--size-2);    /*  4px */
  --spacing-width-md:   var(--size-3);    /*  8px */
  --spacing-width-lg:   var(--size-4);    /* 16px */
  --spacing-width-xl:   var(--size-5);    /* 24px */
  --spacing-width-2xl:  var(--size-6);    /* 32px */
  --spacing-width-3xl:  var(--size-7);    /* 40px */
  --spacing-width-4xl:  var(--size-10);   /* 64px */
  --spacing-width-5xl:  var(--size-11);   /* 80px */


  /* ==========================================================
     4. RADIUS
     ========================================================== */

  --radius-none:   var(--size-0);    /*   0 */
  --radius-sm:     var(--size-2);    /*   4px */
  --radius-md:     var(--size-3);    /*   8px */
  --radius-lg:     var(--size-4);    /*  16px */
  --radius-xl:     var(--size-6);    /*  32px */
  --radius-full:   var(--size-16);   /* 256px */
  --radius-badge:  var(--size-0);    /*   0 — badges & flags */
  --radius-button: var(--size-0);    /*   0 */


  /* ==========================================================
     5. LINE-STROKE
     ========================================================== */

  --line-stroke-base: 1px;
  --line-stroke-bold: 2px;


  /* ==========================================================
     6. ELEVATION
     ========================================================== */

  --elevation-sm: 0px 0px 25px rgba(12, 12, 13, 0.05);
  --elevation-md: 0px 0px 25px rgba(12, 12, 13, 0.10);
  --elevation-lg: 0px 0px 25px rgba(12, 12, 13, 0.15);


  /* ==========================================================
     7. TYPOGRAPHIE — PRIMITIFS
     Collection "Typography" · Mode 1
     ========================================================== */

  /* Familles */
  --font-family-text:     "Hanken Grotesk", sans-serif;
  --font-family-heading:  "Hanken Grotesk", sans-serif;
  --font-family-display:  "Hanken Grotesk", sans-serif;
  --font-family-subtitle: "Hanken Grotesk", sans-serif;
  --font-family-utility:  "Hanken Grotesk", sans-serif;
  --font-family-product:  "Hanken Grotesk", sans-serif;
  --font-family-code:     "Hanken Grotesk", sans-serif;

  /* Graisses */
  --font-weight-base:      400;  /* Regular */
  --font-weight-medium:    600;  /* SemiBold */
  --font-weight-strong:    700;  /* Bold */
  --font-weight-stronger:  800;  /* ExtraBold */
  --font-weight-strongest: 900;  /* Black */

  /* Tailles */
  --font-size-xs:  10px;
  --font-size-sm:  12px;
  --font-size-md:  14px;
  --font-size-lg:  18px;
  --font-size-xl:  25px;
  --font-size-2xl: 31px;
  --font-size-3xl: 39px;
  --font-size-4xl: 49px;
  --font-size-5xl: 61px;
  --font-size-6xl: 76px;
  --font-size-7xl: 95px;
  --font-size-8xl: 119px;

  /* Interlignages */
  --line-height-xs:   12px;
  --line-height-flag: 14px;
  --line-height-sm:   16px;
  --line-height-md:   20px;
  --line-height-lg:   24px;
  --line-height-xl:   28px;
  --line-height-2xl:  35px;
  --line-height-3xl:  48px;
  --line-height-4xl:  64px;
  --line-height-5xl:  76px;
  --line-height-6xl:  100px;
  --line-height-7xl:  125px;
  --line-height-8xl:  150px;

  /* Échelle serrée — interlignes des display et des titres. Le texte courant
     et les styles utilitaires gardent l'échelle générale ci-dessus. */
  --line-height-tight-7xl: 100px;
  --line-height-tight-6xl: 80px;
  --line-height-tight-5xl: 64px;
  --line-height-tight-4xl: 52px;
  --line-height-tight-3xl: 42px;
  --line-height-tight-2xl: 34px;
  --line-height-tight-xl:  28px;
  --line-height-tight-lg:  22px;
  --line-height-tight-md:  18px;
  --line-height-tight-sm:  16px;

  /* Interlettrages */
  --letter-spacing-default: -0.16px;
  --letter-spacing-caps:     0.48px;
  --letter-spacing-display: -1.5px;
}


/* ============================================================
   7. TYPOGRAPHIE — TOKENS COMPOSÉS
   Classes utilitaires calquées sur la structure Figma
   ============================================================ */

/* --- Display --- */

.display-xl-strong   { font-family: var(--font-family-display); font-weight: var(--font-weight-stronger);  font-size: var(--font-size-7xl); line-height: var(--line-height-tight-7xl); letter-spacing: var(--letter-spacing-display); }
.display-xl          { font-family: var(--font-family-display); font-weight: var(--font-weight-base);      font-size: var(--font-size-7xl); line-height: var(--line-height-tight-7xl); letter-spacing: var(--letter-spacing-display); }
.display-lg-strong   { font-family: var(--font-family-display); font-weight: var(--font-weight-stronger);  font-size: var(--font-size-6xl); line-height: var(--line-height-tight-6xl); letter-spacing: var(--letter-spacing-display); }
.display-lg          { font-family: var(--font-family-display); font-weight: var(--font-weight-base);      font-size: var(--font-size-6xl); line-height: var(--line-height-tight-6xl); letter-spacing: var(--letter-spacing-display); }
.display-md-strong   { font-family: var(--font-family-display); font-weight: var(--font-weight-stronger);  font-size: var(--font-size-5xl); line-height: var(--line-height-tight-5xl); letter-spacing: var(--letter-spacing-display); }
.display-md          { font-family: var(--font-family-display); font-weight: var(--font-weight-base);      font-size: var(--font-size-5xl); line-height: var(--line-height-tight-5xl); letter-spacing: var(--letter-spacing-display); }
.display-sm-strong   { font-family: var(--font-family-display); font-weight: var(--font-weight-stronger);  font-size: var(--font-size-4xl); line-height: var(--line-height-tight-4xl); letter-spacing: var(--letter-spacing-display); }
.display-sm          { font-family: var(--font-family-display); font-weight: var(--font-weight-base);      font-size: var(--font-size-4xl); line-height: var(--line-height-tight-4xl); letter-spacing: var(--letter-spacing-display); }
.display-xs-strong   { font-family: var(--font-family-display); font-weight: var(--font-weight-stronger);  font-size: var(--font-size-3xl); line-height: var(--line-height-tight-3xl); letter-spacing: var(--letter-spacing-display); }
.display-xs          { font-family: var(--font-family-display); font-weight: var(--font-weight-base);      font-size: var(--font-size-3xl); line-height: var(--line-height-tight-3xl); letter-spacing: var(--letter-spacing-display); }
.display-xxs-strong  { font-family: var(--font-family-display); font-weight: var(--font-weight-stronger);  font-size: var(--font-size-2xl); line-height: var(--line-height-tight-2xl); letter-spacing: var(--letter-spacing-display); }
.display-xxs         { font-family: var(--font-family-display); font-weight: var(--font-weight-base);      font-size: var(--font-size-2xl); line-height: var(--line-height-tight-2xl); letter-spacing: var(--letter-spacing-display); }

/* --- Heading / Title --- */

.heading-title-xxl-strong   { font-family: var(--font-family-heading); font-weight: var(--font-weight-strongest); font-size: var(--font-size-4xl); line-height: var(--line-height-tight-4xl); letter-spacing: var(--letter-spacing-default); }
.heading-title-xxl          { font-family: var(--font-family-heading); font-weight: var(--font-weight-base); font-size: var(--font-size-4xl); line-height: var(--line-height-tight-4xl); letter-spacing: var(--letter-spacing-default); }
.heading-title-xl-strong    { font-family: var(--font-family-heading); font-weight: var(--font-weight-stronger); font-size: var(--font-size-3xl); line-height: var(--line-height-tight-3xl); letter-spacing: var(--letter-spacing-default); }
.heading-title-xl           { font-family: var(--font-family-heading); font-weight: var(--font-weight-base); font-size: var(--font-size-3xl); line-height: var(--line-height-tight-3xl); letter-spacing: var(--letter-spacing-default); }
.heading-title-lg-strong    { font-family: var(--font-family-heading); font-weight: var(--font-weight-strong); font-size: var(--font-size-2xl); line-height: var(--line-height-tight-2xl); letter-spacing: var(--letter-spacing-default); }
.heading-title-lg           { font-family: var(--font-family-heading); font-weight: var(--font-weight-base); font-size: var(--font-size-2xl); line-height: var(--line-height-tight-2xl); letter-spacing: var(--letter-spacing-default); }
.heading-title-md-strong    { font-family: var(--font-family-heading); font-weight: var(--font-weight-medium); font-size: var(--font-size-xl); line-height: var(--line-height-tight-xl); letter-spacing: var(--letter-spacing-default); }
.heading-title-md           { font-family: var(--font-family-heading); font-weight: var(--font-weight-base); font-size: var(--font-size-xl); line-height: var(--line-height-tight-xl); letter-spacing: var(--letter-spacing-default); }
.heading-title-sm-strong    { font-family: var(--font-family-heading); font-weight: var(--font-weight-medium); font-size: var(--font-size-lg); line-height: var(--line-height-tight-lg); letter-spacing: var(--letter-spacing-default); }
.heading-title-sm           { font-family: var(--font-family-heading); font-weight: var(--font-weight-base); font-size: var(--font-size-lg); line-height: var(--line-height-tight-lg); letter-spacing: var(--letter-spacing-default); }

/* --- Heading / Subtitle --- */

.heading-subtitle-md { font-family: var(--font-family-subtitle); font-weight: var(--font-weight-medium); font-size: var(--font-size-md); line-height: var(--line-height-tight-md); letter-spacing: var(--letter-spacing-caps); text-transform: uppercase; }
.heading-subtitle-sm { font-family: var(--font-family-subtitle); font-weight: var(--font-weight-medium); font-size: var(--font-size-sm); line-height: var(--line-height-tight-sm); letter-spacing: var(--letter-spacing-caps); text-transform: uppercase; }

/* --- Text --- */

.text-lg-regular { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-lg); line-height: var(--line-height-lg); letter-spacing: var(--letter-spacing-default); }
.text-lg-strong  { font-family: var(--font-family-text); font-weight: var(--font-weight-strong); font-size: var(--font-size-lg); line-height: var(--line-height-lg); letter-spacing: var(--letter-spacing-default); }
.text-lg-italic  { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-lg); line-height: var(--line-height-lg); letter-spacing: var(--letter-spacing-default); font-style: italic; }
.text-lg-strike  { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-lg); line-height: var(--line-height-lg); letter-spacing: var(--letter-spacing-default); text-decoration: line-through; }
.text-lg-link    { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-lg); line-height: var(--line-height-lg); letter-spacing: var(--letter-spacing-default); text-decoration: underline; }

.text-md-regular { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-md); line-height: var(--line-height-md); letter-spacing: var(--letter-spacing-default); }
.text-md-strong  { font-family: var(--font-family-text); font-weight: var(--font-weight-strong); font-size: var(--font-size-md); line-height: var(--line-height-md); letter-spacing: var(--letter-spacing-default); }
.text-md-italic  { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-md); line-height: var(--line-height-md); letter-spacing: var(--letter-spacing-default); font-style: italic; }
.text-md-strike  { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-md); line-height: var(--line-height-md); letter-spacing: var(--letter-spacing-default); text-decoration: line-through; }
.text-md-link    { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-md); line-height: var(--line-height-md); letter-spacing: var(--letter-spacing-default); text-decoration: underline; }

.text-sm-regular { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-sm); line-height: var(--line-height-sm); letter-spacing: var(--letter-spacing-default); }
.text-sm-strong  { font-family: var(--font-family-text); font-weight: var(--font-weight-strong); font-size: var(--font-size-sm); line-height: var(--line-height-sm); letter-spacing: var(--letter-spacing-default); }
.text-sm-italic  { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-sm); line-height: var(--line-height-sm); letter-spacing: var(--letter-spacing-default); font-style: italic; }
.text-sm-strike  { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-sm); line-height: var(--line-height-sm); letter-spacing: var(--letter-spacing-default); text-decoration: line-through; }
.text-sm-link    { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-sm); line-height: var(--line-height-sm); letter-spacing: var(--letter-spacing-default); text-decoration: underline; }

.text-xs-regular { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-xs); line-height: var(--line-height-xs); letter-spacing: var(--letter-spacing-default); }
.text-xs-strong  { font-family: var(--font-family-text); font-weight: var(--font-weight-strong); font-size: var(--font-size-xs); line-height: var(--line-height-xs); letter-spacing: var(--letter-spacing-default); }
.text-xs-italic  { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-xs); line-height: var(--line-height-xs); letter-spacing: var(--letter-spacing-default); font-style: italic; }
.text-xs-strike  { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-xs); line-height: var(--line-height-xs); letter-spacing: var(--letter-spacing-default); text-decoration: line-through; }
.text-xs-link    { font-family: var(--font-family-text); font-weight: var(--font-weight-base);   font-size: var(--font-size-xs); line-height: var(--line-height-xs); letter-spacing: var(--letter-spacing-default); text-decoration: underline; }

/* --- Utility --- */

.utility-label       { font-family: var(--font-family-utility); font-weight: var(--font-weight-medium); font-size: var(--font-size-sm); line-height: var(--line-height-sm);   letter-spacing: var(--letter-spacing-default); }
.utility-helpertext  { font-family: var(--font-family-utility); font-weight: var(--font-weight-base);   font-size: var(--font-size-sm); line-height: var(--line-height-sm);   letter-spacing: var(--letter-spacing-default); }
.utility-breadcrumbs { font-family: var(--font-family-utility); font-weight: var(--font-weight-base);   font-size: var(--font-size-sm); line-height: var(--line-height-sm);   letter-spacing: var(--letter-spacing-default); }
.utility-button-sm   { font-family: var(--font-family-utility); font-weight: var(--font-weight-base);   font-size: var(--font-size-sm); line-height: var(--line-height-sm);   letter-spacing: var(--letter-spacing-default); }
.utility-button-md   { font-family: var(--font-family-utility); font-weight: var(--font-weight-medium); font-size: var(--font-size-md); line-height: var(--line-height-md);   letter-spacing: var(--letter-spacing-default); }
.utility-badge      { font-family: var(--font-family-utility); font-weight: var(--font-weight-medium); font-size: var(--font-size-sm); line-height: var(--line-height-flag); letter-spacing: var(--letter-spacing-default); }
.utility-code-md     { font-family: var(--font-family-code);    font-weight: var(--font-weight-base);   font-size: var(--font-size-md); line-height: var(--line-height-md);   letter-spacing: 0; }

/* --- Utility / Product (prix, noms produit — uppercase + caps spacing) --- */

.utility-product-md  { font-family: var(--font-family-product); font-weight: var(--font-weight-medium); font-size: var(--font-size-xl); line-height: var(--line-height-xl);   letter-spacing: var(--letter-spacing-caps); text-transform: uppercase; }
.utility-product-sm  { font-family: var(--font-family-product); font-weight: var(--font-weight-medium); font-size: var(--font-size-lg); line-height: var(--line-height-md);   letter-spacing: var(--letter-spacing-caps); text-transform: uppercase; }
.utility-product-xs  { font-family: var(--font-family-product); font-weight: var(--font-weight-medium); font-size: var(--font-size-md); line-height: var(--line-height-sm);   letter-spacing: var(--letter-spacing-caps); text-transform: uppercase; }
.utility-product-xxs { font-family: var(--font-family-product); font-weight: var(--font-weight-medium); font-size: var(--font-size-sm); line-height: var(--line-height-flag); letter-spacing: var(--letter-spacing-caps); text-transform: uppercase; }

/* ==========================================================================
   HP Prix Mystère - section de la page d'accueil
   Design system Meridian : toute valeur visuelle vient des tokens Meridian ci-dessus (inclus dans ce fichier).
   Couleurs : tokens sémantiques uniquement, sans jaune. Police : Hanken Grotesk. Coins vifs.
   Seules exceptions, des couleurs réelles de matière (comme le bois du fond de la page Ticket gagnant) :
   le marron du fond, le velours du rideau (photo) et les bois du marteau (d'après la photo du marteau).
   ========================================================================== */

.hpjp,
.hpjp * { box-sizing: border-box; }

.hpjp-section {
  /* Couleur réelle de matière, hors design system : marron foncé du velours du rideau */
  --hpjp-brown: #3b1d0f;
  /* Bois du marteau (noyer foncé, d'après la photo du marteau) : du plus sombre au plus clair */
  --hpjp-wood-0: #21100a;
  --hpjp-wood-1: #3b2014;
  --hpjp-wood-2: #6b3d27;
  --hpjp-wood-3: #a06a47;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Fond marron en CSS pur (aucune image) : halo clair à gauche du centre, bords et coins assombris, teinte plus chaude à droite */
  background:
    radial-gradient(ellipse 47% 81% at 38% 50%, rgba(102, 64, 37, 1) 0%, rgba(102, 64, 37, 0) 100%),
    radial-gradient(ellipse 78% 99% at 50% 50%, rgba(0, 0, 0, 0) 42%, rgba(38, 26, 0, .8) 100%),
    linear-gradient(90deg, #3d231c, #512111 60%, #4b1b0d);
  color: var(--color-foreground-neutral-10);
}

.hpjp {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: var(--font-family-text);
  font-size: var(--font-size-md);
  line-height: var(--line-height-md);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
.hpjp [hidden] { display: none !important; }

/* ------------------------------------------------------------------ rideau */
/* Fond de la section : gris très clair uni (--color-surface-1, #f9f9f9). Le rideau (photo de velours) ferme la scène derrière la carte d'accueil,
   puis ses deux pans se rassemblent sur les côtés pour découvrir le produit. */
.hpjp-curtain {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; overflow: hidden; pointer-events: none;
  transition: opacity 450ms ease;
}
.hpjp-curtain__pan {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background-color: var(--hpjp-brown); background-repeat: no-repeat; background-size: max(200%, 1400px) 100%;
  transition: transform 2400ms cubic-bezier(.5, 0, .15, 1);
  will-change: transform;
}
.hpjp-curtain__pan--l { left: 0; background-position: left center; transform-origin: 0 50%; }
.hpjp-curtain__pan--r { right: 0; background-position: right center; transform-origin: 100% 50%; }
/* Ombres du velours : haut et bas de la photo, et ombre portée au bord où les pans se rejoignent */
.hpjp-curtain__pan::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--hpjp-brown) 88%, transparent) 0%, transparent 24%, transparent 66%, color-mix(in srgb, var(--hpjp-brown) 92%, transparent) 100%);
}
.hpjp-curtain__pan::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14%;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--hpjp-wood-0) 70%, transparent));
}
.hpjp-curtain__pan--l::after { right: 0; }
.hpjp-curtain__pan--r::after { left: 0; transform: scaleX(-1); }
/* Ouverture fluide : le tissu se resserre en glissant, puis sort entièrement de l'écran (on ne le voit plus) */
.hpjp[data-curtain="open"] .hpjp-curtain__pan--l { transform: scaleX(.6) translateX(-104%); }
.hpjp[data-curtain="open"] .hpjp-curtain__pan--r { transform: scaleX(.6) translateX(104%); }
.hpjp[data-curtain="open"] .hpjp-curtain { visibility: hidden; transition: visibility 0s 2500ms; }
.hpjp[data-curtain="none"] .hpjp-curtain { opacity: 0; }

/* ------------------------------------------------------------------ produit détouré, posé sur le marron uni */
.hpjp-stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--spacing-gap-xl); width: 100%; }
.hpjp-product-card { display: flex; flex-direction: column; width: 100%; max-width: 640px; padding: var(--spacing-height-lg) var(--spacing-width-lg); background: var(--color-surface-0); border: var(--line-stroke-base) solid var(--color-border-neutral-3); box-shadow: var(--elevation-lg); }
.hpjp-product-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-surface-1); }
/* Photo du produit (4:3), découverte par le rideau */
.hpjp-product { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hpjp-product.is-in { animation: hpjp-arrive 2600ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hpjp-arrive { from { transform: scale(1.06); } to { transform: none; } }

/* ------------------------------------------------------------------ contenu */
.hpjp-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--spacing-gap-2xl);
  align-content: center;
  width: 100%;
  min-height: 100svh;
  max-width: 1408px;
  margin: 0 auto;
  padding: var(--spacing-height-4xl) var(--spacing-margin-mobile-md);
}
.hpjp-panel { position: relative; z-index: 4; display: flex; flex-direction: column; gap: var(--spacing-gap-xl); width: 100%; max-width: 640px; margin-right: auto; margin-left: auto; align-self: center; }
/* Le produit n'existe que pendant le jeu : les autres écrans restent sur le marron uni */
/* Le produit reste à l'écran pendant le jeu, à la fin et pour qui a déjà participé */
.hpjp:not([data-step="play"]):not([data-step="thanks"]):not([data-step="already"]) .hpjp-stage { display: none; }
.hpjp[data-step="play"] .hpjp-stage, .hpjp[data-step="thanks"] .hpjp-stage, .hpjp[data-step="already"] .hpjp-stage { order: -1; }

/* Carte d'accueil : elle s'efface avant l'ouverture du rideau */
.hpjp.is-leaving .hpjp-screen { opacity: 0; transition: opacity 380ms ease; animation: none; }
/* Carte du prix : déjà en place à côté de l'image, elle est découverte par le rideau en même temps que le produit */
.hpjp[data-step="play"] .hpjp-screen[data-screen="play"] { animation: none; }
/* Déjà participé : pas de rideau. La carte et l'image arrivent exactement en même temps, par le même fondu (l'image sans zoom) */
/* Un seul fondu, porté par le conteneur commun : la carte et la photo ne peuvent pas être décalées */
.hpjp[data-step="already"] .hpjp-main { animation: hpjp-fade 600ms ease both; }
.hpjp[data-step="already"] .hpjp-stage,
.hpjp[data-step="already"] .hpjp-screen[data-screen="already"] { animation: none; }
.hpjp[data-step="already"] .hpjp-curtain { transition: opacity 600ms ease; }
.hpjp[data-step="already"] .hpjp-product.is-in { animation: none; }
@keyframes hpjp-fade { from { opacity: 0; } to { opacity: 1; } }
.hpjp[data-curtain="open"] .hpjp-panel { z-index: 2; }

.hpjp-test-banner { position: relative; z-index: 5; margin: 0; padding: var(--spacing-height-sm) var(--spacing-width-lg); text-align: center; background: var(--color-surface-2); color: var(--color-foreground-neutral-10); font-family: var(--font-family-utility); font-size: var(--font-size-sm); line-height: var(--line-height-sm); }

/* Bloc blanc */
.hpjp-screen--card { background: var(--color-surface-0); color: var(--color-foreground-neutral-10); padding: var(--spacing-height-lg) var(--spacing-width-lg); border: var(--line-stroke-base) solid var(--color-border-neutral-3); box-shadow: var(--elevation-lg); }
.hpjp-screen { display: flex; flex-direction: column; gap: var(--spacing-gap-md); animation: hpjp-enter 300ms ease both; }
.hpjp-screen[hidden] { display: none; }
.hpjp-title { margin: 0; outline: none; font-size: var(--font-size-xl); line-height: var(--line-height-xl); }
/* Offre Early Black Friday en bas des cartes de fin : trait gris de séparation, phrase, bouton */
.hpjp-promo { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-gap-lg); padding-top: var(--spacing-height-xl); border-top: var(--line-stroke-base) solid var(--color-border-neutral-3); }
.hpjp-lead { margin: 0; color: var(--color-foreground-neutral-10); }
@keyframes hpjp-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- Formulaire */
.hpjp-form { display: flex; flex-direction: column; gap: var(--spacing-gap-xl); }
.hpjp-field { display: flex; flex-direction: column; gap: var(--spacing-gap-sm); }
.hpjp-label { font-family: var(--font-family-utility); font-weight: var(--font-weight-medium); font-size: var(--font-size-md); line-height: var(--line-height-md); color: var(--color-foreground-neutral-10); }
.hpjp-req { color: var(--color-foreground-red-dark); }

.hpjp-input-shell {
  display: flex; align-items: stretch; height: var(--spacing-height-3xl);
  border: var(--line-stroke-base) solid var(--color-border-neutral-4); background: var(--color-surface-0);
  transition: border-color 120ms ease-out, box-shadow 150ms cubic-bezier(.16, .84, .44, 1);
}
.hpjp-input-shell:focus-within { border-color: var(--color-border-neutral-5); box-shadow: 0 0 0 3px var(--color-border-neutral-4); }
.hpjp-input-shell.is-error { border-color: var(--color-border-red-dark); }
.hpjp-input-shell.is-error:focus-within { box-shadow: 0 0 0 3px var(--color-border-red-light); }
.hpjp-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 var(--spacing-width-md);
  font-family: var(--font-family-text); font-size: var(--font-size-md); line-height: var(--line-height-md);
  color: var(--color-foreground-neutral-10); border-radius: var(--radius-none);
}
.hpjp-input::placeholder { color: var(--color-foreground-neutral-5); }
.hpjp-help { margin: 0; font-family: var(--font-family-utility); font-size: var(--font-size-sm); line-height: var(--line-height-sm); color: var(--color-foreground-neutral-10); }
.hpjp-help.is-error { color: var(--color-foreground-red-dark); }
.hpjp-help:empty { display: none; }
.hpjp-hint { display: flex; align-items: flex-start; gap: var(--spacing-gap-md); margin: 0; padding: var(--spacing-height-md) var(--spacing-width-lg); background: var(--color-surface-1); border: var(--line-stroke-base) solid var(--color-border-neutral-3); color: var(--color-foreground-neutral-10); }
.hpjp-hint[hidden] { display: none; }
.hpjp-hint__icon { flex: none; display: block; width: 24px; height: 24px; }

/* Case à cocher et boutons radio : composant « Checkbox & Radio » de Meridian (24 x 24, coins vifs). */
.m-control { --control-size: 24px; display: inline-flex; align-items: flex-start; gap: var(--spacing-gap-md); cursor: pointer; user-select: none; -webkit-user-select: none; }
.m-control input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.m-control__box {
  position: relative; flex-shrink: 0; width: var(--control-size); height: var(--control-size);
  background: var(--color-surface-0); border: var(--line-stroke-base) solid var(--color-border-neutral-3);
  transition: background-color 150ms ease, border-color 150ms ease, border-width 150ms ease, box-shadow 150ms ease;
}
.m-control__label { font-weight: var(--font-weight-base, 400); font-family: var(--font-family-text); font-size: var(--font-size-md); line-height: var(--line-height-md); color: var(--color-foreground-neutral-10); }
.m-control:hover input:not(:disabled) ~ .m-control__box { border-color: var(--color-border-neutral-6); border-width: var(--line-stroke-bold); }
.m-control input:focus-visible ~ .m-control__box { box-shadow: 0 0 0 var(--line-stroke-bold) var(--color-border-neutral-4); }
.m-control input:checked ~ .m-control__box { background: var(--color-surface-10); border-color: var(--color-border-neutral-10); border-width: var(--line-stroke-base); }
.m-checkbox .m-control__box { border-radius: var(--radius-none); }
.m-checkbox .m-control__box::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M5 12.5 L10 17.5 L19 7.5' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='miter'/></svg>");
  background-size: 100% 100%; background-repeat: no-repeat; opacity: 0; transform: scale(0.85);
  transition: opacity 150ms ease, transform 150ms cubic-bezier(.2, .8, .2, 1);
}
.m-checkbox input:checked ~ .m-control__box::before { opacity: 1; transform: scale(1); }
.m-radio .m-control__box { border-radius: var(--radius-full); }
.m-radio .m-control__box::before {
  content: ""; position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; border-radius: var(--radius-full);
  background: var(--color-surface-0); opacity: 0; transform: scale(0.5);
  transition: opacity 150ms ease, transform 150ms cubic-bezier(.2, .8, .2, 1);
}
.m-radio input:checked ~ .m-control__box::before { opacity: 1; transform: scale(1); }
.m-control.is-error .m-control__box { border-color: var(--color-border-red-dark); }
.hpjp-consent { align-self: flex-start; }

.hpjp-feedback {
  padding: var(--spacing-height-lg) var(--spacing-width-lg);
  background: var(--color-background-red-light); border: var(--line-stroke-base) solid var(--color-border-red-dark);
  color: var(--color-foreground-red-dark); font-size: var(--font-size-md); line-height: var(--line-height-md);
}
.hpjp-notice {
  padding: var(--spacing-height-lg) var(--spacing-width-lg);
  background: var(--color-surface-1); border: var(--line-stroke-base) solid var(--color-border-neutral-3);
  color: var(--color-foreground-neutral-10); font-size: var(--font-size-md); line-height: var(--line-height-md);
}
.hpjp-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ------------------------------------------------------------------- Boutons (Meridian : Primary, 40 px, coins vifs) */
.hpjp-actions { display: flex; flex-direction: column; gap: var(--spacing-gap-lg); }
.hpjp-btn {
  font-family: var(--font-family-utility); font-weight: var(--font-weight-medium); font-size: var(--font-size-md); line-height: var(--line-height-md);
  letter-spacing: var(--letter-spacing-default); border-radius: var(--radius-button); height: var(--spacing-height-3xl);
  padding: 0 var(--spacing-width-lg); border: var(--line-stroke-base) solid transparent; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-gap-md);
  cursor: pointer; white-space: nowrap; width: 100%; touch-action: manipulation;
}
.hpjp-btn:focus-visible { outline: var(--line-stroke-bold) solid var(--color-border-neutral-10); outline-offset: 2px; }
.hpjp-btn--primary { background: var(--color-surface-10); color: var(--color-foreground-neutral-0); }
.hpjp-btn--primary:hover { background: var(--color-surface-8); }
.hpjp-btn--primary:active { background: var(--color-surface-7); }
/* Bouton-lien (balise a) : les styles de liens du thème (bleu, souligné) ne doivent jamais s'appliquer, dans aucun état */
a.hpjp-btn, a.hpjp-btn:link, a.hpjp-btn:visited, a.hpjp-btn:hover, a.hpjp-btn:focus, a.hpjp-btn:active { text-decoration: none !important; }
a.hpjp-btn--primary, a.hpjp-btn--primary:link, a.hpjp-btn--primary:visited, a.hpjp-btn--primary:hover, a.hpjp-btn--primary:focus, a.hpjp-btn--primary:active { color: var(--color-foreground-neutral-0) !important; }
a.hpjp-btn--primary, a.hpjp-btn--primary:link, a.hpjp-btn--primary:visited { background: var(--color-surface-10); }
a.hpjp-btn--primary:hover { background: var(--color-surface-8); }
a.hpjp-btn--primary:active { background: var(--color-surface-7); }
.hpjp-btn--primary[disabled] { background: var(--color-background-neutral-4); color: var(--color-foreground-neutral-5); cursor: not-allowed; }
/* Le thème stylise tous les liens : on garde les couleurs Meridian dans tous les états. */
#hpjp a.hpjp-rules-link, #hpjp a.hpjp-rules-link:link, #hpjp a.hpjp-rules-link:visited, #hpjp a.hpjp-rules-link:hover, #hpjp a.hpjp-rules-link:focus, #hpjp a.hpjp-rules-link:active { color: var(--color-foreground-neutral-10) !important; text-decoration: underline; text-underline-offset: 3px; }
.hpjp-rules-link { display: inline-flex; align-items: center; min-height: 32px; margin-left: 0; }

/* ------------------------------------------------------------------ Champ du prix */
.hpjp-price {
  display: flex; align-items: stretch; height: var(--spacing-height-3xl); background: var(--color-surface-0);
  border: var(--line-stroke-base) solid var(--color-border-neutral-4);
  transition: border-color 120ms ease-out, box-shadow 150ms cubic-bezier(.16, .84, .44, 1);
}
.hpjp-price:focus-within { border-color: var(--color-border-neutral-5); box-shadow: 0 0 0 3px var(--color-border-neutral-4); }
.hpjp-price.is-error { border-color: var(--color-border-red-dark); animation: hpjp-nope 400ms; }
.hpjp-price.is-error:focus-within { box-shadow: 0 0 0 3px var(--color-border-red-light); }
.hpjp-price__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 var(--spacing-width-md);
  font-family: var(--font-family-text); font-size: var(--font-size-md); line-height: var(--line-height-md);
  color: var(--color-foreground-neutral-10); border-radius: var(--radius-none);
}
.hpjp-price__input::placeholder { color: var(--color-foreground-neutral-5); }
.hpjp-price__input:disabled { color: var(--color-foreground-neutral-10); }
.hpjp-price__cur {
  display: flex; align-items: center; justify-content: center; align-self: stretch; padding: 0 var(--spacing-width-md);
  background: var(--color-surface-1); border-left: var(--line-stroke-base) solid var(--color-border-neutral-4); color: var(--color-foreground-neutral-10);
  font-family: var(--font-family-utility); font-weight: var(--font-weight-medium); font-size: var(--font-size-md); line-height: var(--line-height-md);
}
@keyframes hpjp-nope { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ------------------------------------------------------------------ Coup de marteau (plein écran) */
.hpjp-strike, .hpjp-strike * { box-sizing: border-box; }
.hpjp-strike[hidden], .hpjp-strike [hidden] { display: none !important; }
.hpjp-strike {
  font-family: var(--font-family-text);
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147482000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--spacing-gap-2xl);
  background: color-mix(in srgb, var(--color-background-neutral-10) 93%, transparent);
  opacity: 0; transition: opacity 220ms ease;
}
.hpjp-strike::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-background-neutral-0) 20%, transparent), transparent);
  transform: scale(1.1);
}
.hpjp-strike.is-on { opacity: 1; }
.hpjp-strike.is-off { opacity: 0; transition-duration: 320ms; }
.hpjp-strike__box { position: relative; width: min(72vw, 500px); aspect-ratio: 1200 / 545; }
.hpjp-strike.is-on .hpjp-strike__box { animation: hpjp-shake 1500ms linear both; }
/* Marteau et bloc : photos détourées, calées sur le même cadre. Le marteau pivote autour du bout du manche ; à 0° il touche le bloc. */
.hpjp-strike__bloc, .hpjp-strike__marteau { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.hpjp-strike__marteau { transform-origin: 3.1% 91%; transform: rotate(-8deg); }
.hpjp-strike__bloc { transform-origin: 80.3% 100%; }
.hpjp-strike.is-on .hpjp-strike__marteau { animation: hpjp-swing 1500ms cubic-bezier(.5, 0, .5, 1) both; }
.hpjp-strike.is-on .hpjp-strike__bloc { animation: hpjp-squash 1500ms linear both; }
/* Deux coups : à 28 % (420 ms) et 58 % (870 ms) de la séquence */
@keyframes hpjp-swing {
  0% { transform: rotate(-8deg) translateY(0); }
  12% { transform: rotate(-21deg) translateY(0); }
  28% { transform: rotate(0deg) translateY(3px); }
  36% { transform: rotate(-7deg) translateY(0); }
  46% { transform: rotate(-15deg) translateY(0); }
  58% { transform: rotate(0deg) translateY(3px); }
  66% { transform: rotate(-4deg) translateY(0); }
  78%, 100% { transform: rotate(0deg) translateY(3px); }
}
@keyframes hpjp-squash {
  0%, 27% { transform: none; } 28.5% { transform: translateY(2px) scaleY(.985); } 33%, 57% { transform: none; }
  58.5% { transform: translateY(3px) scaleY(.975); } 64%, 100% { transform: none; }
}
@keyframes hpjp-shake {
  0%, 27.5% { transform: none; }
  29% { transform: translate(-5px, 4px); } 31% { transform: translate(5px, -3px); } 33% { transform: translate(-3px, 2px); } 35%, 57.5% { transform: none; }
  59% { transform: translate(-8px, 6px); } 61% { transform: translate(8px, -5px); } 63% { transform: translate(-5px, 3px); } 65%, 100% { transform: none; }
}

/* Onde de choc : deux anneaux à chaque coup, centrés sur le point d'impact (tête du marteau sur le socle) */
.hpjp-ring {
  position: absolute; left: 80.3%; top: 70.2%; width: 22%; aspect-ratio: 1; margin: -11% 0 0 -11%;
  border: var(--line-stroke-bold) solid var(--color-border-neutral-0); border-radius: var(--radius-full); opacity: 0; pointer-events: none;
}
.hpjp-strike.is-on .hpjp-ring--1 { animation: hpjp-ring 640ms 420ms ease-out forwards, hpjp-ring 760ms 870ms ease-out forwards; }
.hpjp-strike.is-on .hpjp-ring--2 { animation: hpjp-ring 640ms 500ms ease-out forwards, hpjp-ring 760ms 950ms ease-out forwards; }
@keyframes hpjp-ring { 0% { opacity: .95; transform: scale(.25); } 100% { opacity: 0; transform: scale(3.4); } }

/* Traits d'impact : rayons qui jaillissent du point d'impact */
.hpjp-burst { position: absolute; left: 80.3%; top: 70.2%; width: 0; height: 0; pointer-events: none; }
.hpjp-burst i {
  position: absolute; left: -1px; top: 0; width: 3px; height: 38px; background: var(--color-background-neutral-0);
  transform-origin: 50% 0; transform: rotate(var(--a)) translateY(18px) scaleY(0); opacity: 0;
}
.hpjp-strike.is-on .hpjp-burst i { animation: hpjp-ray 520ms var(--t) ease-out both; }
@keyframes hpjp-ray {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(18px) scaleY(0); }
  35% { opacity: 1; transform: rotate(var(--a)) translateY(26px) scaleY(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(64px) scaleY(.2); }
}
/* Éclats de bois et poussière */
.hpjp-chips { position: absolute; left: 80.3%; top: 70.2%; width: 0; height: 0; pointer-events: none; }
.hpjp-chips i {
  position: absolute; left: 0; top: 0; width: 6px; height: 6px; background: var(--color-background-neutral-0); opacity: 0;
}
.hpjp-chips i:nth-child(3n) { width: 4px; height: 4px; background: var(--color-background-neutral-4); }
.hpjp-strike.is-on .hpjp-chips i { animation: hpjp-chip 760ms var(--t) cubic-bezier(.2, .7, .4, 1) both; }
@keyframes hpjp-chip {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
}

/* Mot « Adjugé » : tampon qui s'abat après le premier coup */
.hpjp-strike__word {
  position: absolute; top: 50%; left: 50%; margin: 0; color: var(--color-foreground-neutral-0); text-align: center; white-space: nowrap;
  font-size: var(--font-size-3xl); line-height: var(--line-height-3xl); letter-spacing: var(--letter-spacing-display);
  padding: var(--spacing-height-md) var(--spacing-width-2xl);
  border: var(--line-stroke-bold) solid var(--color-border-neutral-0);
  opacity: 0; transform: translate(-50%, -50%) rotate(-3deg);
}
.hpjp-strike.is-on .hpjp-strike__word { animation: hpjp-stamp 520ms 880ms cubic-bezier(.2, .9, .3, 1.2) both; }
/* Verdict sous « Adjugé » : GAGNÉ en vert, PERDU en rouge (tampons pleins, tokens Meridian) */
.hpjp-strike__verdict {
  position: absolute; top: 50%; left: 50%; margin: 0; text-align: center; white-space: nowrap; opacity: 0;
  padding: var(--spacing-height-md) var(--spacing-width-3xl);
  font-size: var(--font-size-3xl); line-height: var(--line-height-3xl); letter-spacing: var(--letter-spacing-display);
  transform: translate(-50%, -50%);
}
.hpjp-strike__verdict.is-win { background: var(--color-background-green-dark); color: var(--color-foreground-green-light); border: var(--line-stroke-bold) solid var(--color-border-green-light); }
.hpjp-strike__verdict.is-lose { background: var(--color-background-red-dark); color: var(--color-foreground-red-light); border: var(--line-stroke-bold) solid var(--color-border-red-light); }
.hpjp-strike__verdict.is-on { animation: hpjp-verdict 460ms cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes hpjp-verdict {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
  65% { opacity: 1; transform: translate(-50%, -50%) scale(.93); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.hpjp-strike.has-verdict .hpjp-strike__word { animation: none; opacity: 0; }
@keyframes hpjp-stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.2) rotate(-5deg); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(.94) rotate(-3deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
}

/* ------------------------------------------------------------------ Remerciement et décompte */
.hpjp-recap {
  display: inline-flex; align-items: center; gap: var(--spacing-gap-md); align-self: flex-start; margin: 0;
  padding: var(--spacing-height-md) var(--spacing-width-lg); background: var(--color-surface-1);
  border: var(--line-stroke-base) solid var(--color-border-neutral-3); font-size: var(--font-size-md); line-height: var(--line-height-md);
}
.hpjp-recap span { display: block; }
.hpjp-recap.is-win { background: var(--color-background-green-light); border: var(--line-stroke-bold) solid var(--color-border-green-dark); color: var(--color-foreground-green-dark); }
.hpjp-recap.is-lose { background: var(--color-background-red-light); border: var(--line-stroke-bold) solid var(--color-border-red-dark); color: var(--color-foreground-red-dark); }
.hpjp-recap strong { font-family: var(--font-family-display); font-weight: var(--font-weight-stronger); font-size: var(--font-size-xl); line-height: var(--line-height-xl); }
.hpjp-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-gap-md); }
.hpjp-count > div { display: flex; flex-direction: column; align-items: center; padding: var(--spacing-height-lg) var(--spacing-width-md); background: var(--color-surface-10); color: var(--color-foreground-neutral-0); }
.hpjp-count strong { font-family: var(--font-family-display); font-weight: var(--font-weight-stronger); font-size: var(--font-size-2xl); line-height: var(--line-height-2xl); }
.hpjp-count span { font-size: var(--font-size-sm); line-height: var(--line-height-sm); }


/* ------------------------------------------------------------------ Tablette */
@media (min-width: 768px) {
  .hpjp-main { padding-right: var(--spacing-margin-tablet-sm); padding-left: var(--spacing-margin-tablet-sm); }
  .hpjp-screen--card { padding: var(--spacing-height-4xl) var(--spacing-width-4xl); }
  .hpjp-screen { gap: var(--spacing-gap-xl); }
  .hpjp-title { font-size: var(--font-size-2xl); line-height: var(--line-height-2xl); }
  .hpjp-actions { flex-direction: row; }
  .hpjp-btn { width: auto; }
}

/* ------------------------------------------------------------------ Desktop : carte à gauche, produit à droite */
@media (min-width: 1100px) {
  .hpjp-main { padding: 84px var(--spacing-margin-desktop-sm) var(--spacing-height-5xl); gap: var(--spacing-gap-6xl); }
  .hpjp[data-step="play"] .hpjp-main, .hpjp[data-step="thanks"] .hpjp-main, .hpjp[data-step="already"] .hpjp-main { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .hpjp[data-step="play"] .hpjp-stage, .hpjp[data-step="thanks"] .hpjp-stage, .hpjp[data-step="already"] .hpjp-stage { order: 0; align-self: stretch; }
  /* Même hauteur des deux blocs : la photo reste entière (4:3, jamais rognée) ; les deux cadres blancs s'étirent à la hauteur du plus grand, la photo restant centrée */
  .hpjp-product-card { flex: 1 1 auto; justify-content: center; max-width: none; padding: var(--spacing-height-xl) var(--spacing-width-xl); }
  .hpjp[data-step="play"] .hpjp-panel, .hpjp[data-step="thanks"] .hpjp-panel, .hpjp[data-step="already"] .hpjp-panel { align-self: stretch; max-width: none; }
  .hpjp[data-step="play"] .hpjp-panel > .hpjp-screen:not([hidden]), .hpjp[data-step="thanks"] .hpjp-panel > .hpjp-screen:not([hidden]), .hpjp[data-step="already"] .hpjp-panel > .hpjp-screen:not([hidden]) { flex: 1 1 auto; justify-content: center; }
  .hpjp[data-step="play"] .hpjp-screen--card, .hpjp[data-step="thanks"] .hpjp-screen--card, .hpjp[data-step="already"] .hpjp-screen--card { padding: var(--spacing-height-2xl) var(--spacing-width-3xl); }
  /* Autres écrans (accueil, attente, fin du jeu) : une seule carte, au centre */
  .hpjp:not([data-step="play"]):not([data-step="thanks"]):not([data-step="already"]) .hpjp-panel { max-width: 720px; }
}
@media (max-width: 767px) {
  .hpjp-main { gap: var(--spacing-gap-xl); }
  .hpjp-screen { gap: var(--spacing-gap-lg); }
  .hpjp-screen--card { padding: var(--spacing-height-xl) var(--spacing-width-xl); }
  .hpjp-lead.text-lg-regular, .hpjp-lead.text-lg-strong { font-size: var(--font-size-md); line-height: var(--line-height-md); }
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .hpjp-screen, .hpjp-product.is-in { animation: none !important; }
  .hpjp-curtain__pan { transition-duration: 1ms !important; }
  .hpjp-strike { display: none !important; }
}

@media (min-width: 1280px) {
  .hpjp[data-step="play"] .hpjp-screen--card, .hpjp[data-step="thanks"] .hpjp-screen--card, .hpjp[data-step="already"] .hpjp-screen--card { padding: var(--spacing-height-4xl) var(--spacing-width-4xl); }
}
