/* assetsblox — variables de la charte (générées depuis design/tokens.json) */
:root {
  /* Couleurs */
  --bg: #0B0D12;
  --surface: #12151C;
  --surface-raised: #181B24;
  --surface-hover: #1F2330;
  --border: #262B38;
  --border-strong: #5A6176;
  --text: #ECEFF5;
  --text-muted: #9AA1B4;
  --brand-100: #E0E7FF;
  --brand-300: #A5B4FC;
  --brand-400: #818CF8;
  --brand-500: #6366F1;
  --brand-600: #4F46E5;
  --brand-700: #4338CA;
  --brand-800: #3730A3;
  --brand-900: #2E2A78;
  --accent: var(--brand-600);
  --accent-hover: #5B54F0;
  --accent-soft: rgba(99, 102, 241, 0.16);
  --accent-text: var(--brand-300);
  --on-accent: #FFFFFF;
  --premium: #F2C14E;
  --premium-hover: #F7CF6B;
  --premium-ink: #1A1406;
  --premium-soft: rgba(242, 193, 78, 0.14);
  --premium-text: #F2C14E;
  --success: #4ADE80;
  --warning: #FB923C;
  --danger: #F87171;
  --danger-solid: #DC2626;
  --focus: var(--brand-300);
  /* Graphiques de l'admin (série Premium plus sombre que --premium pour rester lisible en barres) */
  --chart-free: #6366F1;
  --chart-premium: #B88C2E;
  --chart-grid: #262B38;
  --chart-baseline: #5A6176;
  /* Admin */
  --sidebar-bg: #0F1117;
  --success-soft: rgba(74, 222, 128, 0.12);
  --warning-soft: rgba(251, 146, 60, 0.12);
  --danger-soft: rgba(248, 113, 113, 0.10);
  --overlay: rgba(5, 6, 10, 0.78);
  /* Typographie */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --text-display-size: 64px;
  --text-display-line: 68px;
  --text-display-weight: 700;
  --text-display-tracking: -0.03em;
  --text-h1-size: 44px;
  --text-h1-line: 50px;
  --text-h1-weight: 700;
  --text-h1-tracking: -0.025em;
  --text-h2-size: 32px;
  --text-h2-line: 38px;
  --text-h2-weight: 700;
  --text-h2-tracking: -0.02em;
  --text-h3-size: 22px;
  --text-h3-line: 28px;
  --text-h3-weight: 600;
  --text-h3-tracking: -0.01em;
  --text-body-lg-size: 18px;
  --text-body-lg-line: 30px;
  --text-body-lg-weight: 400;
  --text-body-size: 16px;
  --text-body-line: 26px;
  --text-body-weight: 400;
  --text-body-strong-size: 16px;
  --text-body-strong-line: 26px;
  --text-body-strong-weight: 600;
  --text-small-size: 14px;
  --text-small-line: 22px;
  --text-small-weight: 400;
  --text-button-size: 15px;
  --text-button-line: 20px;
  --text-button-weight: 600;
  --text-code-size: 14px;
  --text-code-line: 22px;
  --text-code-weight: 400;
  --text-label-size: 12px;
  --text-label-line: 16px;
  --text-label-weight: 500;
  --text-label-tracking: 0.08em;
  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  /* radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  /* shadow */
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-premium: 0 0 0 1px rgba(242, 193, 78, 0.45), 0 8px 32px rgba(242, 193, 78, 0.18);
  /* duration */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  /* easing */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 640px) {
  :root {
    --text-display-size: 40px; --text-display-line: 46px;
    --text-h1-size: 32px; --text-h1-line: 38px;
    --text-h2-size: 26px; --text-h2-line: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration-base: 0ms; --duration-slow: 0ms; }
}

/* ==========================================================================
   Compléments du projet. La partie ci-dessus est la copie exacte de
   design/variables.css ; ci-dessous, les valeurs relevées dans les maquettes
   (design/maquettes/html) qui n'ont pas de variable dans la charte. Aucune autre
   feuille de style ne contient de couleur ni de taille en dur.
   ========================================================================== */
