/**
 * Top Pneus - Variables CSS
 *
 * Custom properties (variables CSS) utilisées dans tout le thème.
 * Ce fichier doit être chargé en premier pour que les variables
 * soient disponibles dans tous les autres fichiers CSS.
 *
 * @package TopPneus
 * @since 2.0.0
 */

/* ==========================================================================
   VARIABLES CSS - DESIGN TOKENS
   ========================================================================== */

:root {
    /* -------------------------------------------------------------------------
       COULEURS PRINCIPALES - Identité Rouge/Noir
       ------------------------------------------------------------------------- */
    --tp-primary: #1a1a1a;
    --tp-secondary: #E31837;
    --tp-red: #E31837;
    --tp-accent: #16a34a;
    --tp-warning: #d97706;
    --tp-danger: #cf1322;

    /* -------------------------------------------------------------------------
       COULEURS NEUTRES - Échelle de gris
       ------------------------------------------------------------------------- */
    --tp-gray-50: #f9fafb;
    --tp-gray-100: #f3f4f6;
    --tp-gray-200: #e5e7eb;
    --tp-gray-300: #d1d5db;
    --tp-gray-400: #767676;  /* WCAG AA contrast ≥ 4.5:1 on white */
    --tp-gray-500: #6b7280;
    --tp-gray-600: #4b5563;
    --tp-gray-700: #374151;
    --tp-gray-800: #1f2937;
    --tp-gray-900: #111827;

    /* -------------------------------------------------------------------------
       TYPOGRAPHIE
       ------------------------------------------------------------------------- */
    --tp-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Type scale - Major Third (1.250) */
    --tp-text-xs: 0.75rem;    /* 12px - minimum for interactive text */
    --tp-text-sm: 0.875rem;   /* 14px */
    --tp-text-base: 1rem;     /* 16px */
    --tp-text-lg: 1.125rem;   /* 18px */
    --tp-text-xl: 1.25rem;    /* 20px */
    --tp-text-2xl: 1.75rem;   /* 28px */
    --tp-text-3xl: 2.25rem;   /* 36px */

    /* Breakpoints (documented — cannot use in @media, reference only)
       xs:  480px  — small mobile (dictionary, woocommerce)
       sm:  600px  — mid-mobile (footer icons, pages)
       md:  768px  — tablet (main breakpoint)
       bk:  689px  — Blocksy mobile nav toggle [BLOCKSY-INTERNAL]
       tb:  900px  — tablet-landscape (header, footer)
       lg:  1024px — desktop
       xl:  1200px — large desktop (woocommerce)
       wp:  782px  — WP admin bar [DO NOT CHANGE]
    */
    --tp-bp-xs: 480px;
    --tp-bp-sm: 600px;
    --tp-bp-md: 768px;
    --tp-bp-lg: 1024px;
    --tp-bp-xl: 1200px;

    /* -------------------------------------------------------------------------
       ESPACEMENTS - Échelle modulaire
       ------------------------------------------------------------------------- */
    --tp-space-xs: 0.25rem;   /* 4px */
    --tp-space-sm: 0.5rem;    /* 8px */
    --tp-space-md: 1rem;      /* 16px */
    --tp-space-lg: 1.5rem;    /* 24px */
    --tp-space-xl: 2rem;      /* 32px */
    --tp-space-2xl: 3rem;     /* 48px */

    /* -------------------------------------------------------------------------
       BORDURES - Radius
       ------------------------------------------------------------------------- */
    --tp-radius-sm: 4px;
    --tp-radius-md: 6px;
    --tp-radius-lg: 8px;
    --tp-radius-xl: 12px;

    /* -------------------------------------------------------------------------
       OMBRES - Box shadows
       ------------------------------------------------------------------------- */
    --tp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --tp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --tp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* -------------------------------------------------------------------------
       TRANSITIONS
       ------------------------------------------------------------------------- */
    --tp-transition-fast: 0.15s ease;
    --tp-transition-normal: 0.2s ease;
    --tp-transition-slow: 0.3s ease;

    /* -------------------------------------------------------------------------
       CONTAINER WIDTHS
       ------------------------------------------------------------------------- */
    --tp-container-width: 1400px;
    --tp-container-narrow: 1200px;

    /* -------------------------------------------------------------------------
       Z-INDEX SCALE
       ------------------------------------------------------------------------- */
    --tp-z-dropdown: 100;
    --tp-z-sidebar: 990;
    --tp-z-overlay: 998;
    --tp-z-mobile-menu: 999;
    --tp-z-header: 1000;

    /* -------------------------------------------------------------------------
       EXTENDED COLORS
       ------------------------------------------------------------------------- */
    --tp-white: #ffffff;
    --tp-red-light: #fef2f2;
    --tp-red-dark: #b91c1c;

    /* Green scale (success states, stock badges, delivery) */
    --tp-green-50: #f0fff4;
    --tp-green-100: #c6f6d5;
    --tp-green-200: #9ae6b4;
    --tp-green-600: #38a169;
    --tp-green-700: #276749;
    --tp-green-800: #22543d;

    /* -------------------------------------------------------------------------
       EXTENDED TYPE SCALE
       ------------------------------------------------------------------------- */
    --tp-text-2xs: 0.625rem;  /* 10px */
    --tp-text-4xl: 2rem;      /* 32px */
    --tp-text-5xl: 2.5rem;    /* 40px */

    /* -------------------------------------------------------------------------
       EXTENDED RADIUS
       ------------------------------------------------------------------------- */
    --tp-radius-xs: 2px;
    --tp-radius-full: 9999px;

    /* -------------------------------------------------------------------------
       FOCUS & SHADOWS — Extended
       ------------------------------------------------------------------------- */
    --tp-focus-ring: 0 0 0 2px rgba(26, 26, 26, 0.15);
    --tp-shadow-xs: 0 1px 1px rgba(0, 0, 0, 0.03);
    --tp-shadow-red: 0 4px 12px rgba(227, 24, 55, 0.25);

    /* -------------------------------------------------------------------------
       GAMME BADGE COLORS (standardized)
       ------------------------------------------------------------------------- */
    --tp-gamme-premium: #DAA520;
    --tp-gamme-quality: #6b7280;
    --tp-gamme-budget: #96601c;

    /* -------------------------------------------------------------------------
       HEADER / FOOTER — Structural tokens
       ------------------------------------------------------------------------- */
    --tp-header-height: 60px;
    --tp-header-height-mobile: 60px;
    --tp-header-sticky-height: 95px; /* Total fixed header: 60px middle + 35px bottom */
    --tp-header-bottom-row-height: 35px;
    --tp-header-bg: var(--tp-gray-100);
    --tp-header-border: var(--tp-gray-200);
    --tp-footer-bg: var(--tp-gray-900);
    --tp-footer-text: var(--tp-gray-300);
    --tp-footer-heading: var(--tp-white);
}
