.tools-page {
    padding: 40px 0;
}

/* HEADER */
.tools-header {
    margin-bottom: 30px;
    text-align: center;
}

.tools-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tools-sub {
    opacity: 0.85;
    margin-bottom: 12px;
}

/* FILTRES */
.tools-filters {
    padding: 20px;
    margin-bottom: 30px;
}

.tools-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
    gap: 20px;
}

.filter-block {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 14px;
    opacity: .8;
    margin-bottom: 6px;
}

.filter-input,
.filter-select {
    padding: 10px;
    border-radius: 8px;
    background:#0f172a;
    border:1px solid #1e293b;
    color:white;
}

.tools-filters-bottom {
    margin-top: 15px;
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.filter-checkboxes label {
    margin-right: 12px;
}

/* GRID */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 24px;
}

/* CARD */
.tool-card {
    padding: 18px;
    background:#0f172a;
    border-radius:12px;
    border:1px solid #1e293b;
    transition:.2s;
    position:relative;
    min-height: 340px;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color:#3b82f6;
}

/* BOOST */
.boost-badge {
    position:absolute;
    top:10px;
    left:10px;
    background:#facc15;
    padding:4px 10px;
    color:#111;
    border-radius:8px;
    font-weight:700;
    font-size:13px;
}

.boosted {
    border:1px solid rgba(250,204,21,.55)!important;
    box-shadow:0 0 25px rgba(250,204,21,.4);
}

/* LOGO */
.tool-logo img {
    width:100%;
    height:70px;
    object-fit:contain;
}

/* BADGES */
.tool-badges {
    margin-top:10px;
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.badge {
    padding:3px 8px;
    border-radius:6px;
    font-size:12px;
    background:#1e293b;
}

.badge.verified {
    background:#22c55e;
}

.badge.vip {
    background:#8b5cf6;
}

/* PAGINATION */
.tools-pagination {
    margin-top:30px;
    display:flex;
    justify-content:center;
    gap: 8px;
}

.page-btn {
    padding:8px 14px;
    border-radius:8px;
    background:#1e293b;
    border:1px solid #334155;
    cursor:pointer;
    color:white;
}

.page-btn.active {
    background:#3b82f6;
    border-color:#3b82f6;
}


.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    position: relative;
    padding: 18px;
    background: #0f172a;
    border-radius: 14px;
    border: 1px solid #1e293b;
    transition: .18s ease;
    min-height: 260px;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
}

.tool-logo img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* Boost visuel */
.card.boosted {
    border-color: rgba(250,204,21,.6);
    box-shadow: 0 0 24px rgba(250,204,21,.45);
}

.boost-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #facc15;
    color: #111;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

/* Pagination */
.tools-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #111827;
    color: #e5e7eb;
    cursor: pointer;
}

.page-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
}


/* ============================================================
   🟦 OPTION A — PACK VISUEL PRO POUR LES CARTES D'OUTILS
   ============================================================ */

/* --- Carte globale --- */
.tool-card {
    background: rgba(15, 23, 42, 0.75); /* glassmorphism subtil */
    border: 1px solid rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: 22px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;

    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Hover premium */
.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    border-color: rgba(99, 102, 241, 0.45);
}

/* --- Logo amélioré --- */
.tool-card .tool-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
}

.tool-card .tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 0 12px rgba(255,255,255,0.08);
}

/* --- Titre --- */
.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #e2e8f0;
}

/* Description */
.tool-card p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.45;
    min-height: 48px;
}

/* --- Badges section --- */
.tool-badges {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Badges génériques */
.badge {
    background: rgba(51, 65, 85, 0.35);
    color: #f1f5f9;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,0.2);
}

/* Badge vérifié */
.badge.verified {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

/* Badge VIP */
.badge.vip {
    background: rgba(236, 72, 153, 0.20);
    color: #f472b6;
}

/* --- BOOSTÉ PREMIUM --- */
.tool-card.boosted {
    border-color: rgba(250, 204, 21, 0.55) !important;
    box-shadow: 0 0 32px rgba(250, 204, 21, 0.45);
}

/* Badge boosté */
.boost-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;

    background: linear-gradient(135deg, #facc15, #fbbf24);
    color: #111;

    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 0 18px rgba(250,204,21,0.55);

    display: flex;
    align-items: center;
    gap: 6px;
}

/* Effet halo boosté renforcé (autour de la carte) */
.tool-card.boosted::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(circle at top left,
        rgba(250,204,21,0.18),
        transparent 60%);
    pointer-events: none;
}

/* --- Grille plus homogène --- */
.tools-grid {
    gap: 30px;
}


/* SHINE EFFECT sur cartes Boostées */
.tool-card.boosted {
    position: relative;
    overflow: hidden;
}

.tool-card.boosted::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -50%;
    width: 200%;
    height: 300%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.22) 45%,
        rgba(255,255,255,0.08) 60%,
        transparent 100%
    );
    transform: rotate(25deg);
    animation: shine 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-120%) rotate(25deg); }
    60% { transform: translateX(120%) rotate(25deg); }
    100% { transform: translateX(120%) rotate(25deg); }
}
/* HOVER LOGO PRO */
.tool-card .tool-logo img {
    transition: transform .25s ease, box-shadow .25s ease;
}

