/* ============================================================
   TECHNOLOGIES HUB
   ============================================================ */

/* ============================================================
   HERO — Entrée séquentielle
   ============================================================ */
.hero-enfants-breadcrumb {
    opacity: 0;
    transform: translateY(1rem);
    animation: tech-fadeUp 0.6s ease-out 0.15s forwards;
}

.hero-enfants-title {
    opacity: 0;
    transform: translateY(1.5rem);
    animation: tech-fadeUp 0.8s ease-out 0.35s forwards;
}

.hero-enfants-subtitle {
    opacity: 0;
    transform: translateY(1.25rem);
    animation: tech-fadeUp 0.7s ease-out 0.6s forwards;
}

.hero-enfants-inner::after {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: tech-lineGrow 0.5s ease-out 0.9s forwards;
}

@keyframes tech-fadeUp {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tech-lineGrow {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}

/* ============================================================
   FULL WIDTH
   ============================================================ */
.tech-full-width {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   GRILLE 3 COLONNES — Plastique 3/5 | Métal 1/5 | Résine 1/5
   Toutes les colonnes à la même hauteur
   ============================================================ */
.tech-grid-3 {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

/* ============================================================
   COLONNE FAMILLE
   ============================================================ */
.tech-col {
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ============================================================
   CARTES DANS CHAQUE COLONNE
   min-height 0 pour que flex stretch fonctionne
   ============================================================ */
.tech-col-cards {
    display: flex;
    gap: 1rem;
    flex: 1 1 0%;
    min-height: 0;
}

.tech-col-cards--3 {
    flex-direction: row;
    align-items: stretch;
}

.tech-col-cards--1 {
    flex-direction: column;
}

/* ============================================================
   HEADER DE COLONNE — Hauteur fixe pour uniformiser
   ============================================================ */
.tech-col-header {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 5rem;
}

/* Badge — pastille colorée */
.tech-col-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.875rem;
    border-radius: 2rem;
    font-family: 'Kanit', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
    background: var(--color-primary);
    color: #fff;
}

.tech-col-badge--metal {
    background: #4a4a4a;
}

.tech-col-badge--resin {
    background: #8B5CF6;
}

/* Titre famille — sous le badge */
.tech-col-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0.25rem 0 0;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.tech-col-desc {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    line-height: 1.55;
    margin: 0;
}

.tech-col-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.25s;
}

.tech-col-link:hover { opacity: 0.7; }

/* ============================================================
   MINI CARD
   ============================================================ */
.tech-mini {
    background: var(--color-light, #f8f9fa);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.tech-mini:hover {
    box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Image — hauteur fixe identique partout */
.tech-mini-img {
    overflow: hidden;
    height: 10rem;
    flex-shrink: 0;
}

.tech-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tech-mini:hover .tech-mini-img img {
    transform: scale(1.04);
}

/* Body — flex pour aligner le CTA en bas */
.tech-mini-body {
    padding: 1.25rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Titre techno */
.tech-mini-name {
    font-family: 'Kanit', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.15;
}

.tech-mini-full {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    margin-top: 0.125rem;
}

/* Specs — Matière, Volume, Point fort en style identique */
.tech-mini-specs {
    margin: 0;
    flex: 1;
}

.tech-mini-specs div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4375rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    gap: 0.5rem;
}

.tech-mini-specs div:last-child {
    border-bottom: none;
}

.tech-mini-specs dt {
    font-size: 0.6875rem;
    color: var(--color-text-light);
    font-weight: 400;
    flex-shrink: 0;
}

.tech-mini-specs dd {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
    text-align: right;
}

/* CTA Découvrir — toujours collé en bas */
.tech-mini-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
    transition: color 0.25s;
}

.tech-mini:hover .tech-mini-cta {
    color: var(--color-primary-light);
}

.tech-mini-arrow {
    transition: transform 0.25s;
    font-size: 1rem;
}

.tech-mini:hover .tech-mini-arrow {
    transform: translateX(4px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.tech-col {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.tech-col.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-col:nth-child(2) { transition-delay: 0.18s; }
.tech-col:nth-child(3) { transition-delay: 0.36s; }

.cta {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 90rem) {
    .tech-full-width {
        padding: 0 3rem;
    }
}

@media (max-width: 80rem) {
    .tech-grid-3 {
        gap: 1rem;
    }

    .tech-col {
        padding: 1.25rem;
    }
}

/* Tablette — plastique pleine largeur en haut */
@media (max-width: 64rem) {
    .tech-grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .tech-col--plastic {
        grid-column: 1 / -1;
    }

    .tech-col-cards--3 {
        flex-direction: row;
    }

    .tech-mini-img {
        height: 9rem;
    }
}

/* Tablette portrait */
@media (max-width: 52rem) {
    .tech-col-cards--3 {
        flex-direction: column;
    }

    .tech-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-mini-img {
        height: 12rem;
    }
}

/* Mobile */
@media (max-width: 48rem) {
    .tech-full-width {
        padding: 0 1.25rem;
    }

    .tech-col {
        padding: 1.25rem;
    }

    .tech-mini-name {
        font-size: 1.375rem;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-enfants-breadcrumb,
    .hero-enfants-title,
    .hero-enfants-subtitle,
    .hero-enfants-inner::after,
    .tech-col,
    .cta {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}