:root {
  /* Mise en page (charte : max-width 1440px, marges 4,5 %, 16 px sur mobile) */
  --page-max-width: 1440px;
  --page-gutter: 4.5%;
  --page-gutter-mobile: 16px;
  --measure: 720px;
  --border-width: 1px;
  --focus-width: 2px;
  --focus-offset: 2px;
  --disabled-opacity: 0.45;
  --press-scale: 0.97;

  /* États des boutons relevés dans la planche des composants (survol, appui) */
  --premium-pressed: #E3AE34;
  --danger-hover: #E53E3E;
  --danger-pressed: #B91C1C;
  /* Halo du focus d'un champ (planche des composants : brand-300 à 35 %) */
  --focus-soft: rgba(165, 180, 252, 0.35);
  /* Ligne ajoutée d'une différence proposée par Claude (charte : fond vert à 10 %) */
  --diff-added: rgba(74, 222, 128, 0.10);
  /* Survol discret d'une colonne de graphique, d'une ligne de tableau */
  --highlight: rgba(236, 239, 245, 0.10);

  /* Contrôles (charte : champs de 44 à 48 px, cibles tactiles de 44 px) */
  --touch-target: 44px;
  --control-height: 44px;
  --control-height-input-lg: 48px;
  --control-height-lg: 52px;
  --control-height-xl: 60px;
  --control-padding-x: 14px;
  --control-icon-inset: 2px;
  --control-icon-radius: 10px;
  --control-padding-with-icon: 52px;
  --btn-padding-x: 18px;
  --btn-gap: 8px;
  --btn-lg-gap: 10px;
  --select-icon-right: 14px;
  --select-padding-right: 40px;
  --checkbox-size: 20px;
  --radius-checkbox: 6px;
  --switch-width: 48px;
  --switch-height: 28px;
  --switch-knob: 22px;
  --switch-inset: 3px;
  --switch-travel: 20px;
  --filter-height: 40px;
  --pagination-size: 40px;
  --radius-pagination: 10px;
  --tab-height: 36px;
  --tab-padding-x: 14px;
  --radius-tab: 9px;
  --tabs-padding: 4px;

  /* Badges et statuts (planche des composants, liste des produits) */
  --badge-height: 28px;
  --badge-height-sm: 26px;
  --badge-padding-x: 10px;
  --badge-gap: 6px;
  --badge-icon-stroke: 2;
  --check-stroke: 3;
  /* Modale (charte : largeur maximale 640 px, bouton Fermer de 44 px) */
  --modal-width: 640px;
  --text-badge-size: 13px;
  --status-dot: 7px;
  --status-gap: 7px;

  /* Cartes produit et panneaux */
  --card-padding-top: 18px;
  --card-padding-x: 20px;
  --card-padding-bottom: 20px;
  --card-badge-inset: 14px;
  --card-lift: -4px;
  --panel-padding-top: 20px;
  --panel-padding-x: 28px;
  --panel-padding-bottom: 24px;

  /* Notifications et blocs de code */
  --toast-padding-y: 14px;
  --toast-padding-x: 16px;
  --toast-max-width: 420px;
  --code-header-height: 40px;
  --code-copy-height: 28px;

  /* Textes de l'admin (charte : titre h1 de l'admin à 28 px) */
  --text-title-admin-size: 28px;
  --text-title-admin-line: 34px;
  --text-title-admin-tracking: -0.02em;
  --text-title-admin-mobile-size: 24px;
  --text-title-admin-mobile-line: 30px;
  --text-lead-sm-size: 15px;
  --text-lead-sm-line: 24px;
  --text-lead-sm-mobile-line: 22px;
  --text-xs-size: 13px;
  --text-xs-line: 20px;
  /* Libellés de champ : 14 px en interligne normal de la police (maquettes admin 01-02). */
  --text-field-label-line: 18px;
  --text-chip-size: 11px;
  --text-control-size: 16px;
  --text-code-input-size: 28px;
  --text-code-input-tracking: 0.4em;
  --link-hover: var(--brand-100);
  --placeholder: var(--text-muted);
  --placeholder-faint: var(--border-strong);

  /* Écrans de connexion (maquettes admin 01 et 02) */
  --auth-card-width: 420px;
  --auth-card-padding: 36px;
  --auth-card-padding-mobile-y: 24px;
  --auth-card-padding-mobile-x: 20px;
  --auth-card-gap: 22px;
  --auth-card-gap-mobile: 20px;
  --auth-page-gap: 28px;
  --auth-page-padding-mobile-top: 56px;
  --auth-header-gap: 6px;
  --radius-auth-card-mobile: 20px;
  --icon-box-size: 52px;
  --icon-box-icon: 26px;
  --radius-icon-box: 14px;
  --notice-padding: 14px;
  --notice-padding-mobile: 12px;
  --notice-gap: 10px;
  --notice-icon: 18px;
  --qr-size: 232px;
  /* Fond clair obligatoire derrière un QR code pour que les applications le lisent. */
  --qr-light: #FFFFFF;

  /* Logo et chip « ADMIN » */
  --logo-height: 30px;
  --logo-height-mobile: 26px;
  --brand-gap: 12px;
  --brand-gap-mobile: 10px;
  --chip-height: 24px;
  --chip-height-mobile: 22px;
  --chip-padding-x: 8px;
  --chip-padding-x-mobile: 7px;
  --radius-chip: 6px;

  /* Icônes (charte : Lucide, trait 1,75 px, 16, 20 et 24 px ; 14, 18 et 22 px dans les maquettes) */
  --icon-stroke: 1.75;
  --icon-xs: 14px;
  --icon-sm: 16px;
  --icon-btn: 18px;
  --icon-md: 20px;
  --icon-menu: 22px;
  --icon-lg: 24px;

  /* Coque de l'admin (maquette du tableau de bord) */
  --sidebar-width: 240px;
  --admin-content-min: 560px;
  --sidebar-padding-y: 22px;
  --nav-item-height: 44px;
  --nav-item-height-mobile: 48px;
  --nav-item-gap: 12px;
  --radius-nav-item: 10px;
  --text-nav-size: 15px;
  --avatar-size: 32px;
  --admin-header-padding-y: 22px;
  --admin-header-padding-x: 32px;
  --admin-main-padding-top: 28px;
  --admin-mobile-bar-height: 64px;
  --admin-mobile-gap: 20px;
  --admin-mobile-padding-bottom: 40px;
  --logo-height-admin-mobile: 24px;
  --text-title-admin-bar-mobile-size: 26px;
  --text-title-admin-bar-mobile-line: 32px;

  /* Écrans produits de l'admin (maquettes 04, 05 et 06) */
  --premium-border: rgba(242, 193, 78, 0.45);
  --radius-inner: 14px;
  --control-height-sm: 36px;
  --control-height-input-sm: 40px;
  --icon-box-sm: 40px;
  --step-size: 28px;
  --tag-height: 30px;
  --tag-remove: 24px;
  --radio-size: 18px;
  --progress-height: 6px;
  --search-padding-left: 42px;
  --search-min: 260px;
  --search-max: 360px;
  --table-min: 860px;
  --media-min: 180px;
  --field-min: 240px;
  --field-min-wide: 280px;
  --field-min-narrow: 200px;
  --aside-width: 340px;
  --url-field-min: 320px;
  --menu-min: 210px;
  --tg-bubble-max: 440px;
  --tg-avatar: 36px;
  --tg-line: 21px;
  --archive-line: 26px;
  --text-section-size: 20px;
  --text-section-line: 26px;
  --text-aside-size: 18px;
  --text-aside-line: 24px;
  --modal-padding: 28px;

  /* Styleguide : fonds clairs des tuiles du logo (planche charte/01-logo) */
  --sg-light: #F4F5F9;
  --sg-light-text: #5B6275;
  --sg-white: #FFFFFF;

  /* Animation signature : le module du logo flotte à 1,5 module de son emplacement */
  --module-rise: -3px;
  --module-drop: 15px;
}

