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

:root {
    --bg: #0F0F0F;
    --surface: #1A1A1A;
    --border: #2A2A2A;
    --text: #EAEAEA;
    --muted: #B0B0B0;
    --accent: #4A90E2;
    --accent-glow: rgba(74, 144, 226, 0.15);
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Navigation ──────────────────────────────────── */
nav {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--text);
    border-color: var(--border);
    background-color: #1E1E1E;
}

.nav-links a.active {
    color: var(--text);
    border-color: var(--accent);
}

.nav-name {
    border: 2px solid var(--border) !important;
}

.ml-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background-color: var(--surface);
    color: var(--text);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Syne', sans-serif;
}

.ml-button:hover {
    border-color: var(--accent);
}

/* ─── Container ───────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Section separator ───────────────────────────── */
.section-separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ─── Section titles ──────────────────────────────── */
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0.75rem auto 0;
}

/* ─── SECTION 1 : En-tête projet ─────────────────── */
#projet-header {
    padding: 4rem 0;
}

.projet-title {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.projet-title span {
    color: var(--accent);
}

.projet-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.projet-logo-wrapper {
    display: flex;
    justify-content: center;
}

.projet-logo {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--muted);
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.projet-logo:hover {
    border-color: var(--accent);
}

.projet-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
}

.projet-logo span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.4;
}

.projet-desc {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.projet-desc p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
}

/* ─── SECTION 2 : Technologies ───────────────────── */
#technologies {
    padding: 4rem 0;
}

.skills-carousel-outer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.skills-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 6px 0;
    margin: -6px 0;
}

.skills-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.skill-card {
    min-width: 180px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.skill-logo {
    width: 88px;
    height: 88px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.skill-logo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    display: block;
}

.skill-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.82rem;
    color: var(--text);
    text-align: center;
    letter-spacing: 0.04em;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 16px rgba(74, 144, 226, 0.4);
}

/* ─── SECTION 3 : Sommaire ───────────────────────── */
#sommaire {
    padding: 4rem 0 5rem;
}

.toc {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Item de base */
.toc-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    transition: border-color 0.3s ease;
}

.toc-item:hover {
    border-color: #3a3a3a;
}

/* Feuille (pas de sous-titres) */
.toc-leaf {
    display: block;
    padding: 1rem 1.4rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.03em;
}

/* Bouton dépliable */
.toc-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.toc-toggle:hover {
    color: var(--accent);
}

.toc-arrow {
    font-size: 0.6rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.toc-item.open .toc-arrow {
    transform: rotate(90deg);
}

/* Sous-titres */
.toc-sub {
    list-style: none;
    padding: 0 1.4rem 1rem 2.8rem;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
}

.toc-item.open .toc-sub {
    display: flex;
}

.toc-sub li {
    font-size: 0.88rem;
    color: var(--muted);
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1rem;
}

.toc-sub li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.6;
}

/* ─── Footer ──────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.1em;
}

/* ─── Sections de contenu ─────────────────────────── */
.content-section {
    padding: 4rem 0;
}

.chapter-title {  /* ─── Pour les grands titres ─────────────────────────── */
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.03em;
}

.chapter-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: var(--accent);
    margin-right: 0.75rem;
    vertical-align: middle;
    border-radius: 2px;
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.content-block p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
}

/* ─── Sous-sections ───────────────────────────────── */
.sub-section {
    margin-top: 5.5rem;
}

.sub-title { /* ─── Sous-titre en h3───────────────────────────────── */
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--accent);
}

/* ─── Tables ──────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table thead tr {
    background: #1E2A3A;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    padding: 0.9rem 1.1rem;
    text-align: left;
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 0.8rem 1.1rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(74, 144, 226, 0.05);
}

.table-caption {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    padding: 0.6rem 0 1.5rem;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* Tables côte à côte */
.tables-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ─── Rôles des composants ────────────────────────── */
.roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.role-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 1.4rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: box-shadow 0.3s ease;
}

.role-card:hover {
    box-shadow: 0 4px 20px var(--accent-glow);
}

