/* ==========================================================================
   1. Variables & Design Tokens (Look Minimaliste Premium)
   ========================================================================== */
:root {
    --bg-base: #e2e2e6;           /* Un vrai gris mat moderne pour le fond du site */
    --bg-surface: #ffffff;        /* Les cartes et conteneurs restent en blanc pur */
    --bg-surface-hover: #ebebed;  /* Gris plus marqué au survol */
    
    --text-primary: #000000;      /* Noir absolu pour les titres forts */
    --text-secondary: #4a4a4f;    /* Gris foncé dense pour les textes secondaires */
    
    --accent-primary: #000000;    /* L'accent devient le NOIR PUR */
    --radius-lg: 8px;             /* Des angles légèrement plus vifs, plus précis */
    --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-secondary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 600;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   3. Header, Hero & Recherche
   ========================================================================== */
.header {
    padding: 1.5rem 0;
    border-bottom: var(--border-subtle);
    background: transparent;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.slogan {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero {
    padding: 4rem 0 2rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 2rem auto;
    color: var(--text-secondary);
}

.search-container {
    max-width: 500px;
    margin: 0 auto 3rem auto;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    border: var(--border-subtle);
    color: #0d0d0f;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: rgba(13, 13, 15, 0.2);
}

/* ==========================================================================
   4. Layout de la Grille & Cartes d'outils
   ========================================================================== */
.category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.tool-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: var(--border-subtle);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tool-card:hover {
    background: var(--bg-surface-hover);
    border: var(--border-subtle-hover);
    transform: translateY(-2px);
}

.tool-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ==========================================================================
   5. Badges & Boutons Action
   ========================================================================== */
.badges-container {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600 !important;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #1a1a1e !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-compact {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    border: none;
    transition: 0.2s;
    cursor: pointer;
}

.btn-compact:hover {
    background: #222225;
}

/* ==========================================================================
   6. Ligne de Séparation & Footer
   ========================================================================== */
/* Optionnel : Si tu veux une fine ligne de séparation au-dessus de Gestion & Organisation */
.tools-section + .tools-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.5;
    font-size: 0.9rem;
}
