/* Pages de contenu Lame Verte (profils, aciers, marques) : thème sombre de l'accueil. */

:root{
    --bg:#0c0f11;
    --bg2:#12171b;
    --steel:#cfd3d6;
    --green:#5cff4a;
    --green-soft:#43c437;
    --text:#f2f2f2;
    --muted:#9ca3aa;
    --card:#161c20;
    --border:rgba(255,255,255,0.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(92,255,74,0.08), transparent 30%),
        linear-gradient(180deg,#0b0d0f,var(--bg2) 40%,#0a0d10 100%);
    background-color:var(--bg);
    color:var(--text);
    overflow-x:hidden;
    padding-top:88px; /* en-tête fixe */
}

.container{
    width:min(1400px,92%);
    margin:auto;
}

main section{
    padding:56px 0;
    position:relative;
}

main section + section{
    border-top:1px solid rgba(255,255,255,.04);
}

h1,h2,h3,h4{
    line-height:1.15;
}

p{
    color:#c6ccd2;
    line-height:1.7;
}

main p{
    max-width:920px;
    margin-bottom:14px;
}

main a{
    color:var(--green);
    text-decoration:none;
    border-bottom:1px solid rgba(92,255,74,.3);
    transition:color .3s, border-color .3s;
}

main a:hover{
    color:#8dff7f;
    border-bottom-color:var(--green);
}

main ul,
main ol{
    color:#c6ccd2;
    line-height:1.7;
    padding-left:22px;
    margin-bottom:14px;
}

/* ── Boutons (repris de l'accueil) ── */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:16px 28px;
    border-radius:60px;
    text-decoration:none;
    font-weight:700;
    transition:.35s;
    cursor:pointer;
    border:1px solid transparent;
}

main a.btn{ border-bottom-width:1px; }

.btn-primary,
main a.btn-primary{
    background:linear-gradient(135deg,var(--green),#2f8f25);
    color:#061006;
    box-shadow:0 0 30px rgba(92,255,74,.25);
    border-color:transparent;
}

.btn-primary:hover,
main a.btn-primary:hover{
    color:#061006;
    transform:translateY(-3px);
    box-shadow:0 0 45px rgba(92,255,74,.45);
}

.btn-secondary,
main a.btn-secondary{
    border:1px solid rgba(255,255,255,.15);
    color:white;
    background:rgba(255,255,255,.04);
}

.btn-secondary:hover,
main a.btn-secondary:hover{
    color:white;
    border-color:rgba(255,255,255,.3);
    background:rgba(255,255,255,.09);
}

.btn-mini,
main a.btn-mini{
    display:inline-block;
    padding:6px 12px;
    border-radius:30px;
    border:1px solid rgba(92,255,74,.35);
    background:rgba(92,255,74,.08);
    color:var(--green);
    font-size:.8rem;
    font-weight:700;
    white-space:nowrap;
}

.btn-mini:hover,
main a.btn-mini:hover{
    background:rgba(92,255,74,.18);
    border-color:var(--green);
    color:#8dff7f;
}

/* ── En-tête de page ── */

.page-hero{
    padding:64px 0 56px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.15)),
        radial-gradient(circle at 85% 20%, rgba(92,255,74,.10), transparent 45%);
    border-bottom:1px solid rgba(255,255,255,.05);
}

main section.page-hero{
    padding:64px 0 56px;
}

.page-hero h1{
    font-size:2.8rem;
    font-weight:900;
    margin-bottom:22px;
    max-width:1050px;
}

.breadcrumb{
    font-size:.85rem;
    color:var(--muted);
    margin-bottom:22px;
}

main .breadcrumb a{
    color:var(--muted);
    border-bottom-color:rgba(156,163,170,.3);
}

main .breadcrumb a:hover{
    color:var(--green);
}

.lead{
    font-size:1.12rem;
    color:#d5d9dc;
}

main p.lead{
    max-width:880px;
}

.hero-actions{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin-top:30px;
}

/* ── Sections ── */

.section-title{
    font-size:2rem;
    font-weight:900;
    margin-bottom:20px;
    letter-spacing:.5px;
}

.note{
    font-size:.85rem;
    color:var(--muted);
    border-left:3px solid rgba(92,255,74,.35);
    padding-left:12px;
    margin-top:16px;
}

main p.note{
    color:var(--muted);
}

.tag{
    display:inline-block;
    margin-left:6px;
    padding:2px 8px;
    border-radius:20px;
    background:rgba(92,255,74,.1);
    border:1px solid rgba(92,255,74,.25);
    color:var(--green);
    font-size:.72rem;
    font-weight:700;
    vertical-align:middle;
    white-space:nowrap;
}

