/* ==========================================================================
   Outils à télécharger
   ========================================================================== */

.tools { padding-top: clamp(2.5rem, 5vw, 4rem); }

.tools__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
    list-style: none;
}

.tool {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .2s, box-shadow .2s var(--ease);
}
.tool:hover, .tool:focus-within { border-color: var(--line-2); box-shadow: var(--shadow); }

/* L'icône de l'application est l'élément principal de la carte */
.tool__icon {
    width: 112px;
    height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(13, 21, 32, .18));
    transition: transform .3s var(--ease);
}
.tool:hover .tool__icon { transform: translateY(-4px); }

.tool__head { margin-top: 1.75rem; }
.tool__meta { margin: .35rem 0 0; font-size: .875rem; color: var(--ink-3); }
.tool__summary { max-width: 42ch; margin: 1rem 0 0; color: var(--ink-2); }

.tool__features {
    align-self: stretch;
    margin: 1.5rem 0 2rem;
    list-style: none;
    font-size: .9375rem;
    color: var(--ink-2);
}
.tool__features li { padding: .6rem 0; border-top: 1px solid var(--line); }

/* margin-top auto : les boutons restent alignés d'une carte à l'autre */
.tool__download, .tool__missing { margin: auto 0 0; }
.tool__missing { color: var(--ink-3); }

.tools__notice {
    display: flex;
    gap: 1rem;
    max-width: 72ch;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.tools__notice > .icon { flex: none; color: var(--accent); }
.tools__notice h2 { margin-bottom: .35rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.tools__notice p, .tools__legal { font-size: .9375rem; color: var(--ink-2); }
.tools__legal { margin: 1.25rem 0 0 2.5rem; color: var(--ink-3); }

@media (max-width: 480px) {
    .tool__icon { width: 88px; height: 88px; }
    .tool__download { align-self: stretch; }
}