.tool-card:hover .tool-logo img {
    transform: scale(1.08);
    box-shadow: 0 12px 22px rgba(0,0,0,0.35);
}
/* BADGES AUTOMATIQUES PRICING */
.badge.pricing {
    background: rgba(51,65,85,0.35);
    border: 1px solid rgba(148,163,184,0.25);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.badge.pricing[data-type="Gratuit"] {
    background: rgba(34,197,94,0.20);
    color: #4ade80;
}

.badge.pricing[data-type="Freemium"] {
    background: rgba(59,130,246,0.20);
    color: #60a5fa;
}

.badge.pricing[data-type="Payant"] {
    background: rgba(236,72,153,0.22);
    color: #f472b6;
}

/* Verified */
.badge.verified {
    background: rgba(16,185,129,0.25);
    color: #34d399;
    font-weight: 600;
}

/* VIP badge */
.badge.vip {
    background: rgba(168,85,247,0.25);
    color: #c084fc;
    font-weight: 600;
}


/* ===========================
   PAGE
=========================== */

.tools-page {
    padding: 60px 0;
    color: #e2e8f0;
}

/* Sous-titre */
.tools-sub {
    max-width: 800px;
    margin: 10px auto 20px;
    font-size: 18px;
    color: #94a3b8;
    text-align: center;
}

.tools-count {
    text-align: center;
    font-size: 17px;
    margin-top: 10px;
    color: #60a5fa;
}

/* ===========================
   FILTRES
=========================== */

.tools-filters {
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
}

.tools-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

/* Label */
.filter-label {
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
    color: #93c5fd;
}

/* Input + Select */
.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: #0f172a;
    border: 1px solid #1e293b;
    font-size: 15px;
    color: white;
    transition: .2s;
}

.filter-input:focus,
.filter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.4);
}

/* Checkbox */
.chk {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-checkboxes {
    display: flex;
    gap: 20px;
}

/* Actions */
.tools-filters-bottom {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: .2s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 12px rgba(59,130,246,0.35);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: #cbd5e1;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* ===========================
   GRILLE DES OUTILS
=========================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
}

/* ===========================
   CARTE D'UN OUTIL
=========================== */

.tool-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: .25s;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    min-height: 330px;
}

.tool-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59,130,246,0.25);
    transform: translateY(-4px);
}

/* Boost effect */
.tool-card.boosted {
    border-color: rgba(250,204,21,0.7) !important;
    box-shadow: 0 0 28px rgba(250,204,21,0.45) !important;
}

/* Badge Boost */
.boost-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #facc15;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    color: #111;
    font-size: 13px;
    box-shadow: 0 0 12px rgba(250,204,21,0.5);
}

/* Logo */
.tool-logo {
    height: 52px;
    width: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-logo img {
    width: 95%;
    height: 95%;
    object-fit: contain;
    border-radius: 8px;
}

/* Titre */
.tool-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* Description */
.tool-card p {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.45;
    flex-grow: 1;
}

/* ===========================
   BADGES
=========================== */

.tool-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
}

/* Pricing badges */
.badge.pricing[data-type="Gratuit"] {
    background: rgba(34,197,94,0.2);
    color: #4ade80;
}

.badge.pricing[data-type="Freemium"] {
    background: rgba(59,130,246,0.2);
    color: #3b82f6;
}

.badge.pricing[data-type="Payant"] {
    background: rgba(239,68,68,0.25);
    color: #ef4444;
}

/* Verified */
.badge.verified {
    background: rgba(34,197,94,0.25);
    color: #4ade80;
}

/* VIP */
.badge.vip {
    background: rgba(147,51,234,0.25);
    color: #c084fc;
}

/* ===========================
   PAGINATION
=========================== */

.tools-pagination {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.page-btn {
    padding: 8px 14px;
    border-radius: 8px;
    background: #1e293b;
    color: white;
    border: 1px solid #334155;
    transition: .2s;
}

.page-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

.page-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
}