.schema{
    display:block;
    width:100%;
    max-width:420px;
    height:auto;
    background:#d9d9d9;
    padding:24px;
    border-radius:20px;
    margin:24px 0 28px;
}

/* ── Tableaux ── */

.table-wrap{
    width:100%;
    max-height:75vh;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    border:1px solid var(--border);
    border-radius:16px;
    margin:20px 0 12px;
    background:#0f1317;
}

.spec-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    font-size:.92rem;
    font-variant-numeric:tabular-nums;
}

.spec-table th,
.spec-table td{
    padding:11px 14px;
    text-align:right;
    border-bottom:1px solid rgba(255,255,255,.05);
    vertical-align:middle;
}

.spec-table thead th{
    position:sticky;
    top:0;
    z-index:1;
    background:#1a2126;
    color:var(--steel);
    font-weight:700;
    font-size:.85rem;
    white-space:nowrap;
    border-bottom:1px solid rgba(92,255,74,.3);
}

.spec-table th small{
    font-weight:400;
    color:var(--muted);
}

.spec-table td{
    color:#d5d9dc;
    white-space:nowrap;
}

.spec-table tbody tr:nth-child(even) td{
    background:rgba(255,255,255,.025);
}

.spec-table tbody tr:hover td{
    background:rgba(92,255,74,.05);
}

.spec-table th:first-child,
.spec-table td:first-child{
    text-align:left;
}

/* Colonnes de liens (fiche, plan de perçage) centrées */
.spec-table td:has(> a){
    text-align:center;
}

/* Tableau des nuances d'acier : colonnes de texte, alignées à gauche et repliées */
.spec-table:has(thead th:empty) th,
.spec-table:has(thead th:empty) td{
    text-align:left;
    white-space:normal;
    min-width:180px;
}

.spec-table:has(thead th:empty) td:first-child{
    min-width:150px;
    color:var(--steel);
    font-weight:700;
}

/* ── Index des marques ── */

.liste-marques{
    list-style:none;
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
    gap:16px;
    margin:24px 0 30px;
}

main ul.liste-marques{
    padding-left:0;
}

.liste-marques li{
    background:linear-gradient(180deg,#151b20,#0f1317);
    border:1px solid var(--border);
    border-radius:18px;
    padding:20px 22px;
    color:var(--muted);
    line-height:1.5;
    transition:border-color .3s;
}

.liste-marques li:hover{
    border-color:rgba(92,255,74,.3);
}

main .liste-marques a{
    border-bottom:none;
    font-size:1.15rem;
}

/* ── Pied de page (repris de l'accueil) ── */

.site-footer{
    padding:70px 0 40px;
    border-top:1px solid rgba(255,255,255,.05);
    background:#090c0f;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
}

.footer-grid h3{
    margin-bottom:20px;
}

.footer-logo{
    height:70px;
    margin-bottom:24px;
}

.footer-links{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.footer-links a,
.footer-links span{
    color:#bfc5ca;
    text-decoration:none;
    line-height:1.5;
}

.footer-links a:hover{
    color:var(--green);
}

.footer-bottom{
    margin-top:50px;
    padding-top:24px;
    border-top:1px solid rgba(255,255,255,.05);
    color:#7e858b;
    font-size:.9rem;
}

.footer-espace{
    margin-left:24px;
    color:#374151;
    font-size:.78rem;
    text-decoration:none;
}

.footer-group{
    margin-top:20px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.05);
    text-align:center;
    font-size:.85rem;
    color:#7e858b;
}

.footer-group a{
    color:#9ca3aa;
    text-decoration:none;
    border-bottom:1px solid rgba(255,255,255,.2);
    padding-bottom:1px;
    transition:color .3s;
}

.footer-group a:hover{
    color:var(--green);
}

/* ── Adaptations ── */

@media(max-width:1200px){
    .footer-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:768px){
    main section{
        padding:40px 0;
    }

    .page-hero h1{
        font-size:1.9rem;
    }

    main section.page-hero{
        padding:40px 0 36px;
    }

    .section-title{
        font-size:1.5rem;
    }

    .lead{
        font-size:1rem;
    }

    .hero-actions .btn{
        width:100%;
    }

    .spec-table{
        font-size:.85rem;
    }

    .spec-table th,
    .spec-table td{
        padding:9px 10px;
    }

    .liste-marques{
        grid-template-columns:1fr;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }
}

@media print{
    body{ padding-top:0; background:white; color:black; }
    .site-footer, .hero-actions{ display:none; }
    .table-wrap{ max-height:none; overflow:visible; }
}
