/* ============================================================
   GLOBAL VARIABLES
============================================================ */
:root {
    --glass-bg: rgba(255,255,255,0.07);
    --glass-border: rgba(255,255,255,0.14);
    --glass-hover: rgba(255,255,255,0.14);
    --text-muted: #a1a1a1;
    --radius: 16px;
    --transition: .25s ease;
}

/* Smooth typography */
body {
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.5;
    color: #e5e7eb;
}

/* ============================================================
   WRAPPER
============================================================ */
.tool-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 32px;
}

/* ============================================================
   LEFT COLUMN
============================================================ */
.tool-main {
    width: 760px;
    flex-shrink: 0;
}

/* ============================================================
   SIDEBAR
============================================================ */
.tool-sidebar {
    width: 280px;
    position: sticky;
    top: 90px;
    height: max-content;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-block {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.sidebar-block:hover {
    background: var(--glass-hover);
}

.sidebar-block h3 {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar-tags .badge {
    display: inline-flex;
    padding: 6px 12px;
    margin: 4px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    transition: var(--transition);
}

.sidebar-tags .badge:hover {
    background: rgba(255,255,255,0.18);
}

/* ============================================================
   CARDS (Glass effect)
============================================================ */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.card:hover {
    background: var(--glass-hover);
}

/* Boost mode */
.boosted {
    border-color: rgba(250,204,21,0.45) !important;
    box-shadow: 0 0 20px rgba(250,204,21,0.20);
}

/* Boost badge */
.boost-badge {
    background: #facc15;
    color: #111;
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 14px;
    box-shadow: 0 0 22px rgba(250,204,21,0.45);
}

/* ============================================================
   HERO SECTION
============================================================ */
.tool-hero-top {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tool-logo img {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.tool-title-big {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
}

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

.badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.badge:hover {
    background: rgba(255,255,255,0.18);
}

.badge.good {
    background: #22c55e33;
    border-color: #22c55e77;
    color: #22c55e;
}

.badge.vip {
    background: rgba(180,120,255,0.30);
    border-color: rgba(180,120,255,0.55);
    color: #d2b3ff;
}

.badge.ltd {
    background: rgba(255,120,80,0.25);
    border-color: rgba(255,120,80,0.55);
    color: #ffb298;
}

/* Rating */
.tool-rating {
    margin-top: 6px;
    font-size: 1.1rem;
}

.muted {
    color: var(--text-muted);
}

/* Hero CTAs */
.tool-ctas-hero {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.28);
}

.btn-ghost {
    background: transparent;
    color: #e5e7eb;
}

.btn-ghost:hover {
    opacity: 0.7;
}

/* Description */
.tool-desc-main {
    margin-top: 16px;
    font-size: 1.1rem;
    color: #dcdcdc;
}

/* Long description */
.tool-long-description {
    margin-top: 16px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ============================================================
   SECTIONS
============================================================ */
.tool-section h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.4rem;
    font-weight: 700;
}

/* ============================================================
   SCREENSHOTS GRID
============================================================ */
.tool-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 14px;
}

.tool-screenshots img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.tool-screenshots img:hover {
    transform: scale(1.03);
}

/* ============================================================
   PROS & CONS
============================================================ */
.pros-cons {
    display: flex;
    gap: 28px;
}

.pros, .cons {
    flex: 1;
}

.pros ul li, .cons ul li {
    margin-bottom: 6px;
}

/* ============================================================
   SIMILAR TOOLS PREMIUM GRID
============================================================ */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
    gap: 16px;
}

.similar-card {
    background: var(--glass-bg);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: block;
    color: white;
    text-decoration: none;
}

.similar-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-4px);
}

.similar-title {
    font-weight: 600;
    text-align: center;
}

/* ============================================================
   MOBILE RESPONSIVE
============================================================ */
@media (max-width: 950px) {
    .tool-wrapper {
        flex-direction: column;
    }
    .tool-main {
        width: 100%;
    }
    .tool-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 600px) {
    .tool-logo img {
        width: 72px;
        height: 72px;
    }
    .tool-hero-top {
        flex-direction: column;
        text-align: center;
    }
    .tool-ctas-hero {
        justify-content: center;
        flex-wrap: wrap;
    }
    .pros-cons {
        flex-direction: column;
    }
}



.similar-card {
    position: relative;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: .2s;
}

.similar-card:hover {
    transform: translateY(-3px);
    border-color: #6ee7b7;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.sim-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.sim-link {
    position:absolute;
    inset:0;
}

/* ================================
   SIMILAIRES — GRID PREMIUM
================================ */
.similar-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    margin-top: 18px;
}

.similar-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12);
    text-decoration: none;
    color: var(--text);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}

.similar-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.similar-img img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.18);
    margin-bottom: 10px;
}

.similar-info h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.similar-info p {
    margin-top: 6px;
    opacity: 0.75;
    font-size: .85rem;
    line-height: 1.35;
}

/* Badge suggestion (remplace l’affichage du score numérique) */
.similar-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(15,23,42,0.85);
    color: #e5e7eb;
}

/* Badge 1 : meilleure reco */
.similar-badge-main {
    background: rgba(250,204,21,0.18);
    border-color: rgba(250,204,21,0.5);
    color: #facc15;
}

/* Badge 2 : 2e meilleure reco */
.similar-badge-alt {
    background: rgba(96,165,250,0.2);
    border-color: rgba(96,165,250,0.6);
    color: #bfdbfe;
}


.faq-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background .25s ease;
}

.faq-item:hover {
    background: rgba(255,255,255,0.12);
}

.faq-item h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    opacity: .85;
}
