/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
}


/* =========================================================
   GENERAL
   ========================================================= */

body {
    font-family: Arial, Helvetica, sans-serif;

    background: #f3f5f8;

    color: #222;

    line-height: 1.5;
}


a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
background: #e7efff;
color: #225fd3;

    padding: 45px 10px;
}


.header-content {
    max-width: 1100px;

    margin: 0 auto;
}


.header h1 {
    margin: 0;

    font-size: 36px;

    font-weight: 700;
}


.header p {
    margin: 8px 0 0;

    font-size: 17px;

    opacity: 0.9;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container {
    width: min(1100px, 92%);

    margin: 40px auto;
}


.tools-section h2 {
    margin-top: 0;

    margin-bottom: 25px;

    font-size: 24px;
}


/* =========================================================
   TOOLS GRID
   ========================================================= */

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   TOOL CARD
   ========================================================= */

.tool-card {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    background: white;

    padding: 22px;

    border-radius: 10px;

    border: 1px solid #e1e5eb;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}


.tool-card:hover {
    transform: translateY(-3px);

    border-color: #2563eb;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   ICON
   ========================================================= */

.tool-icon {
    flex-shrink: 0;

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

background: #e7efff;
color: #225fd3;

    border-radius: 10px;

    font-size: 18px;

    font-weight: bold;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.tool-content {
    min-width: 0;
}


.tool-content h3 {
    margin: 0 0 6px;

    font-size: 18px;

    color: #222;
}


.tool-content p {
    margin: 0;

    font-size: 14px;

    color: #666;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-top: 60px;

    padding: 25px;

    text-align: center;

    color: #777;

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .tools-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 550px) {

    .header {
        padding: 30px 20px;
    }


    .header h1 {
        font-size: 28px;
    }


    .tools-grid {
        grid-template-columns: 1fr;
    }


    .container {
        margin-top: 25px;
    }

}

/* =========================================================
   CATEGORIES
   ========================================================= */

.tool-category {
    margin-bottom: 50px;
}


/* En-tête de catégorie */

.category-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}


.category-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

background: #e7efff;
color: #225fd3;

    border-radius: 10px;

    font-size: 24px;

    font-weight: bold;
}


.category-header h2 {
    margin: 0;

    font-size: 23px;
}


.category-header p {
    margin: 3px 0 0;

    color: #777;

    font-size: 14px;
}


/* =========================================================
   CATEGORIES VIDES
   ========================================================= */

.empty-category {
    padding: 25px;

    border: 1px dashed #ccd2da;

    border-radius: 10px;

    color: #888;

    text-align: center;

    background: #fafbfc;
}

/* ========================= */
/* CATEGORIE DEROULANTE */
/* ========================= */

.category-header {

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 15px;

}


.category-title {

    flex: 1;

}


.category-arrow {

    font-size: 18px;

    color: #666;

    transition: transform .25s ease;

}


/* contenu fermé */

.tool-category.collapsed .tools-grid {

    display: none;

}


/* rotation de la flèche */

.tool-category.collapsed .category-arrow {

    transform: rotate(-90deg);

}