.role-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
}

.role-content h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.role-content p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ─── Topologie ───────────────────────────────────── */
.topology-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.topology-placeholder {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16/9;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topology-placeholder:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.topology-placeholder span {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
}

.topology-img {
    width: 100%;
    max-width: 960px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: zoom-in;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.topology-img:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 24px var(--accent-glow);
}

/* zoom-hint scoped dans .topology-img-container */

/* ─── Lightbox ────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: zoom-in;
}

.lightbox-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 4rem 6rem;
}

.lightbox-placeholder p {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    opacity: 0.5;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .tables-side-by-side {
        grid-template-columns: 1fr;
    }
    .roles-grid {
        grid-template-columns: 1fr;
    }
    .projet-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Inventaire machines ─────────────────────────── */
.inventaire-note {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.inventaire-block {
    margin-bottom: 2.5rem;
}

.lan-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.85;
}

/* Criticité badge */
td.crit {
    font-weight: 700;
    color: #E05A5A;
}

td.std {
    font-weight: 700;
    color: #4CAF82;
}

/* ─── Topology image container ────────────────────── */
.topology-img-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    cursor: zoom-in;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.topology-img-container:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.topology-img-container .topology-img {
    display: block;
    width: 100%;
    border-radius: 0;
    border: none;
    cursor: zoom-in;
}

.topology-img-container .zoom-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.topology-img-container:hover .zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.zoom-instruction {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'Syne', sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active .zoom-instruction {
    opacity: 1;
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

/* ─── Definition list ─────────────────────────────── */
.definition-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.definition-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--muted);
    line-height: 1.8;
}

.definition-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.definition-list strong {
    color: var(--text);
    font-weight: 600;
}

/* ─── Sub intro text ──────────────────────────────── */
.sub-intro {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.sub-intro-center {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: center;
}



/* ─── Policy table highlighting ───────────────────── */
.policy-table thead th span.crit {
    color: #E05A5A;
}

/* ─── Definition boxes ────────────────────────────── */
.definition-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.def-item {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
}

.def-item h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.def-item p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ─── Definition box pleine largeur (1 seul élément) ── */
.definition-box--single {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* ─── Responsive for definition box ───────────────── */
@media (max-width: 768px) {
    .definition-box {
        grid-template-columns: 1fr;
    }
}

/* ─── Lightbox Zoom ───────────────────────────────── */
.lightbox img.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}

/* ─── Configuration section ───────────────────────── */
.config-subsection {
    margin-top: 4rem;
}


.config-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

/* ─── Image placeholders ──────────────────────────── */
.image-placeholder {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--muted);
    min-height: 180px;
    margin-bottom: 1.5rem;
}

.image-placeholder.large {
    min-height: 400px;
}

.image-placeholder svg {
    opacity: 0.3;
}

.image-placeholder span {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

.image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ─── Images grid ─────────────────────────────────── */
.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ─── Info note ───────────────────────────────────── */
.info-note {
    background: rgba(74, 144, 226, 0.1);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ─── Config list ─────────────────────────────────── */
.config-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.config-list li {
    padding: 1rem 1.2rem;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    line-height: 1.8;
    color: var(--muted);
}

.config-list li strong {
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

/* ─── Responsive images grid ──────────────────────── */
@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Param blocks (remplace config-list) ──────────── */
.param-blocks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.param-block {
    padding: 1rem 1.2rem;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
}

.param-block strong {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
}

.param-block p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.9rem;
    margin: 0;
}

/* ─── Italic for job names ──────────────────────── */
.italic-underline {
    font-style: italic;
}


/* ─── Titre simple h5  ───────────────── */
.subsub-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-align: center ;
}


/* ─── Frequency notes ─────────────────────────────── */
.frequency-notes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.freq-note {
    padding: 1rem 1.2rem;
    background: rgba(74, 144, 226, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
}

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

.freq-note strong {
    color: var(--accent);
    font-weight: 600;
}

.freq-note--lower {
    margin-top: 10rem;
}

freq-note freq-note--lower-screen18 {
    margin-top: 5rem;
}

/* ─── Note verte encadrée (immutabilité) ─────────── */
.freq-note--green {
    background: rgba(76, 175, 80, 0.08);
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 1.8rem;
    text-align: center;
    align-self: center;
}

.freq-note--green p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.9;
    margin: 0;
}

.freq-note--green strong {
    color: #4CAF50;
    font-weight: 600;
}

.freq-note--lower-haut {
    margin-top: 5rem;
}

/* ─── Image cards - VERSION COMPACTE ─────────────── */
.image-card {
    background: var(--surface);              /* fond gris subtil */
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.3rem;                         /* réduit au minimum */
    display: flex;
    flex-direction: column;
    gap: 0.4rem;                             /* gap réduit */
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.image-card__img {
    display: block;
    width: 100%;
    max-width: 100%;                         /* prend toute la largeur */
    height: auto;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 6px;
}

.image-card__caption {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;                      /* légèrement plus petit */
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.6;
    text-align: center;
    padding: 0.2rem 0;
}

/* ─── Ajustements spécifiques images ──────────────── */

/* Réduire contour de toutes les image-card */
.images-grid .image-card {
    padding: 0.15rem;                        /* encore plus fin */
}



/* ─── Config notes ────────────────────────────────── */
.config-note {
    background: rgba(74, 144, 226, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

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

.config-note strong {
    color: var(--accent);
    font-weight: 600;
}

/* ─── Espacements image-card ↔ config-note ─────────── */
.image-card + .config-note {
    margin-top: 1.5rem;
}

.config-note + .image-card {
    margin-top: 2rem;
}

/* ─── Tailles d'images (rôle visuel explicite) ────── */
/* Usage : ajouter la classe directement sur la figure */
/*   image-wide   → pleine largeur (ex : screen3)     */
/*   image-medium → taille moyenne 700px (ex : screen6-10) */
/*   image-small  → taille réduite 500px   

*/
.image-wide {
    max-width: 100%;
    margin: 0 auto 1.5rem;
}

.image-medium {
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.image-small {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* ─── Config grid layout (horizontal) ─────────────── */
.config-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.config-grid-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.config-images-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.config-images-row .image-card {
    max-width: 100%;
}

/* Note en dessous des images */
.config-grid-item .config-note {
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .config-images-row {
        grid-template-columns: 1fr;
    }
}

/* ─── Override anciennes règles pour section C ──────── */
.config-grid .image-card {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.config-grid .config-note {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

/* ─── Screens 9 et 10 côte à côte ──────────────────── */
.screens-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.screens-row .image-card {
    max-width: 100%;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .screens-row {
        grid-template-columns: 1fr;
    }
}


/* ─── Frequencies layout (screen12 / screen13) ─── */
.freq-row{
  display:flex;
  gap:1.5rem;
  align-items:stretch;

  /* centrer le bloc sur la page */
  max-width: 1200px;     /* ajuste si tu veux + large */
  margin: 0 auto 2.5rem;
}

.freq-col{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:1rem;
}

/* ─── Colonnes asymétriques (optionnel) ───────────── */
/* Ajouter is-large / is-small sur un freq-col pour   */
/* déséquilibrer visuellement les deux colonnes       */
.freq-col.is-large { flex: 1.35; }
.freq-col.is-small { flex: 0.65; }

/* ─── Tailles d'images effectives dans freq-row ───── */
/* width (pas max-width) pour que la taille ait un    */
/* vrai effet même dans une colonne flex              */
.freq-row .image-wide   { width: 100%; }
.freq-row .image-medium { width: min(700px, 100%); }
.freq-row .image-small  { width: min(500px, 100%); }

.freq-row .image-wide,
.freq-row .image-medium,
.freq-row .image-small  { margin-left: auto; margin-right: auto; }

/* responsive */
@media (max-width: 900px){
  .freq-row{
    flex-direction:column;
    max-width: 700px;
  }
  .freq-col.is-large,
  .freq-col.is-small { flex: 1; }
}

/* ─── Alignement "léger à gauche" des titres Backup Job ─── */
.config-subsection {
  max-width: 950px;     /* ajuste si tu veux (900 / 1000) */
  margin-left: auto;
  margin-right: auto;
}

/* ─── Freq-row variante centrée (tests) ──────────────── */
.freq-row--center {
    align-items: center;
}

/* ─── Titre niveau a. b. c. (sous config-subsection) ── */
.tertiary-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    font-style: italic;
    opacity: 0.9;
}

/* ─── Variantes du ::before des test-notes ──────────── */
.test-note--incident::before { content: '⚠  INCIDENT'; }
.test-note--params::before   { content: '⚙  PARAMÈTRES'; }

/* ─── Encadré résultat de scénario ──────────────────── */
.scenario-result {
    background: rgba(74, 144, 226, 0.06);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 1.2rem 2rem;
    text-align: center;
    max-width: 720px;
    margin: 2.5rem auto 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.scenario-result strong {
    color: var(--accent);
    font-weight: 700;
}
















/* ─── Notes de validation (section Tests) ────────────── */
.test-note {
    background: rgba(74, 144, 226, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
}

.test-note::before {
    content: '✓  RÉSULTAT';
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    opacity: 0.85;
}

.test-note p {
    color: var(--text);
    line-height: 1.8;
    font-size: 0.9rem;
    margin: 0;
}

.test-note strong {
    color: var(--accent);
    font-weight: 600;
}

/* ─── Badge de validation final ──────────────────────── */
.validation-badge {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 1rem;
}

.validation-badge span {
    display: inline-block;
    padding: 0.75rem 2.2rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    background: rgba(74, 144, 226, 0.06);
}

/* le paragraphe aussi */
.config-subsection .sub-intro {
  text-align: left;
}


/* ─── Sidebar TOC — Design ─────────────────────────────────── */
.sidenav {
    display: none;
    position: fixed;
    top: 77px;
    left: 0;
    width: 270px;
    height: calc(100vh - 77px);
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 90;
    overflow: hidden;
}

/* Fondu en bas de la liste */
.sidenav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: linear-gradient(to top, var(--surface), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Zone scrollable interne */
.sidenav__scroll {
    height: 100%;
    overflow-y: auto;
    padding: 1.8rem 0.6rem 4rem 1.3rem;
    scrollbar-width: thin;
    scrollbar-color: #252525 transparent;
}

.sidenav__scroll::-webkit-scrollbar { width: 3px; }
.sidenav__scroll::-webkit-scrollbar-track { background: transparent; }
.sidenav__scroll::-webkit-scrollbar-thumb { background: #252525; border-radius: 2px; }

/* Titre "SOMMAIRE" */
.sidenav__heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.5rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.75;
    font-family: 'Syne', sans-serif;
    margin-bottom: 1.6rem;
}

.sidenav__heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(74, 144, 226, 0.35), transparent);
}

/* Liste avec ligne de track verticale */
.sidenav__list {
    list-style: none;
    padding: 0 0 0 0.9rem;
    margin: 0;
    position: relative;
}

.sidenav__list::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--border) 8%,
        var(--border) 92%,
        transparent
    );
}

/* Lien */
.sidenav__link {
    display: block;
    position: relative;
    padding: 0.33rem 0.4rem 0.33rem 0.75rem;
    color: #909090;
    font-size: 0.7rem;
    line-height: 1.32;
    text-decoration: none;
    border-radius: 0 5px 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.22s, background 0.22s;
}

/* Point sur le track */
.sidenav__link::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid #444;
    transition: border-color 0.22s, background 0.22s, box-shadow 0.22s, transform 0.22s;
    z-index: 1;
}

.sidenav__link:hover {
    color: #888;
    background: rgba(255, 255, 255, 0.02);
}

.sidenav__link:hover::before {
    border-color: #505050;
}

/* Actif */
.sidenav__link.is-active {
    color: var(--accent);
    background: rgba(74, 144, 226, 0.07);
}

.sidenav__link.is-active::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.6), 0 0 2px rgba(74, 144, 226, 0.9);
    transform: translateY(-50%) scale(1.15);
}

/* Niveau 1 — chapter-title : Syne, légèrement plus visible */
.sidenav__link:not(.sidenav__link--sub) {
    font-family: 'Syne', sans-serif;
    font-size: 0.67rem;
    color: #aaaaaa;
    margin-top: 0.15rem;
}

.sidenav__link:not(.sidenav__link--sub).is-active {
    font-weight: 600;
}

/* Niveau 2 — sub-title */
.sidenav__link--sub {
    padding-left: 1.3rem;
    font-size: 0.62rem;
    color: #787878;
}

.sidenav__link--sub::before {
    width: 5px;
    height: 5px;
    left: -10px;
}

/* ─── Layout large écran ───────────────────────────────────── */
@media (min-width: 1400px) {
    .sidenav {
        display: block;
    }

    body {
        padding-left: 270px;
    }

    /* Restaure la nav en pleine largeur */
    nav {
        margin-left: -270px;
        width: calc(100% + 270px);
        padding-left: calc(270px + 2rem);
    }
}

/* ─── Step notes — blocs sombres section restauration ────── */
.step-notes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.step-note {
    background: #0b1929;
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.4rem;
}

.step-note p {
    color: #c8d6e5;
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
}

.step-note p strong {
    color: var(--accent);
    font-weight: 600;
}

/* ─── Scenario table (restaurations) ────────────────────── */
.scenario-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.scenario-table thead tr {
    background: #1E2A3A;
    border-bottom: 1px solid var(--border);
}

.scenario-table th {
    padding: 0.9rem 1.1rem;
    text-align: left;
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.scenario-table td {
    padding: 0.85rem 1.1rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
    vertical-align: top;
}

.scenario-table tbody tr:last-child td {
    border-bottom: none;
}

.scenario-table tbody tr:hover {
    background: rgba(74, 144, 226, 0.05);
}

/* ─── Steps flow (étapes restauration) ───────────────────── */
.steps-flow {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-top: 4rem;
}

.step-block {
    border-left: 2px solid var(--border);
    padding-left: 1.8rem;
    position: relative;
}

.step-block::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.4;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.4);
}

.step-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/* ─── Mise en page image + notes côte à côte ─────────────── */
.content-img-side {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 1.5rem 0;
}

.content-img-side .image-card {
    flex: 0 0 52%;
    max-width: 52%;
    margin: 0;
}

.side-notes {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.side-notes .config-note,
.side-notes .step-note {
    margin: 0;
}

/* ─── Liste d'intro (bullet points intro) ────────────────── */
.sub-intro-list {
    margin: 0.5rem 0 1rem 1.5rem;
    color: var(--text-muted, #b0b0b0);
    font-size: 0.95rem;
    line-height: 1.7;
}

.sub-intro-list li {
    margin-bottom: 0.3rem;
}

/* ─── Grille IV. Technologie utilisée ───────────────── */
.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-item__logo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-item__logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.tech-item__body {
    flex: 1;
}

.tech-item__name {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.tech-item__desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

/* ─── Label de groupe inventaire (A. LAN 01, B. DMZ…) ── */
.inventory-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .content-img-side {
        flex-direction: column;
    }
}

/* ─── Note tag ────────────────────────────────────── */
.note-tag {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(176, 176, 176, 0.18);
    border-radius: 6px;
    font-size: 0.87rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.note-tag::before {
    content: "Note";
    flex-shrink: 0;
    font-family: 'Syne', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(74, 144, 226, 0.12);
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    margin-top: 0.15rem;
}

/* ─── Result note ──────────────────────────────────── */
.result-note {
    display: block;
    padding: 0.9rem 1.4rem;
    background: transparent;
    border: 1px solid rgba(74, 144, 226, 0.45);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.65;
    text-align: center;
}

.result-note::before {
    content: "Résultat : ";
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--accent);
}










