/* ============================================
   HUNTOOL DESIGN SYSTEM 2026
   Auto-generated for refonte
   ============================================ */

/* --- CSS Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-bg);
}

body {
    min-height: 100vh;
    line-height: 1.6;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* --- Fonts — chargées via <link> dans le <head> HTML (plus fiable que @import) --- */
/* Cabinet Grotesk (display) + Satoshi (body) — Fontshare | Instrument Serif + Space Mono — Google */

/* --- CSS Variables --- */
:root {
    /* ---- Colors ---- */
    /* Primary */
    --orange-50: #fff4ee;
    --orange-100: #ffe4d4;
    --orange-200: #ffc9a8;
    --orange-300: #ffad7d;
    --orange-400: #ff8c56;
    --orange-500: #ff6b35;
    --orange-600: #e85a24;
    --orange-700: #c44a1a;
    --orange-800: #9a3a14;
    --orange-900: #6b280e;

    /* Secondary - Cyber Turquoise */
    --turquoise-50: #edfffe;
    --turquoise-100: #c4fffe;
    --turquoise-200: #8afffd;
    --turquoise-300: #5cefe8;
    --turquoise-400: #00f0ff;
    --turquoise-500: #00d6e6;
    --turquoise-600: #1fa396;
    --turquoise-700: #18827a;
    --turquoise-800: #126460;
    --turquoise-900: #0d4945;

    /* Neutral (Warm Agency Grays) */
    --gray-50: #fdfcfb;
    --gray-100: #f7f5f2;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --gray-950: #1a1a1a;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Semantic aliases */
    --color-primary: var(--orange-500);
    --color-accent: var(--turquoise-400);
    --color-secondary: var(--turquoise-400);
    --color-text: var(--gray-950);
    --color-text-muted: var(--gray-600);
    --color-text-light: var(--gray-500);
    --color-bg: #ffffff;
    --color-bg-alt: var(--gray-50);
    --color-bg-dark: var(--gray-950);
    --color-bg-card: #ffffff;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.15);

    /* Glassmorphism Light */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    /* ---- Typography (Option E — Bricolage Grotesque + DM Sans) ---- */
    --font-display: "Bricolage Grotesque", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --font-hand: var(--font-display);
    --font-mono: "Space Mono", monospace;
    --font-serif: "Instrument Serif", serif;

    /* Font sizes - fluid with clamp */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
    --text-4xl: clamp(1.875rem, 3vw + 0.5rem, 2.25rem);
    --text-5xl: clamp(2.25rem, 4vw + 0.5rem, 3rem);
    --text-6xl: clamp(2.75rem, 5vw + 0.5rem, 3.75rem);
    --text-7xl: clamp(3rem, 6vw + 0.5rem, 4.5rem);

    /* Font weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-black: 900;

    /* Line heights */
    --leading-none: 1;
    --leading-tight: 1.2;
    --leading-snug: 1.35;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    --leading-loose: 1.8;

    /* Letter spacing */
    --tracking-tighter: -0.04em;
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* ---- Spacing (8px grid) ---- */
    --space-0: 0;
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem; /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem; /* 16px */
    --space-5: 1.25rem; /* 20px */
    --space-6: 1.5rem; /* 24px */
    --space-8: 2rem; /* 32px */
    --space-10: 2.5rem; /* 40px */
    --space-12: 3rem; /* 48px */
    --space-16: 4rem; /* 64px */
    --space-20: 5rem; /* 80px */
    --space-24: 6rem; /* 96px */
    --space-32: 8rem; /* 128px */

    /* ---- Shadows ---- */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);

    /* Colored shadows */
    --shadow-orange: 0 4px 14px rgba(255, 107, 53, 0.25);
    --shadow-orange-lg: 0 10px 30px rgba(255, 107, 53, 0.3);
    --shadow-turquoise: 0 4px 14px rgba(64, 224, 208, 0.25);

    /* ---- Border Radius (Sharp/Tech) ---- */
    --radius-xs: 0px;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 24px;
    --radius-full: 9999px;

    /* ---- Transitions ---- */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --duration-fast: 120ms;
    --duration-base: 200ms;
    --duration-slow: 300ms;
    --duration-slower: 450ms;
    --duration-slowest: 550ms;

    /* ---- Layout ---- */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;

    --gutter: var(--space-6);

    /* ---- Z-index scale ---- */
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-overlay: 40;
    --z-modal: 50;
    --z-toast: 60;
    --z-cursor: 9999;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container-lg {
    max-width: var(--container-2xl);
}

