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

/* ============================================================
   PROCÉDÉ — Grille texte + fiche specs
   ============================================================ */
.dmls-procede-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: start;
}

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

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

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

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

.dmls-specs-card h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.dmls-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.dmls-specs-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dmls-specs-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.dmls-specs-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.dmls-specs-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
    text-align: right;
}

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

.dmls-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;
}

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

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

.dmls-mat-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin: 0;
}

.dmls-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;
}

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

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

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

/* ============================================================
   APPLICATIONS — Rows alternées texte / image
   ============================================================ */
.dmls-app-rows {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

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

.dmls-app-row--reverse .dmls-app-row-img {
    order: 2;
}

.dmls-app-row--reverse .dmls-app-row-text {
    order: 1;
}

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

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

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

.dmls-app-row-text h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

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

.dmls-app-row-text p:last-child {
    margin-bottom: 0;
}

.dmls-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.25s;
}

.dmls-link:hover {
    color: var(--color-primary-light);
}

/* ============================================================
   OPTIMISATION TOPOLOGIQUE — Grille texte + avantages
   ============================================================ */
.dmls-topo-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.dmls-topo-text p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin: 0;
}

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

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

.dmls-topo-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

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

.dmls-topo-benefits li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ============================================================
   PRODUCTION — 3 cartes avec barre bleue
   ============================================================ */
.dmls-prod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

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

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

.dmls-prod-card h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-dark);
    margin: 0;
}

.dmls-prod-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;
}

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

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

.dmls-prod-note a:hover {
    border-color: var(--color-primary);
}

/* ============================================================
   POURQUOI CHOISIR — Grille avec barre bleue
   ============================================================ */
.dmls-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

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

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

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

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

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

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

    .dmls-procede-grid {
        grid-template-columns: 1fr;
    }

    .dmls-topo-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .dmls-app-row--reverse .dmls-app-row-img {
        order: 0;
    }

    .dmls-app-row--reverse .dmls-app-row-text {
        order: 0;
    }

    .dmls-app-rows {
        gap: 3rem;
    }

    .dmls-prod-grid {
        grid-template-columns: 1fr;
    }

    .dmls-why-grid {
        grid-template-columns: 1fr;
    }
}

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