@import '@fontsource/inter/400.css';
@import '@fontsource/inter/500.css';
@import '@fontsource/inter/600.css';
@import '@fontsource/inter/700.css';

/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Brand Colors */
    --primary-purple: #6a3eeb;
    --primary-purple-dark: #5630c5;
    --accent-purple: #a589f3;

    /* Menu Colors */
    --menu-bg: #f3f0fe;
    --menu-text-inactive: #6E51C0;
    --menu-text-active: #6A3EEB;
    --menu-bg-active: #ffffff;

    /* Text Colors */
    --text-dark: #1e1e1e;
    --text-grey: #757575;
    --text-white: #ffffff;

    /* Backgrounds */
    --bg-body: #f5f6fa;
    --bg-surface: #ffffff;

    /* Tag Colors */
    --tag-green-bg: #dcfce7;
    --tag-green-text: #16a34a;
    --tag-green-light-bg: #d1fae5;
    --tag-green-light-text: #059669;
    --tag-orange-bg: #ffedd5;
    --tag-orange-text: #ea580c;
    --tag-blue-bg: #dbeafe;
    --tag-blue-text: #2563eb;
    --tag-yellow-bg: #FFF9C4;
    --tag-yellow-text: #FBC02D;
    --tag-purple-bg: #ECE9FD;
    --tag-purple-text: #6a3eeb;

    /* Spacing (REM based, assuming 16px root) */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.25rem;
    --spacing-xl: 2rem;

    /* Decoration */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 0.8rem;
    --radius-full: 999px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

    /* Responsive breakpoints reference */
    --mobile-max: 640px;
    --tablet-max: 1024px;
    --content-max-width: 1200px;

    /* shadcn/ui theme tokens */
    --background: 0 0% 100%;
    --foreground: 0 0% 12%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 12%;
    --accent: 250 87% 94%;
    --accent-foreground: 250 60% 50%;
    --muted: 220 14% 96%;
    --muted-foreground: 220 9% 46%;
    --border: 220 13% 91%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --site-width-sm: 600px;
    --site-width-md: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-body);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   2. RESPONSIVE APP CONTAINER
   ========================================= */
.app-container {
    width: 100%;
    max-width: var(--content-max-width);
    margin-inline: auto;
    background-color: var(--bg-body);
    min-height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
}


/* =========================================
   3. TYPOGRAPHY UTILITIES
   ========================================= */
h1,
h2,
h3 {
    color: var(--text-dark);
}
h1{
	margin-bottom: 1rem;
}
h2{

}
h3{

}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-muted {
    color: var(--text-grey);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: rgba(106, 62, 235, 0.3);
    border-radius: var(--radius-full);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* =========================================
   GLOBAL LAYOUT STYLES
   ========================================= */

#root {
    width: 100%;
}

/* App Content Container */
.app-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
    padding-bottom: 8rem;
    /* Espace pour la nav mobile en bas */
}

/* Desktop: pas de padding bottom car la nav est en haut */
@media (min-width: 768px) {
    .app-content {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
}

/* Content Wrapper with Padding */
.content-padded-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    max-width: var(--site-width-md);
    margin: 0 auto;
    width: 100%;
}

/* Page Header Row - Responsive */
.page-header-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
    max-width: var(--site-width-md);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (min-width: 768px) {
    .page-header-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.page-header-row h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Filter Button */
.btn-filter {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 99px;
    padding: 0.5rem 1rem;
    font-family: inherit;
    color: var(--text-grey);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

/* View Toggle Buttons */
.view-toggles {
    display: flex;
    gap: 0.75rem;
    color: var(--text-grey);
}

.view-toggles button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.view-toggles button:hover,
.view-toggles button.active {
    color: var(--primary-purple);
}

/* Company Logo */
.company-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.company-logo.dark {
    background: #0f172a;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes logo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo {
    height: 6em;
    padding: 1.5em;
    will-change: filter;
    transition: filter 300ms;
}

.logo:hover {
    filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.react:hover {
    filter: drop-shadow(0 0 2em #61dafbaa);
}

@media (prefers-reduced-motion: no-preference) {
    a:nth-of-type(2) .logo {
        animation: logo-spin infinite 20s linear;
    }
}

.user-img img {
    width: 100%;
    border-radius: 50%;
    display: block;
}



#root .no-result{
    color: var(--text-grey);
    padding: 1rem 0.25rem;
    text-align: center;
    font-size: 0.875rem;
}