/* =================================================================
   Section Matériel — sous-menu en tuiles + pages détail avec sidebar
   ================================================================= */

/* ------------------- Sous-menu (tuiles) ------------------- */
.submenu-panel {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -38px rgba(77, 15, 55, .45);
    padding: 2.6rem 2.8rem 3rem;
    position: relative;
    overflow: hidden;
}
.submenu-panel__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.submenu-panel__deco .dot-circle {
    position: absolute;
    border-radius: 50%;
    background: #f3e8f0;
}
.submenu-head {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 2.2rem;
    position: relative;
}
.submenu-head__icon {
    width: 84px; height: 84px;
    border-radius: 50%;
    border: 1px solid #eadfe8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 8px 22px -14px rgba(128,31,90,.5);
}
.submenu-head__icon svg {
    width: 40px; height: 40px;
    stroke: var(--accent, var(--plum));
    fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.submenu-head__divider { width: 2px; height: 60px; background: var(--accent, var(--plum)); opacity: .5; }
.submenu-head h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent, var(--plum));
}

.tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.4rem;
    position: relative;
}
.tile {
    --tint: var(--plum);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.3rem;
    padding: 2.6rem 1.2rem 2rem;
    min-height: 20rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--tint) 7%, #fff);
    transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px -20px color-mix(in srgb, var(--tint) 60%, transparent);
}
.tile__link { position: absolute; inset: 0; border-radius: 14px; }
.tile__icon svg {
    width: 74px; height: 74px;
    stroke: var(--tint);
    fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.tile__label {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--tint);
    max-width: 14ch;
}
.tile__arrow {
    margin-top: auto;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -8px rgba(30,10,25,.35);
}
.tile__arrow svg {
    width: 22px; height: 22px;
    stroke: var(--tint);
    fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .18s ease;
}
.tile:hover .tile__arrow svg { transform: translateX(3px); }

@media (max-width: 1150px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .tiles { grid-template-columns: repeat(2, 1fr); } .submenu-panel { padding: 1.6rem; } }
@media (max-width: 480px)  { .tiles { grid-template-columns: 1fr; } }

/* ------------------- Page détail (sidebar + contenu) ------------------- */
.detail-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2.6rem;
    align-items: start;
    margin-top: 1.2rem;
}
.side-nav {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px -30px rgba(77,15,55,.5);
    position: sticky;
    top: 1.2rem;
}
.side-nav__head {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: var(--plum);
    color: #fff;
    font-weight: 700;
    font-size: 1.12rem;
    padding: 1.05rem 1.2rem;
}
.side-nav__head svg {
    width: 24px; height: 24px;
    stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.side-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .95rem 1.2rem;
    font-size: .96rem;
    font-weight: 600;
    color: var(--nav-grey);
    border-top: 1px solid #f1edf2;
    transition: background .14s ease, color .14s ease;
}
.side-nav a svg {
    width: 22px; height: 22px; flex-shrink: 0;
    stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.side-nav a .chev { margin-left: auto; width: 15px; height: 15px; opacity: .55; }
.side-nav a:hover { background: #faf5f9; color: var(--plum); }
.side-nav a.is-active {
    background: color-mix(in srgb, var(--plum) 8%, #fff);
    color: var(--plum);
    box-shadow: inset 3px 0 0 var(--plum);
}

.detail-content h1 {
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--plum);
}
.detail-content .title-rule {
    width: 54px; height: 4px;
    border-radius: 3px;
    background: var(--plum);
    margin: .7rem 0 1rem;
}
.detail-intro { color: #5c5866; margin-bottom: 2rem; }

.model-group + .model-group { margin-top: 2.8rem; }
.group-label {
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--plum);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .7rem;
}
.group-label .ref-col-label { font-size: .85rem; letter-spacing: .02em; text-transform: none; color: var(--plum); }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fbf7fa;
    border-radius: 12px;
    overflow: hidden;
    font-size: .98rem;
}
.spec-table td {
    padding: .95rem 1.2rem;
    border-top: 1px solid #f0e6ee;
    color: #3c3946;
}
.spec-table tr:first-child td { border-top: none; }
.spec-table td.ic { width: 54px; padding-right: 0; }
.spec-table td.ic svg {
    width: 26px; height: 26px;
    stroke: var(--plum); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    display: block;
}
.spec-table td.ref {
    width: 150px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #514c5c;
    font-weight: 600;
    white-space: nowrap;
}
.spec-table tr.model-row td { font-weight: 700; color: var(--ink); font-size: 1.05rem; }

.acc-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    font-size: .96rem;
    box-shadow: 0 10px 30px -24px rgba(77,15,55,.5);
}
.acc-table thead th {
    background: var(--plum);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: .8rem 1.2rem;
    font-size: .92rem;
}
.acc-table thead th.ref { text-align: right; width: 150px; }
.acc-table tbody td {
    background: #fff;
    padding: .8rem 1.2rem;
    border-top: 1px solid #f2edf3;
    color: #3c3946;
}
.acc-table tbody td.ref {
    text-align: right;
    font-weight: 600;
    color: #514c5c;
    white-space: nowrap;
}

.footnotes {
    margin-top: 2.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    color: #6a6675;
    font-size: .88rem;
}
.footnotes p { margin: .2rem 0; }

/* Encadré téléphonie mobile */
.notice-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--plum);
    border-radius: 12px;
    padding: 1.6rem 1.8rem;
    max-width: 720px;
    box-shadow: 0 14px 36px -28px rgba(77,15,55,.5);
    color: #3c3946;
    line-height: 1.6;
}
.notice-card a { color: var(--plum); font-weight: 700; }

@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; }
    .side-nav { position: static; }
}
