/* ==========================================================================
   Section "Nos technologies" (page d'accueil).
   La feuille Tailwind du template est pre-compilee : ce fichier ecrit a la
   main tout le style de la section, scope sous .techs.
   ========================================================================== */

.techs {
    --techs-accent: var(--primary, #44aa9c);
    --techs-text: #ffffff;
    --techs-muted: rgba(255, 255, 255, 0.62);
    --techs-surface: rgba(255, 255, 255, 0.04);
    --techs-border: rgba(255, 255, 255, 0.12);

    padding: 60px 0;
    color: var(--techs-text);
}

html.light .techs {
    --techs-text: #191b1d;
    --techs-muted: rgba(25, 27, 29, 0.65);
    --techs-surface: #f7f9fb;
    --techs-border: rgba(25, 27, 29, 0.1);
}

@media (width >= 768px) {
    .techs {
        padding: 90px 0;
    }
}

@media (width >= 1200px) {
    .techs {
        padding: 110px 0;
    }
}

/* ---------- En-tete ---------- */

.techs-head {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

.techs-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 16px;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--techs-accent) 14%, transparent);
    color: var(--techs-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.techs-title {
    margin-bottom: 14px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 600;
}

.techs-desc {
    color: var(--techs-muted);
    font-size: 17px;
    line-height: 1.6;
}

@media (width >= 768px) {
    .techs-head {
        margin-bottom: 60px;
    }
}

/* ---------- Grille de logos ---------- */

.techs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (width >= 576px) {
    .techs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (width >= 992px) {
    .techs-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (width >= 1200px) {
    .techs-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.techs-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 150px;
    padding: 22px 16px;
    border: 1px solid var(--techs-border);
    border-radius: 14px;
    background-color: var(--techs-surface);
    text-align: center;
    transition:
        border-color 0.35s ease,
        transform 0.35s ease;
}

.techs-item:hover {
    border-color: color-mix(in srgb, var(--techs-accent) 55%, transparent);
    transform: translateY(-4px);
}

/* Lien plein cadre : toute la tuile est cliquable si la techno a une URL. */
.techs-link {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.techs-logo {
    max-height: 48px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.techs-item:hover .techs-logo {
    transform: scale(1.06);
}

.techs-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--techs-accent) 16%, transparent);
    color: var(--techs-accent);
    font-size: 20px;
    font-weight: 600;
}

.techs-name {
    color: var(--techs-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.35s ease;
}

.techs-item:hover .techs-name {
    color: var(--techs-accent);
}

@media (prefers-reduced-motion: reduce) {
    .techs-item,
    .techs-logo,
    .techs-name {
        transition: none;
    }

    .techs-item:hover {
        transform: none;
    }

    .techs-item:hover .techs-logo {
        transform: none;
    }
}
