/* =====================================================
   Page Posture Sécurité (/securite/)
   ===================================================== */

.sec-page {
    background: var(--surface-light);
}

.sec-hero {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
}

.sec-hero-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 52rem;
    margin-top: var(--space-6);
}

.sec-kicker {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sec-title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.35rem, 5vw, 3.85rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: var(--secondary);
    text-wrap: balance;
}

.sec-intro {
    margin: 0;
    max-width: var(--prose-measure);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-main);
    text-wrap: pretty;
}

.sec-intro code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 0.1em 0.35em;
    border-radius: var(--radius-sm);
    background: var(--surface-accent);
    border: 1px solid var(--card-border);
    color: var(--secondary);
}

/* Bandeau synthétique 4 indicateurs vérifiés */
.sec-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: var(--space-10);
    border-top: 1px solid var(--secondary);
    border-bottom: 1px solid var(--card-border);
}

.sec-kpi {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-5) var(--space-5) var(--space-5) var(--space-5);
    border-left: 1px solid var(--card-border);
}

.sec-kpi:first-child {
    padding-left: 0;
    border-left: 0;
}

.sec-kpi-value {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 2.125rem;
    line-height: 1.05;
    color: var(--secondary);
}

.sec-kpi-label {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sec-kpi-detail {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Sections */
.sec-section {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--card-border);
}

.sec-section-head {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: var(--prose-measure);
    margin-bottom: var(--space-8);
}

.sec-section-title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.15;
    color: var(--secondary);
    text-wrap: balance;
}

.sec-section-lead {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.sec-section-lead code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    color: var(--secondary);
}

/* 4 piliers d'architecture */
.sec-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sec-pillar {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-6);
    background: var(--surface-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
}

.sec-pillar-num {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.875rem;
    line-height: 1;
    color: var(--primary);
}

.sec-pillar-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--secondary);
}

.sec-pillar-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Liste structurée des en-têtes HTTP */
.sec-headers-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--card-border);
}

.sec-header-row {
    display: grid;
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    gap: var(--space-4) var(--space-8);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--card-border);
    align-items: start;
}

.sec-header-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

.sec-header-name {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--secondary);
    overflow-wrap: anywhere;
}

.sec-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    width: fit-content;
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--success);
}

.sec-status::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: var(--radius-full);
    background: var(--success);
}

.sec-status--open {
    color: var(--primary);
}

.sec-status--open::before {
    background: var(--primary);
}

.sec-header-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

.sec-header-role {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-main);
}

.sec-header-role a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sec-code-block {
    margin: 0;
    padding: var(--space-3) var(--space-4);
    background: var(--surface-accent);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--secondary);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Contrôles serveur complémentaires */
.sec-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0 0;
    padding: 0;
    list-style: none;
}

.sec-check-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5);
    background: var(--surface-accent);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
}

.sec-check-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--secondary);
}

.sec-check-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Grille 2 colonnes : Vie privée / Hébergement & Divulgation */
.sec-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
}

.sec-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--surface-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
}

.sec-panel-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
}

.sec-facts {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
}

.sec-fact {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--card-border);
}

.sec-fact:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sec-fact dt {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sec-fact dd {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.sec-fact dd code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--secondary);
}

.sec-fact dd a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sec-inline-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    width: fit-content;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.sec-inline-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Bloc transparence / amélioration continue */
.sec-transparency {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-6);
}

.sec-note-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background: var(--surface-accent);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
}

.sec-note-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--secondary);
}

.sec-note-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-main);
}

.sec-note-text code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    color: var(--secondary);
}

/* Maillage bas de page */
.sec-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}

.sec-next-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-6);
    background: var(--surface-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sec-next-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sec-next-label {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sec-next-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--secondary);
}

.sec-next-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1023px) {
    .sec-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sec-kpi:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .sec-kpi:nth-child(3),
    .sec-kpi:nth-child(4) {
        border-top: 1px solid var(--card-border);
    }

    .sec-header-row {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-3);
    }
}

@media (max-width: 768px) {
    .sec-pillars,
    .sec-checks,
    .sec-two-col,
    .sec-transparency,
    .sec-next {
        grid-template-columns: minmax(0, 1fr);
    }

    .sec-kpi-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .sec-kpi {
        padding: var(--space-4) 0;
        border-left: 0;
        border-top: 1px solid var(--card-border);
    }

    .sec-kpi:first-child {
        border-top: 0;
    }
}