.container-sm {
    max-width: var(--container-md);
}

/* --- Base Typography --- */
h1,
.h1 {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-black);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    color: var(--gray-950);
}

h2,
.h2 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--gray-950);
}

h3,
.h3 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--gray-900);
}

h4,
.h4 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-snug);
    color: var(--gray-900);
}

h5,
.h5 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-normal);
    color: var(--gray-800);
}

h6,
.h6 {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    line-height: var(--leading-normal);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-primary);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-muted);
}

p + p {
    margin-top: var(--space-4);
}

strong,
b {
    font-weight: var(--font-semibold);
}

/* --- Instrument Serif accent --- */
.serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* --- Links --- */
a {
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--color-primary);
}

/* --- Selection --- */
::selection {
    background: var(--orange-100);
    color: var(--orange-900);
}

/* --- Focus visible --- */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* --- Utility: text highlight --- */
.text-gradient {
    background: linear-gradient(135deg, var(--orange-500), var(--turquoise-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-orange {
    color: var(--orange-500);
}

/* Handwritten highlight — fun accent on keywords */
.highlight-handwritten {
    font-family: var(--font-hand);
    font-weight: 700;
    color: var(--orange-500);
    font-size: 1.3em;
    position: relative;
    display: inline-block;
    line-height: 1;
}

.highlight-handwritten::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -4%;
    right: -4%;
    height: 0.35em;
    background: var(--orange-100);
    z-index: -1;
    border-radius: var(--radius-sm);
    transform: rotate(-1.5deg);
    animation: highlight-draw 0.5s var(--ease-out) both;
    animation-delay: 0.15s;
}

@keyframes highlight-draw {
    from {
        transform: rotate(-1.5deg) scaleX(0);
        transform-origin: left center;
    }
    to {
        transform: rotate(-1.5deg) scaleX(1);
        transform-origin: left center;
    }
}

/* --- Utility: Marquee Animation --- */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.text-turquoise {
    color: var(--turquoise-400);
}

.text-muted {
    color: var(--color-text-muted);
}

/* --- Utility: sections --- */
.section {
    padding-block: var(--space-10);
    min-height: 100vh;
    display: flex;
    align-items: center;
    content-visibility: auto;
    contain-intrinsic-size: auto 100vh;
}

.section > .container {
    width: 100%;
}

.section-sm {
    padding-block: var(--space-8);
    min-height: auto;
}

.section-lg {
    padding-block: var(--space-12);
    min-height: 100vh;
}

.bg-white {
    background-color: var(--color-bg);
}
.bg-alt {
    background-color: var(--color-bg-alt);
}
.bg-dark {
    background-color: var(--color-bg-dark);
    color: white;
}
.bg-orange {
    background-color: var(--orange-50);
}
.bg-turquoise {
    background-color: var(--turquoise-50);
}

/* --- Utility: flex/grid helpers --- */
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.flex-wrap {
    flex-wrap: wrap;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.gap-2 {
    gap: var(--space-2);
}
.gap-4 {
    gap: var(--space-4);
}
.gap-6 {
    gap: var(--space-6);
}
.gap-8 {
    gap: var(--space-8);
}
.gap-12 {
    gap: var(--space-12);
}

.grid {
    display: grid;
}
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.text-center {
    text-align: center;
}
.mx-auto {
    margin-inline: auto;
}
.max-w-2xl {
    max-width: 42rem;
}
.max-w-3xl {
    max-width: 48rem;
}
.max-w-4xl {
    max-width: 56rem;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