/* --------------------------------------------------------------------------
   Site public (maquettes design/maquettes/html/site, ordinateur et mobile)
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs relevées dans les maquettes du site */
  --brand-200: #C7D2FE;
  --premium-faint: rgba(242, 193, 78, 0.06);
  --chip-bg: rgba(11, 13, 18, 0.72);
  --banner-button-bg: #FFFFFF;
  --banner-button-ink: #1E1B4B;
  --demo-border: #2E3342;
  --demo-muted: #8A91A3;
  --demo-success: #22C55E;

  /* En-tête, menu mobile et pied de page */
  --header-min-height: 72px;
  --header-padding-y: 14px;
  --header-gap-x: 28px;
  --header-search-basis: 280px;
  --header-search-min: 200px;
  --site-mobile-bar-height: 64px;
  --mobile-nav-item-height: 56px;
  --text-mobile-nav-size: 20px;
  --mobile-menu-padding-top: 20px;
  --mobile-menu-gap: 20px;
  --footer-padding-top: 56px;
  --footer-gap: 40px;
  --footer-gap-x: 64px;
  --footer-about-basis: 300px;
  --footer-about-max: 380px;
  --footer-col-basis: 160px;
  --footer-about-gap: 14px;
  --footer-nav-gap: 10px;
  --logo-height-footer: 28px;

  /* Rythme des pages */
  --page-top: 40px;
  --page-top-lg: 56px;
  --section-space: 112px;
  --section-space-md: 104px;
  --section-space-sm: 96px;
  --section-space-mobile: 56px;
  --card-min: 300px;
  --card-padding-lg: 28px;
  --card-gap: 14px;
  --icon-tile: 48px;
  --icon-tile-xl: 64px;
  --radius-icon-xl: 18px;
  --prose-max: 760px;

  /* Accueil */
  --hero-padding-top: 88px;
  --hero-padding-top-mobile: 32px;
  --hero-gap: 56px;
  --hero-text-basis: 520px;
  --hero-visual-basis: 460px;
  --hero-visual-min-height: 580px;
  --hero-visual-height-mobile: 360px;
  --hero-title-size: clamp(40px, 4.6vw, 64px);
  --hero-title-line: 1.06;
  --hero-title-mobile-size: 38px;
  --hero-title-mobile-line: 42px;
  --hero-lead-max: 560px;
  --hero-check-gap-x: 24px;
  --hero-chip-height: 32px;
  --deco-tile: 28px;
  --deco-tile-mobile: 20px;
  --deco-tile-lg: 40px;
  --deco-gap: 8px;
  --deco-gap-mobile: 6px;
  --deco-gap-lg: 10px;
  --deco-inset: 24px;
  --deco-banner-top: -20px;
  --deco-block: 160px;
  --deco-block-offset: -24px;
  --panel-basis: 420px;
  --panel-gap: 20px;
  --code-line-padding-y: 10px;
  --banner-padding: 40px;
  --banner-gap-x: 48px;
  --banner-text-max: 620px;
  --text-banner-size: 28px;
  --text-banner-line: 34px;

  /* Fenêtre de démonstration décorative de l'accueil */
  --demo-width: 320px;
  --demo-bar: 46px;
  --demo-label: 22px;
  --demo-button: 38px;
  --demo-row: 42px;
  --demo-theme: 34px;
  --demo-toggle-width: 42px;
  --demo-toggle-height: 24px;
  --demo-knob: 18px;
  --demo-knob-inset: 3px;
  --demo-track: 6px;
  --demo-thumb: 16px;
  --demo-dot: 8px;
  --demo-toast-width: 250px;
  --demo-toast-inset: 28px;
  --demo-toast-bar: 2px;
  --demo-padding: 14px;
  --demo-gap: 8px;
  --text-demo-size: 14px;
  --demo-line: 1.25;
  --text-demo-small-size: 12px;
  --text-demo-close-size: 20px;

  /* Catalogue */
  --filters-gap-x: 16px;
  --segment-height: 34px;
  --sort-basis: 200px;
  --empty-art-width: 84px;
  --empty-text-max: 480px;
  --pagination-gap: 6px;
  --badge-height-xs: 22px;
  --badge-padding-x-xs: 8px;

  /* Fiche produit */
  --gallery-basis: 600px;
  --info-basis: 380px;
  --info-max: 480px;
  --gallery-chip-inset: 20px;
  --border-width-strong: 2px;
  --section-tab-height: 38px;
  --product-layout-top: 40px;
  --product-main-basis: 620px;
  --aside-basis: 300px;
  --aside-max: 360px;
  --feature-min: 240px;
  --compare-min: 520px;
  --compare-min-wide: 560px;
  --compare-max: 920px;
  --compare-col: 140px;
  --compare-col-wide: 210px;
  --compare-col-mobile: 76px;
  --compare-col-mobile-wide: 104px;
  --table-cell-y: 14px;
  --table-cell-x: 20px;
  --table-row-y: 13px;
  --step-badge: 32px;
  --path-basis: 200px;
  --timeline-dot: 12px;
  --timeline-dot-offset: 6px;
  --text-product-title-mobile-size: 34px;
  --text-product-title-mobile-line: 40px;

  /* Téléchargement, page cible Premium, pages d'état */
  --download-top: 72px;
  --download-gap: 28px;
  --download-head-gap: 18px;
  --download-art: 104px;
  --file-thumb-width: 112px;
  --file-thumb-height: 70px;
  --text-button-xl-size: 17px;
  --panel-gap-sm: 18px;
  --status-padding: 80px;
  --status-art: 150px;
  --status-title-size: clamp(36px, 4vw, 52px);
  --status-title-line: 1.1;
  --status-search-max: 440px;

  /* Accès Premium, FAQ et pages légales */
  --premium-hero-gap: 22px;
  --premium-title-max: 860px;
  --info-min: 280px;
  --accordion-padding-y: 18px;
  --accordion-padding-x: 20px;
  --side-nav-basis: 240px;
  --side-nav-basis-lg: 260px;
  --faq-max: 880px;
  --text-legal-line: 28px;
  --legal-term-width: 180px;
  --placeholder-padding-x: 6px;
}

