@import 'tailwindcss';

@import 'tw-animate-css';

@source '../views';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';

@custom-variant dark (&:is(.dark *));

@theme {
    --font-sans:
        'Instrument Sans', ui-sans-serif, system-ui, sans-serif,
        'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
        'Noto Color Emoji';

    --radius-lg: var(--radius);
    --radius-md: calc(var(--radius) - 2px);
    --radius-sm: calc(var(--radius) - 4px);

    --color-background: var(--background);

    --color-atomic-tangerine: #ff6b35;
    --color-atomic-tangerine-100: #3d1000;
    --color-atomic-tangerine-200: #7a2100;
    --color-atomic-tangerine-300: #b83100;
    --color-atomic-tangerine-400: #f54100;
    --color-atomic-tangerine-500: #ff6b35;
    --color-atomic-tangerine-600: #ff875c;
    --color-atomic-tangerine-700: #ffa585;
    --color-atomic-tangerine-800: #ffc3ad;
    --color-atomic-tangerine-900: #ffe1d6;

    --color-peach-glow: #f7c59f;
    --color-peach-glow-100: #4b2406;
    --color-peach-glow-200: #97480c;
    --color-peach-glow-300: #e26d12;
    --color-peach-glow-400: #f19955;
    --color-peach-glow-500: #f7c59f;
    --color-peach-glow-600: #f9d2b4;
    --color-peach-glow-700: #faddc6;
    --color-peach-glow-800: #fce8d9;
    --color-peach-glow-900: #fdf4ec;

    --color-beige: #efefd0;
    --color-beige-100: #434317;
    --color-beige-200: #86862e;
    --color-beige-300: #c2c24c;
    --color-beige-400: #d9d98f;
    --color-beige-500: #efefd0;
    --color-beige-600: #f3f3db;
    --color-beige-700: #f6f6e4;
    --color-beige-800: #f9f9ed;
    --color-beige-900: #fcfcf6;

    --color-steel-azure: #004e89;
    --color-steel-azure-100: #00101c;
    --color-steel-azure-200: #001f37;
    --color-steel-azure-300: #002f53;
    --color-steel-azure-400: #003e6e;
    --color-steel-azure-500: #004e89;
    --color-steel-azure-600: #0078d4;
    --color-steel-azure-700: #209eff;
    --color-steel-azure-800: #6abeff;
    --color-steel-azure-900: #b5dfff;

    --color-baltic-blue: #1a659e;
    --color-baltic-blue-100: #051420;
    --color-baltic-blue-200: #0a283f;
    --color-baltic-blue-300: #0f3c5f;
    --color-baltic-blue-400: #15507e;
    --color-baltic-blue-500: #1a659e;
    --color-baltic-blue-600: #2388d6;
    --color-baltic-blue-700: #57a6e4;
    --color-baltic-blue-800: #8fc4ed;
    --color-baltic-blue-900: #c7e1f6;

    --color-foreground: var(--foreground);

    --color-card: var(--card);
    --color-card-foreground: var(--card-foreground);

    --color-popover: var(--popover);
    --color-popover-foreground: var(--popover-foreground);

    --color-primary: var(--primary);
    --color-primary-foreground: var(--primary-foreground);

    --color-secondary: var(--secondary);
    --color-secondary-foreground: var(--secondary-foreground);

    --color-muted: var(--muted);
    --color-muted-foreground: var(--muted-foreground);

    --color-accent: var(--accent);
    --color-accent-foreground: var(--accent-foreground);

    --color-destructive: var(--destructive);
    --color-destructive-foreground: var(--destructive-foreground);

    --color-border: var(--border);
    --color-input: var(--input);
    --color-ring: var(--ring);

    --color-brand-yellow: var(--brand-yellow);
    --color-brand-yellow-foreground: var(--brand-yellow-foreground);

    --color-chart-1: var(--chart-1);
    --color-chart-2: var(--chart-2);
    --color-chart-3: var(--chart-3);
    --color-chart-4: var(--chart-4);
    --color-chart-5: var(--chart-5);

    --color-sidebar: var(--sidebar);
    --color-sidebar-foreground: var(--sidebar-foreground);
    --color-sidebar-primary: var(--sidebar-primary);
    --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
    --color-sidebar-accent: var(--sidebar-accent);
    --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
    --color-sidebar-border: var(--sidebar-border);
    --color-sidebar-ring: var(--sidebar-ring);
}

