/* ============================================================
   TECHNOLOGY MJF — Style EOS / Materialise
   ============================================================ */

/* ============================================================
   PROCÉDÉ — Grille texte + encadré résultats
   ============================================================ */
.mjf-procede-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: start;
}

.mjf-procede-text p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.mjf-procede-text p:last-child {
    margin-bottom: 0;
}

.mjf-procede-text a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s;
}

.mjf-procede-text a:hover {
    border-color: var(--color-primary);
}

.mjf-procede-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.mjf-procede-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0540F2, #70A7FF);
}

.mjf-procede-card h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 1.25rem;
}

/* ============================================================
   CHECK LIST (réutilisable)
   ============================================================ */
.mjf-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.mjf-check-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.6;
}

.mjf-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.8125rem;
}

/* ============================================================
   ROWS ALTERNÉES — Avantages texte / image
   ============================================================ */
.mjf-rows {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.mjf-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
}

.mjf-row--reverse {
    grid-template-columns: 1.2fr 1fr;
}

.mjf-row--reverse .mjf-row-img {
    order: 2;
}

.mjf-row--reverse .mjf-row-text {
    order: 1;
}

.mjf-row-img {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 2.5rem rgba(5, 64, 242, 0.08);
}

.mjf-row-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.mjf-row:hover .mjf-row-img img {
    transform: scale(1.03);
}

.mjf-row-text h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.mjf-row-text h3:not(:first-child) {
    margin-top: 1.75rem;
}

.mjf-row-text p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 0;
}

/* ============================================================
   MATÉRIAUX — Grille 5 colonnes
   ============================================================ */
.mjf-mat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.mjf-mat-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.mjf-mat-card:hover {
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.mjf-mat-card h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.mjf-mat-card p {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

.mjf-mat-note {
    padding: 1.25rem 1.75rem;
    background: rgba(5, 64, 242, 0.02);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 0.5rem 0.5rem 0;
}

.mjf-mat-note p {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

.mjf-mat-note a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s;
}

.mjf-mat-note a:hover {
    border-color: var(--color-primary);
}

/* ============================================================
   APPLICATIONS — Grille avec barre bleue
   ============================================================ */
.mjf-uses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.mjf-use-item {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.mjf-use-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0540F2, #70A7FF);
}

.mjf-use-item:hover {
    box-shadow: 0 0.75rem 2rem rgba(5, 64, 242, 0.08);
    transform: translateY(-3px);
}

.mjf-use-item h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.4;
}

.mjf-uses-note {
    padding: 1.25rem 1.75rem;
    background: rgba(5, 64, 242, 0.02);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 0.5rem 0.5rem 0;
}

.mjf-uses-note p {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   OPTIMISER — Grille texte + encadré
   ============================================================ */
.mjf-optim-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: start;
}

.mjf-optim-text p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.mjf-optim-text p:last-child {
    margin-bottom: 0;
}

.mjf-optim-text a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s;
}

.mjf-optim-text a:hover {
    border-color: var(--color-primary);
}

.mjf-optim-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.mjf-optim-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0540F2, #70A7FF);
}

.mjf-optim-card h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 1.25rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 64rem) {
    .mjf-mat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mjf-procede-grid,
    .mjf-optim-grid {
        grid-template-columns: 1fr;
    }

    .mjf-uses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48rem) {
    .mjf-mat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mjf-row,
    .mjf-row--reverse {
        grid-template-columns: 1fr;
    }

    .mjf-row--reverse .mjf-row-img {
        order: 0;
    }

    .mjf-row--reverse .mjf-row-text {
        order: 0;
    }

    .mjf-rows {
        gap: 3rem;
    }

    .mjf-uses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 30rem) {
    .mjf-mat-grid {
        grid-template-columns: 1fr;
    }
}