/* --------------------------------------------------------------------------
   Tableau de bord (partie A, étape 8 ; maquettes admin/ordinateur/03 et
   admin/mobile/02) : chiffres clés, graphique des téléchargements par jour,
   tableau par produit, API Claude du mois, derniers téléchargements
   -------------------------------------------------------------------------- */
:root {
  /* Chiffres clés (cartes de 170 px au moins ; 2 colonnes sur mobile) */
  --kpi-min: 170px;
  --kpi-gap: 10px;
  --kpi-gap-mobile: 6px;
  --kpi-padding-mobile: 14px;
  --kpi-featured-padding-x-mobile: 18px;
  --text-kpi-size: 30px;
  --text-kpi-line: 34px;
  --text-kpi-tracking: -0.02em;
  --text-kpi-label-line: 18px;
  --text-kpi-mobile-size: 22px;
  --text-kpi-mobile-line: 28px;
  --text-kpi-sm-size: 24px;
  --text-kpi-sm-line: 30px;

  /* Carrés de couleur des séries (légendes, derniers téléchargements) */
  --swatch: 10px;
  --swatch-lg: 12px;
  --swatch-sm: 8px;
  --radius-swatch: 3px;
  --radius-swatch-sm: 2px;

  /* Graphique « Téléchargements par jour » : barres empilées, Premium en bas */
  --chart-panel-padding-top: 22px;
  --chart-panel-padding-bottom: 20px;
  --chart-panel-gap: 18px;
  --chart-title-basis: 220px;
  --chart-legend-gap-x: 18px;
  --chart-toggle-height: 40px;
  --chart-height: 240px;
  --chart-headroom: 4px;
  --chart-axis-width: 30px;
  --chart-gap: 10px;
  --chart-side-width: 76px;
  --chart-bar-width: 62%;
  --chart-bar-max: 18px;
  --chart-bar-gap: 2px;
  --chart-bar-radius: 4px;
  --chart-column-radius: 6px;
  --chart-tooltip-offset: 8px;
  --chart-height-mobile: 160px;
  --chart-axis-width-mobile: 26px;
  --chart-gap-mobile: 8px;
  --chart-bar-width-mobile: 70%;
  --chart-bar-radius-mobile: 3px;
  --chart-column-radius-mobile: 4px;
  --chart-detail-min-height: 40px;
  --text-chart-axis-mobile-size: 11px;
  --text-chart-axis-mobile-line: 14px;

  /* Tableau « Par produit », cartes mobiles et colonne de droite */
  --dash-table-min: 640px;
  --dash-table-head-y: 10px;
  --dash-table-tracking: 0.06em;
  --dash-head-padding-bottom: 14px;
  --dash-note-padding-top: 14px;
  --dash-note-padding-bottom: 18px;
  --dash-card-padding-y: 14px;
  --dash-card-gap-x: 14px;
  --dash-aside-basis: 300px;
  --dash-box-padding-x: 22px;
  --dash-box-gap: 14px;
  --dash-recent-gap: 6px;
  --text-dash-box-mobile-size: 17px;
  --text-dash-box-mobile-line: 22px;
}