/*
 * Charte SAKOO (logo) :
 * - Vert marque  #009040
 * - Jaune accent #e0e020
 * - Noir contraste
 */
:root {
    --background: #ffffff;
    --foreground: #00101c;
    --card: #ffffff;
    --card-foreground: #00101c;
    --popover: #ffffff;
    --popover-foreground: #00101c;
    --primary: #004e89;
    --primary-foreground: #ffffff;
    --secondary: #1a659e;
    --secondary-foreground: #ffffff;
    --muted: #f9f9ed;
    --muted-foreground: #002f53;
    --accent: #f7c59f;
    --accent-foreground: #4b2406;
    --destructive: #ff6b35;
    --destructive-foreground: #ffffff;
    --border: #f3f3db;
    --input: #f3f3db;
    --ring: #004e89;
    --brand-yellow: #efefd0;
    --brand-yellow-foreground: #434317;
    --chart-1: #004e89;
    --chart-2: #1a659e;
    --chart-3: #f7c59f;
    --chart-4: #ff6b35;
    --chart-5: #efefd0;
    --radius: 0.625rem;
    --sidebar: #004e89;
    --sidebar-foreground: #ffffff;
    --sidebar-primary: #ffffff;
    --sidebar-primary-foreground: #004e89;
    --sidebar-accent: #003e6e;
    --sidebar-accent-foreground: #ffffff;
    --sidebar-border: #003e6e;
    --sidebar-ring: #ffffff;
}

.dark {
    --background: #051420;
    --foreground: #fcfcf6;
    --card: #0a283f;
    --card-foreground: #fcfcf6;
    --popover: #0a283f;
    --popover-foreground: #fcfcf6;
    --primary: #6abeff;
    --primary-foreground: #00101c;
    --secondary: #57a6e4;
    --secondary-foreground: #051420;
    --muted: #0a283f;
    --muted-foreground: #b5dfff;
    --accent: #f7c59f;
    --accent-foreground: #4b2406;
    --destructive: #ff875c;
    --destructive-foreground: #ffffff;
    --border: #0a283f;
    --input: #0a283f;
    --ring: #6abeff;
    --brand-yellow: #efefd0;
    --brand-yellow-foreground: #434317;
    --chart-1: #6abeff;
    --chart-2: #57a6e4;
    --chart-3: #f9d2b4;
    --chart-4: #ffa585;
    --chart-5: #f3f3db;
    --sidebar: #004e89;
    --sidebar-foreground: #ffffff;
    --sidebar-primary: #ffffff;
    --sidebar-primary-foreground: #004e89;
    --sidebar-accent: #003e6e;
    --sidebar-accent-foreground: #ffffff;
    --sidebar-border: #003e6e;
    --sidebar-ring: #ffffff;
}

@layer base {
    * {
        @apply border-border;
    }

    body {
        @apply bg-background text-foreground antialiased;
    }

    a, button, [role="button"], input[type="submit"], input[type="button"], input[type="reset"] {
        @apply cursor-pointer;
    }
}

@layer components {
    [data-sidebar='menu-button'][data-active='true'] {
        background-color: color-mix(in oklch, var(--sidebar-primary) 28%, transparent);
        color: var(--sidebar-primary-foreground);
    }

    [data-sidebar='menu-button'][data-active='true'] svg {
        color: var(--brand-yellow);
    }

    [data-sidebar='menu-sub-button'][data-active='true'] {
        background-color: color-mix(in oklch, var(--sidebar-primary) 22%, transparent);
        color: var(--sidebar-primary-foreground);
    }

    [data-sidebar='group-label'] {
        color: color-mix(in oklch, var(--sidebar-foreground) 65%, transparent);
        letter-spacing: 0.04em;
    }
}