﻿/* ═══════════════════════════════════════════════════════════════════════════
   EtikId — Thème Institutionnel
   Scope : [data-theme="institutionnel"]
   Direction artistique : blanc / marine sobre, or discret, serif pour titres.
   IMPORTANT : Toutes les règles sont sous un sélecteur
               [data-theme="institutionnel"] pour ne jamais polluer le thème
               principal EtikId Glass/Emerald.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Variables CSS + styles directs sur l'élément porteur ───────────── */
[data-theme="institutionnel"] {
    /* Fonds */
    --theme-bg:             #f7f6f4;        /* gris pierre très clair        */
    --theme-bg-muted:       #eeece8;        /* légèrement plus soutenu       */
    --theme-surface:        #ffffff;        /* surface carte                 */

    /* Couleurs principales */
    --theme-primary:        #1a3a5c;        /* bleu marine institutionnel    */
    --theme-primary-strong: #0f2340;        /* marine profond                */
    --theme-secondary:      #b8972e;        /* or / bronze discret           */

    /* Texte */
    --theme-text:           #2d3748;        /* gris ardoise                  */
    --theme-text-muted:     #718096;        /* gris ardoise clair            */

    /* Bordures */
    --theme-border:         #d9d5cc;        /* bordure douce                 */

    /* Feedback */
    --theme-success:        #276749;        /* vert sobre                    */

    /* Styles appliqués directement sur l'élément portant data-theme */
    background-color:       var(--theme-bg);
    color:                  var(--theme-text);
    font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial,
                 sans-serif;
}

/* ── 2. Reset de surface pour le body dans ce thème ────────────────────── */
[data-theme="institutionnel"] body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial,
                 sans-serif;
}

/* ════════════════════════════════════════════════════════════════════════════
   3. CLASSES COMPOSANTS INSTITUTIONNELS
      Toutes scopées sous [data-theme="institutionnel"].
   ════════════════════════════════════════════════════════════════════════════ */

/* ── institutional-page ─────────────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-page {
    min-height: 100vh;
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial,
                 sans-serif;
}

/* ── institutional-section ──────────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-section {
    padding: 5rem 1.5rem;
    background-color: var(--theme-surface);
}

/* ── institutional-section-muted ────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-section-muted {
    padding: 5rem 1.5rem;
    background-color: var(--theme-bg-muted);
}

/* ── institutional-container ────────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ── institutional-eyebrow ──────────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--theme-secondary);
    margin-bottom: 0.75rem;
}

/* ── institutional-title ────────────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-title {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--theme-primary-strong);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* ── institutional-subtitle ─────────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--theme-text-muted);
    max-width: 60ch;
    margin-bottom: 2rem;
}

/* ── institutional-card ─────────────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-card {
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06),
                0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

[data-theme="institutionnel"] .institutional-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09),
                0 8px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

/* ── institutional-card-premium ─────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-card-premium {
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-secondary);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(184, 151, 46, 0.12),
                0 8px 24px rgba(184, 151, 46, 0.08);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

[data-theme="institutionnel"] .institutional-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        rgba(184, 151, 46, 0.04) 0%,
        transparent 60%
    );
    pointer-events: none;
}

[data-theme="institutionnel"] .institutional-card-premium:hover {
    box-shadow: 0 4px 14px rgba(184, 151, 46, 0.18),
                0 12px 32px rgba(184, 151, 46, 0.12);
    transform: translateY(-2px);
}

/* ── institutional-button-primary ──────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background-color: var(--theme-primary);
    color: #ffffff;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(26, 58, 92, 0.25);
}

[data-theme="institutionnel"] .institutional-button-primary:hover {
    background-color: var(--theme-primary-strong);
    box-shadow: 0 4px 14px rgba(26, 58, 92, 0.35);
    color: #ffffff;
    text-decoration: none;
}

[data-theme="institutionnel"] .institutional-button-primary:focus-visible {
    outline: 2px solid var(--theme-secondary);
    outline-offset: 3px;
}

/* ── institutional-button-secondary ────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    color: var(--theme-primary);
    border: 1.5px solid var(--theme-primary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

[data-theme="institutionnel"] .institutional-button-secondary:hover {
    background-color: var(--theme-primary);
    color: #ffffff;
    text-decoration: none;
}

[data-theme="institutionnel"] .institutional-button-secondary:focus-visible {
    outline: 2px solid var(--theme-secondary);
    outline-offset: 3px;
}

/* ── institutional-link ────────────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-link {
    color: var(--theme-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease;
}

[data-theme="institutionnel"] .institutional-link:hover {
    color: var(--theme-primary-strong);
}

/* ── institutional-table ───────────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: var(--theme-text);
}

[data-theme="institutionnel"] .institutional-table thead tr {
    background-color: var(--theme-bg-muted);
    border-bottom: 2px solid var(--theme-border);
}

[data-theme="institutionnel"] .institutional-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
}

[data-theme="institutionnel"] .institutional-table tbody tr {
    border-bottom: 1px solid var(--theme-border);
    transition: background-color 0.12s ease;
}

[data-theme="institutionnel"] .institutional-table tbody tr:last-child {
    border-bottom: none;
}

[data-theme="institutionnel"] .institutional-table tbody tr:hover {
    background-color: var(--theme-bg);
}

[data-theme="institutionnel"] .institutional-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

/* ── institutional-legal-content ───────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-legal-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--theme-text);
    max-width: 72ch;
}

[data-theme="institutionnel"] .institutional-legal-content h2 {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

[data-theme="institutionnel"] .institutional-legal-content h3 {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-primary-strong);
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

[data-theme="institutionnel"] .institutional-legal-content p {
    margin-bottom: 1rem;
}

[data-theme="institutionnel"] .institutional-legal-content a {
    color: var(--theme-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

[data-theme="institutionnel"] .institutional-legal-content ul,
[data-theme="institutionnel"] .institutional-legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

[data-theme="institutionnel"] .institutional-legal-content li {
    margin-bottom: 0.35rem;
}

/* ── institutional-status-pill ─────────────────────────────────────────── */
[data-theme="institutionnel"] .institutional-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

[data-theme="institutionnel"] .institutional-status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

[data-theme="institutionnel"] .institutional-status-pill.status-operational {
    color: var(--theme-success);
    background-color: rgba(39, 103, 73, 0.08);
    border-color: rgba(39, 103, 73, 0.25);
}

[data-theme="institutionnel"] .institutional-status-pill.status-degraded {
    color: #92631a;
    background-color: rgba(184, 151, 46, 0.08);
    border-color: rgba(184, 151, 46, 0.3);
}

[data-theme="institutionnel"] .institutional-status-pill.status-outage {
    color: #9b1c1c;
    background-color: rgba(155, 28, 28, 0.07);
    border-color: rgba(155, 28, 28, 0.2);
}

/* ── /tarifs — pricing cards, abonnement, comparatif, FAQ ──────────────── */

[data-theme="institutionnel"] .tarif-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

[data-theme="institutionnel"] .tarif-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    font-weight: 500;
}

[data-theme="institutionnel"] .tarif-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

[data-theme="institutionnel"] .tarif-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: stretch;
}

[data-theme="institutionnel"] .tarif-plan-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

[data-theme="institutionnel"] .tarif-badge-recommended {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-secondary);
    background-color: rgba(184, 151, 46, 0.1);
    border: 1px solid rgba(184, 151, 46, 0.3);
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.75rem;
}

[data-theme="institutionnel"] .tarif-plan-header {
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="institutionnel"] .tarif-plan-icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    background-color: var(--theme-bg-muted);
    border: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--theme-primary);
    font-size: 0.9rem;
}

[data-theme="institutionnel"] .tarif-plan-icon-premium {
    background-color: rgba(184, 151, 46, 0.1);
    border-color: rgba(184, 151, 46, 0.3);
    color: var(--theme-secondary);
}

[data-theme="institutionnel"] .tarif-plan-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

[data-theme="institutionnel"] .tarif-plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0 0 1rem 0;
}

[data-theme="institutionnel"] .tarif-plan-pricing {
    margin-top: 0.75rem;
}

[data-theme="institutionnel"] .tarif-plan-price-label {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    margin: 0;
}

[data-theme="institutionnel"] .tarif-plan-price-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0;
}

[data-theme="institutionnel"] .tarif-plan-price-main strong {
    color: var(--theme-secondary);
}

[data-theme="institutionnel"] .tarif-plan-price-sub {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    margin: 0.2rem 0 0 0;
}

[data-theme="institutionnel"] .tarif-plan-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

[data-theme="institutionnel"] .tarif-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

[data-theme="institutionnel"] .tarif-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--theme-text);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--theme-border);
}

[data-theme="institutionnel"] .tarif-features-list li:last-child {
    border-bottom: none;
}

[data-theme="institutionnel"] .tarif-check-icon {
    color: var(--theme-success);
    font-size: 0.7rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

[data-theme="institutionnel"] .tarif-plan-cta {
    width: 100%;
    margin-top: auto;
}

[data-theme="institutionnel"] .tarif-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    [data-theme="institutionnel"] .tarif-sub-grid { grid-template-columns: 1fr; }
}

[data-theme="institutionnel"] .tarif-sub-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

[data-theme="institutionnel"] .tarif-price-box {
    text-align: center;
}

[data-theme="institutionnel"] .tarif-price-period {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
    margin: 0 0 0.5rem 0;
}

[data-theme="institutionnel"] .tarif-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0;
}

[data-theme="institutionnel"] .tarif-price-currency {
    color: var(--theme-secondary);
}

[data-theme="institutionnel"] .tarif-price-unit {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    margin: 0.2rem 0 0 0;
}

[data-theme="institutionnel"] .tarif-compare-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2.5rem;
}

@media (max-width: 900px) {
    [data-theme="institutionnel"] .tarif-compare-layout { grid-template-columns: 1fr; }
}

[data-theme="institutionnel"] .tarif-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    [data-theme="institutionnel"] .tarif-faq-grid { grid-template-columns: 1fr; }
}

[data-theme="institutionnel"] .tarif-faq-q {
    font-weight: 700;
    color: var(--theme-primary-strong);
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
}

[data-theme="institutionnel"] .tarif-faq-a {
    color: var(--theme-text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}

[data-theme="institutionnel"] .tarif-upsell-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ── /contact — formulaire, sidebar, réassurance ────────────────────────── */

[data-theme="institutionnel"] .contact-inst-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 860px) {
    [data-theme="institutionnel"] .contact-inst-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="institutionnel"] .contact-inst-form-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--theme-border);
}

[data-theme="institutionnel"] .contact-inst-field {
    margin-bottom: 1.25rem;
}

[data-theme="institutionnel"] .contact-inst-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 500px) {
    [data-theme="institutionnel"] .contact-inst-name-row {
        grid-template-columns: 1fr;
    }
}

[data-theme="institutionnel"] .contact-inst-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--theme-text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

[data-theme="institutionnel"] .contact-inst-input,
[data-theme="institutionnel"] .contact-inst-select,
[data-theme="institutionnel"] .contact-inst-textarea {
    width: 100%;
    background-color: var(--theme-surface);
    border: 1.5px solid var(--theme-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--theme-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    box-sizing: border-box;
}

[data-theme="institutionnel"] .contact-inst-input {
    height: 2.625rem;
}

[data-theme="institutionnel"] .contact-inst-select {
    height: 2.625rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

[data-theme="institutionnel"] .contact-inst-input:focus,
[data-theme="institutionnel"] .contact-inst-select:focus,
[data-theme="institutionnel"] .contact-inst-textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

[data-theme="institutionnel"] .contact-inst-input::placeholder,
[data-theme="institutionnel"] .contact-inst-textarea::placeholder {
    color: var(--theme-border);
}

[data-theme="institutionnel"] .contact-inst-textarea {
    resize: vertical;
    min-height: 8rem;
    line-height: 1.6;
}

[data-theme="institutionnel"] .contact-inst-submit {
    width: 100%;
    margin-top: 0.5rem;
}

[data-theme="institutionnel"] .contact-inst-note {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
    line-height: 1.5;
}

[data-theme="institutionnel"] .contact-inst-note strong {
    color: var(--theme-primary-strong);
}

[data-theme="institutionnel"] .contact-inst-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[data-theme="institutionnel"] .contact-inst-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
}

[data-theme="institutionnel"] .contact-inst-info-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    background-color: var(--theme-bg-muted);
    border: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--theme-primary);
    font-size: 0.9rem;
}

[data-theme="institutionnel"] .contact-inst-info-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
    margin: 0 0 0.2rem 0;
}

[data-theme="institutionnel"] .contact-inst-info-value {
    font-weight: 600;
    color: var(--theme-primary-strong);
    font-size: 0.9rem;
    margin: 0 0 0.15rem 0;
}

[data-theme="institutionnel"] .contact-inst-info-sub {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    margin: 0;
}

[data-theme="institutionnel"] .contact-inst-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

[data-theme="institutionnel"] .contact-inst-social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    border: 1.5px solid var(--theme-border);
    background-color: var(--theme-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

[data-theme="institutionnel"] .contact-inst-social-btn:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #ffffff;
}

[data-theme="institutionnel"] .contact-inst-reassurance-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

[data-theme="institutionnel"] .contact-inst-reassurance-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--theme-text);
}

[data-theme="institutionnel"] .contact-inst-reassurance-icon {
    color: var(--theme-success);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ── /faq — accordéon institutionnel ───────────────────────────────────── */

[data-theme="institutionnel"] .faq-inst-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

[data-theme="institutionnel"] .faq-inst-item {
    padding: 0;
    overflow: hidden;
}

[data-theme="institutionnel"] .faq-inst-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.12s ease;
    font-family: inherit;
}

[data-theme="institutionnel"] .faq-inst-trigger:hover {
    background-color: var(--theme-bg);
}

[data-theme="institutionnel"] .faq-inst-trigger:focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: -2px;
}

[data-theme="institutionnel"] .faq-inst-question {
    font-weight: 600;
    color: var(--theme-primary-strong);
    font-size: 0.9rem;
    line-height: 1.5;
}

[data-theme="institutionnel"] .faq-inst-chevron {
    color: var(--theme-text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

[data-theme="institutionnel"] .faq-inst-answer {
    border-top: 1px solid var(--theme-border);
    padding: 0 1.5rem 1.25rem 1.5rem;
}

[data-theme="institutionnel"] .faq-inst-answer p {
    color: var(--theme-text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0.875rem 0 0 0;
}

[data-theme="institutionnel"] .faq-inst-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    gap: 0.75rem;
    color: var(--theme-text-muted);
    font-size: 0.875rem;
}

[data-theme="institutionnel"] .faq-inst-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid var(--theme-border);
    border-top-color: var(--theme-primary);
    animation: faq-spin 0.8s linear infinite;
}

@keyframes faq-spin {
    to { transform: rotate(360deg); }
}

[data-theme="institutionnel"] .faq-inst-empty {
    text-align: center;
    padding: 5rem 0;
    color: var(--theme-text-muted);
    font-size: 0.875rem;
}

[data-theme="institutionnel"] .faq-inst-cta-card {
    text-align: center;
    margin-top: 2.5rem;
    padding: 2rem !important;
}

[data-theme="institutionnel"] .faq-inst-cta-title {
    font-weight: 700;
    color: var(--theme-primary-strong);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

[data-theme="institutionnel"] .faq-inst-cta-sub {
    color: var(--theme-text-muted);
    font-size: 0.875rem;
    margin: 0 0 1.25rem 0;
}

/* ── /guides — guide d'utilisation institutionnel ───────────────────────── */

[data-theme="institutionnel"] .guides-inst-sit-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 640px) {
    [data-theme="institutionnel"] .guides-inst-sit-nav { grid-template-columns: 1fr; }
}

[data-theme="institutionnel"] .guides-inst-sit-card {
    border: 1.5px solid var(--theme-border);
    border-radius: 8px;
    padding: 1.25rem;
    background: var(--theme-surface);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="institutionnel"] .guides-inst-sit-card:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 2px 8px rgba(26,58,92,0.08);
}

[data-theme="institutionnel"] .guides-inst-sit-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--theme-primary);
    font-size: 1.1rem;
}

[data-theme="institutionnel"] .guides-inst-sit-title {
    font-weight: 700;
    color: var(--theme-primary-strong);
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
}

[data-theme="institutionnel"] .guides-inst-sit-sub {
    color: var(--theme-text-muted);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
}

[data-theme="institutionnel"] .guides-inst-sec-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

[data-theme="institutionnel"] .guides-inst-sec-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 8px;
    border: 1.5px solid var(--theme-border);
    background: var(--theme-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--theme-primary);
    font-size: 1.4rem;
}

[data-theme="institutionnel"] .guides-inst-sec-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-secondary);
    margin: 0 0 0.25rem 0;
}

[data-theme="institutionnel"] .guides-inst-sec-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0 0 0.25rem 0;
    font-family: Georgia, Cambria, "Times New Roman", serif;
}

[data-theme="institutionnel"] .guides-inst-sec-sub {
    color: var(--theme-text-muted);
    font-size: 0.875rem;
    margin: 0;
}

[data-theme="institutionnel"] .guides-inst-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0;
}

[data-theme="institutionnel"] .guides-inst-step {
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--theme-surface);
}

[data-theme="institutionnel"] .guides-inst-step-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
}

[data-theme="institutionnel"] .guides-inst-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: var(--theme-primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-theme="institutionnel"] .guides-inst-step-num-alt {
    background: #6d28d9;
}

[data-theme="institutionnel"] .guides-inst-step-htitle {
    font-weight: 600;
    color: var(--theme-primary-strong);
    font-size: 0.875rem;
    margin: 0;
}

[data-theme="institutionnel"] .guides-inst-step-hsub {
    color: var(--theme-text-muted);
    font-size: 0.75rem;
    margin: 0;
}

[data-theme="institutionnel"] .guides-inst-step-hicon {
    color: var(--theme-primary);
    opacity: 0.5;
    font-size: 1.1rem;
    margin-left: auto;
    flex-shrink: 0;
}

[data-theme="institutionnel"] .guides-inst-step-hicon-alt {
    color: #6d28d9;
}

[data-theme="institutionnel"] .guides-inst-step-body {
    padding: 1.25rem;
}

[data-theme="institutionnel"] .guides-inst-body-text {
    color: var(--theme-text);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0 0 1rem 0;
}

[data-theme="institutionnel"] .guides-inst-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    line-height: 1.6;
}

[data-theme="institutionnel"] .guides-inst-alert-info {
    background: rgba(26,58,92,0.05);
    border-color: rgba(26,58,92,0.15);
    color: var(--theme-primary-strong);
}

[data-theme="institutionnel"] .guides-inst-alert-warning {
    background: rgba(184,151,46,0.07);
    border-color: rgba(184,151,46,0.25);
    color: #7a5f0f;
}

[data-theme="institutionnel"] .guides-inst-alert-success {
    background: rgba(39,103,73,0.06);
    border-color: rgba(39,103,73,0.2);
    color: var(--theme-success);
}

[data-theme="institutionnel"] .guides-inst-alert-violet {
    background: rgba(109,40,217,0.05);
    border-color: rgba(109,40,217,0.18);
    color: #5b21b6;
}

[data-theme="institutionnel"] .guides-inst-alert-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

[data-theme="institutionnel"] .guides-inst-sub-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

[data-theme="institutionnel"] .guides-inst-sub-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-bg);
}

[data-theme="institutionnel"] .guides-inst-sub-num {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--theme-primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

[data-theme="institutionnel"] .guides-inst-sub-num-alt {
    background: #6d28d9;
}

[data-theme="institutionnel"] .guides-inst-sub-title {
    font-weight: 600;
    color: var(--theme-primary-strong);
    font-size: 0.875rem;
    margin: 0 0 0.2rem 0;
}

[data-theme="institutionnel"] .guides-inst-sub-text {
    color: var(--theme-text-muted);
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.5;
}

[data-theme="institutionnel"] .guides-inst-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    [data-theme="institutionnel"] .guides-inst-three-col { grid-template-columns: 1fr; }
}

[data-theme="institutionnel"] .guides-inst-kpi-box {
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    padding: 0.875rem;
    text-align: center;
    background: var(--theme-bg-muted);
}

[data-theme="institutionnel"] .guides-inst-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 580px) {
    [data-theme="institutionnel"] .guides-inst-two-col { grid-template-columns: 1fr; }
}

[data-theme="institutionnel"] .guides-inst-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-bg);
    margin-bottom: 0.75rem;
    transition: border-color 0.12s ease;
}

[data-theme="institutionnel"] .guides-inst-feature-row:hover {
    border-color: var(--theme-primary);
}

[data-theme="institutionnel"] .guides-inst-ficon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

[data-theme="institutionnel"] .guides-inst-step-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

[data-theme="institutionnel"] .guides-inst-step-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-bg);
    font-size: 0.875rem;
    color: var(--theme-text);
}

[data-theme="institutionnel"] .guides-inst-example-box {
    padding: 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-bg-muted);
    margin-bottom: 1rem;
}

[data-theme="institutionnel"] .guides-inst-sep {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

[data-theme="institutionnel"] .guides-inst-sep-line {
    flex: 1;
    height: 1px;
    background: var(--theme-border);
}

[data-theme="institutionnel"] .guides-inst-sep-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
}

[data-theme="institutionnel"] .guides-inst-faq-item {
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-surface);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

[data-theme="institutionnel"] .guides-inst-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--theme-primary-strong);
    transition: background-color 0.12s ease;
}

[data-theme="institutionnel"] .guides-inst-faq-item summary:hover {
    background: var(--theme-bg);
}

[data-theme="institutionnel"] .guides-inst-faq-item summary::-webkit-details-marker {
    display: none;
}

[data-theme="institutionnel"] .guides-inst-faq-body {
    padding: 0 1.25rem 1rem 1.25rem;
    border-top: 1px solid var(--theme-border);
}

[data-theme="institutionnel"] .guides-inst-faq-body p {
    color: var(--theme-text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0.75rem 0 0 0;
}

[data-theme="institutionnel"] .guides-inst-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 580px) {
    [data-theme="institutionnel"] .guides-inst-media-grid { grid-template-columns: 1fr; }
}

[data-theme="institutionnel"] .guides-inst-media-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1.5px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="institutionnel"] .guides-inst-media-card:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 2px 8px rgba(26,58,92,0.08);
}

[data-theme="institutionnel"] .guides-inst-media-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 6px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

[data-theme="institutionnel"] .guides-inst-media-title {
    font-weight: 700;
    color: var(--theme-primary-strong);
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
}

[data-theme="institutionnel"] .guides-inst-media-desc {
    color: var(--theme-text-muted);
    font-size: 0.8rem;
    margin: 0 0 0.4rem 0;
}

[data-theme="institutionnel"] .guides-inst-media-link {
    font-size: 0.75rem;
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

[data-theme="institutionnel"] .guides-inst-support-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-bg-muted);
    flex-wrap: wrap;
}

[data-theme="institutionnel"] .guides-inst-link {
    color: var(--theme-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

[data-theme="institutionnel"] .guides-inst-link:hover {
    color: var(--theme-primary-strong);
}

/* ── /cgu — pages légales institutionnelles ────────────────────────────── */

[data-theme="institutionnel"] .legal-inst-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}

[data-theme="institutionnel"] .legal-inst-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

[data-theme="institutionnel"] .legal-inst-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.875rem;
    border-radius: 99px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
    color: var(--theme-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

[data-theme="institutionnel"] .legal-inst-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--theme-primary-strong);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    margin: 0 0 0.5rem 0;
}

[data-theme="institutionnel"] .legal-inst-meta {
    font-size: 0.825rem;
    color: var(--theme-text-muted);
    margin: 0;
}

[data-theme="institutionnel"] .legal-inst-card {
    background: var(--theme-surface);
    border: 1.5px solid var(--theme-border);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 6px rgba(26,58,92,0.05);
    margin-bottom: 1.5rem;
}

[data-theme="institutionnel"] .legal-inst-fallback-card {
    background: var(--theme-surface);
    border: 1.5px solid var(--theme-border);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(26,58,92,0.04);
}

[data-theme="institutionnel"] .legal-inst-fallback-card h2 {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0 0 0.5rem 0;
    font-family: Georgia, Cambria, "Times New Roman", serif;
}

[data-theme="institutionnel"] .legal-inst-fallback-card p {
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    line-height: 1.7;
    margin: 0;
}

[data-theme="institutionnel"] .legal-inst-footer {
    text-align: center;
    font-size: 0.775rem;
    color: var(--theme-text-muted);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-border);
}

[data-theme="institutionnel"] .legal-inst-footer a {
    color: var(--theme-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

[data-theme="institutionnel"] .legal-inst-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 0.75rem;
    color: var(--theme-text-muted);
    font-size: 0.85rem;
}

/* ── Grille réassurance (Confidentiality) ───────────────────────────────── */

[data-theme="institutionnel"] .legal-inst-reassurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 640px) {
    [data-theme="institutionnel"] .legal-inst-reassurance-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="institutionnel"] .legal-inst-reassurance-card {
    background: var(--theme-surface);
    border: 1.5px solid var(--theme-border);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(26,58,92,0.04);
}

[data-theme="institutionnel"] .legal-inst-reassurance-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.625rem;
    font-size: 1rem;
    color: var(--theme-success);
}

[data-theme="institutionnel"] .legal-inst-reassurance-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--theme-primary-strong);
    margin: 0 0 0.25rem 0;
}

[data-theme="institutionnel"] .legal-inst-reassurance-desc {
    font-size: 0.775rem;
    color: var(--theme-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ── Tableau registre cookies ────────────────────────────────────────────── */

[data-theme="institutionnel"] .legal-inst-table-wrapper {
    background: var(--theme-surface);
    border: 1.5px solid var(--theme-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 6px rgba(26,58,92,0.05);
}

[data-theme="institutionnel"] .legal-inst-table-caption {
    padding: 1rem 1.5rem 0.875rem;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
}

[data-theme="institutionnel"] .legal-inst-table-caption h2 {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0;
    font-family: Georgia, Cambria, "Times New Roman", serif;
}

[data-theme="institutionnel"] .legal-inst-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

[data-theme="institutionnel"] .legal-inst-table thead tr {
    background: var(--theme-bg-muted);
    border-bottom: 1px solid var(--theme-border);
}

[data-theme="institutionnel"] .legal-inst-table thead th {
    text-align: left;
    padding: 0.625rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
    white-space: nowrap;
}

[data-theme="institutionnel"] .legal-inst-table tbody tr {
    border-bottom: 1px solid var(--theme-border);
    transition: background-color 0.1s ease;
}

[data-theme="institutionnel"] .legal-inst-table tbody tr:last-child {
    border-bottom: none;
}

[data-theme="institutionnel"] .legal-inst-table tbody tr:hover {
    background: var(--theme-bg-muted);
}

[data-theme="institutionnel"] .legal-inst-table tbody td {
    padding: 0.75rem 1.25rem;
    color: var(--theme-text-muted);
    vertical-align: middle;
}

[data-theme="institutionnel"] .legal-inst-table td.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: var(--theme-primary-strong);
}

/* Badges type cookie */
[data-theme="institutionnel"] .cookie-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.625rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

[data-theme="institutionnel"] .cookie-badge.essential {
    background: rgba(39,103,73,0.08);
    border-color: rgba(39,103,73,0.25);
    color: var(--theme-success);
}

[data-theme="institutionnel"] .cookie-badge.functional {
    background: rgba(26,58,92,0.07);
    border-color: rgba(26,58,92,0.2);
    color: var(--theme-primary);
}

[data-theme="institutionnel"] .cookie-badge.analytics {
    background: rgba(184,151,46,0.08);
    border-color: rgba(184,151,46,0.3);
    color: #8a6e1a;
}

/* ── Encadré informatif (RGPD, etc.) ─────────────────────────────────── */

[data-theme="institutionnel"] .legal-inst-info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--theme-bg-muted);
    border: 1.5px solid var(--theme-border);
    border-left: 4px solid var(--theme-primary);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 1px 4px rgba(26,58,92,0.06);
}

[data-theme="institutionnel"] .legal-inst-info-box-icon {
    font-size: 1rem;
    color: var(--theme-primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

[data-theme="institutionnel"] .legal-inst-info-box-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0 0 0.25rem 0;
}

[data-theme="institutionnel"] .legal-inst-info-box-text {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    line-height: 1.65;
    margin: 0;
}

[data-theme="institutionnel"] .legal-inst-info-box-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-top: 0.5rem;
}

/* ── /support — centre de support institutionnel ───────────────────────── */

[data-theme="institutionnel"] .support-inst-section {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}

[data-theme="institutionnel"] .support-inst-section.wide {
    max-width: 1100px;
}

[data-theme="institutionnel"] .support-inst-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

[data-theme="institutionnel"] .support-inst-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.875rem;
    border-radius: 99px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
    color: var(--theme-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

[data-theme="institutionnel"] .support-inst-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-primary-strong);
    margin: 0 0 0.5rem 0;
}

[data-theme="institutionnel"] .support-inst-sub {
    color: var(--theme-text-muted);
    font-size: 0.925rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

[data-theme="institutionnel"] .support-inst-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

[data-theme="institutionnel"] .support-inst-layout.with-sidebar {
    flex-direction: row;
}

@media (max-width: 768px) {
    [data-theme="institutionnel"] .support-inst-layout.with-sidebar {
        flex-direction: column;
    }
}

[data-theme="institutionnel"] .support-inst-form-col {
    flex: 1;
    min-width: 0;
    width: 100%;
}

[data-theme="institutionnel"] .support-inst-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 6rem;
}

@media (max-width: 768px) {
    [data-theme="institutionnel"] .support-inst-sidebar {
        width: 100%;
        position: static;
    }
}

/* ── Card principale ─────────────────────────────────────────────────────── */

[data-theme="institutionnel"] .support-inst-card {
    background: var(--theme-surface);
    border: 1.5px solid var(--theme-border);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 1px 6px rgba(26,58,92,0.05);
}

/* ── Formulaire ──────────────────────────────────────────────────────────── */

[data-theme="institutionnel"] .support-inst-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 580px) {
    [data-theme="institutionnel"] .support-inst-grid-2 { grid-template-columns: 1fr; }
}

[data-theme="institutionnel"] .support-inst-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

[data-theme="institutionnel"] .support-inst-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--theme-text-muted);
    letter-spacing: 0.02em;
}

[data-theme="institutionnel"] .support-inst-label .req {
    color: #b91c1c;
    margin-left: 0.125rem;
}

[data-theme="institutionnel"] .support-inst-input,
[data-theme="institutionnel"] .support-inst-textarea,
[data-theme="institutionnel"] .support-inst-select {
    width: 100%;
    border: 1.5px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-bg);
    color: var(--theme-text);
    font-size: 0.875rem;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
    font-family: inherit;
}

[data-theme="institutionnel"] .support-inst-input {
    height: 2.625rem;
    padding: 0 0.875rem;
}

[data-theme="institutionnel"] .support-inst-textarea {
    padding: 0.75rem 0.875rem;
    resize: vertical;
    min-height: 7rem;
    line-height: 1.5;
}

[data-theme="institutionnel"] .support-inst-select {
    height: 2.625rem;
    padding: 0 0.875rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a3a5c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    cursor: pointer;
}

[data-theme="institutionnel"] .support-inst-input:focus,
[data-theme="institutionnel"] .support-inst-textarea:focus,
[data-theme="institutionnel"] .support-inst-select:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

[data-theme="institutionnel"] .support-inst-input::placeholder,
[data-theme="institutionnel"] .support-inst-textarea::placeholder {
    color: var(--theme-text-muted);
    opacity: 0.55;
}

/* ── Bloc scanner TDN ────────────────────────────────────────────────────── */

[data-theme="institutionnel"] .support-inst-scan-block {
    border: 1.5px solid var(--theme-border);
    border-radius: 8px;
    padding: 1rem;
    background: var(--theme-bg-muted);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.15s ease;
}

[data-theme="institutionnel"] .support-inst-scan-block.completed {
    border-color: var(--theme-success);
    background: rgba(39,103,73,0.04);
}

[data-theme="institutionnel"] .support-inst-scan-block.pending {
    border-color: #b8972e;
    background: rgba(184,151,46,0.04);
}

[data-theme="institutionnel"] .support-inst-scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

[data-theme="institutionnel"] .support-inst-scan-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 5px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

[data-theme="institutionnel"] .support-inst-scan-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--theme-primary-strong);
}

[data-theme="institutionnel"] .support-inst-scan-sub {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    margin-top: 0.1rem;
}

[data-theme="institutionnel"] .support-inst-scan-reset-btn {
    font-size: 0.72rem;
    color: var(--theme-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.12s ease;
    flex-shrink: 0;
    padding: 0;
}

[data-theme="institutionnel"] .support-inst-scan-reset-btn:hover {
    color: var(--theme-primary);
}

[data-theme="institutionnel"] .support-inst-scan-btn {
    width: 100%;
    height: 2.5rem;
    border-radius: 6px;
    border: 1.5px solid var(--theme-secondary);
    background: rgba(184,151,46,0.06);
    color: #8a6e1a;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.12s ease;
    font-family: inherit;
}

[data-theme="institutionnel"] .support-inst-scan-btn:hover {
    background: rgba(184,151,46,0.12);
}

[data-theme="institutionnel"] .support-inst-scan-stop-btn {
    width: 100%;
    height: 2.25rem;
    border-radius: 6px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg);
    color: var(--theme-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: border-color 0.12s ease;
    font-family: inherit;
}

[data-theme="institutionnel"] .support-inst-scan-stop-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

[data-theme="institutionnel"] .support-inst-scan-hint {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ── Radio préférence contact ─────────────────────────────────────────────── */

[data-theme="institutionnel"] .support-inst-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    [data-theme="institutionnel"] .support-inst-radio-group { grid-template-columns: 1fr; }
}

[data-theme="institutionnel"] .support-inst-radio-opt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--theme-border);
    border-radius: 8px;
    cursor: pointer;
    background: var(--theme-surface);
    transition: border-color 0.12s ease, background-color 0.12s ease;
}

[data-theme="institutionnel"] .support-inst-radio-opt.selected-email {
    border-color: var(--theme-primary);
    background: rgba(26,58,92,0.04);
}

[data-theme="institutionnel"] .support-inst-radio-opt.selected-phone {
    border-color: var(--theme-success);
    background: rgba(39,103,73,0.04);
}

[data-theme="institutionnel"] .support-inst-radio-opt:hover {
    border-color: var(--theme-primary);
}

[data-theme="institutionnel"] .support-inst-radio-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 5px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

[data-theme="institutionnel"] .support-inst-radio-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--theme-primary-strong);
    margin: 0;
}

[data-theme="institutionnel"] .support-inst-radio-sub {
    font-size: 0.72rem;
    color: var(--theme-text-muted);
    margin: 0.1rem 0 0 0;
}

/* ── Bouton submit ───────────────────────────────────────────────────────── */

[data-theme="institutionnel"] .support-inst-submit {
    width: 100%;
    height: 3rem;
    border-radius: 6px;
    border: none;
    background: var(--theme-primary);
    color: #fff;
    font-size: 0.925rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.15s ease;
    font-family: inherit;
    letter-spacing: 0.02em;
}

[data-theme="institutionnel"] .support-inst-submit:hover {
    background: var(--theme-primary-strong);
}

[data-theme="institutionnel"] .support-inst-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

[data-theme="institutionnel"] .support-inst-note {
    font-size: 0.72rem;
    color: var(--theme-text-muted);
    text-align: center;
}

/* ── Alertes ─────────────────────────────────────────────────────────────── */

[data-theme="institutionnel"] .support-inst-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

[data-theme="institutionnel"] .support-inst-alert.error {
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #b91c1c;
}

/* ── Succès ──────────────────────────────────────────────────────────────── */

[data-theme="institutionnel"] .support-inst-success {
    border: 1.5px solid var(--theme-success);
    border-radius: 10px;
    background: rgba(39,103,73,0.04);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

[data-theme="institutionnel"] .support-inst-success-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 8px;
    border: 1px solid var(--theme-success);
    background: rgba(39,103,73,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--theme-success);
}

[data-theme="institutionnel"] .support-inst-success-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0;
}

[data-theme="institutionnel"] .support-inst-success-msg {
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    margin: 0;
}

[data-theme="institutionnel"] .support-inst-success-addr {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

[data-theme="institutionnel"] .support-inst-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: 1.5px solid var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.12s ease;
    font-family: inherit;
}

[data-theme="institutionnel"] .support-inst-reset-btn:hover {
    border-color: var(--theme-primary);
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */

[data-theme="institutionnel"] .support-inst-side-card {
    background: var(--theme-surface);
    border: 1.5px solid var(--theme-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(26,58,92,0.04);
}

[data-theme="institutionnel"] .support-inst-side-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
}

[data-theme="institutionnel"] .support-inst-side-icon {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 5px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

[data-theme="institutionnel"] .support-inst-side-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--theme-primary);
    margin: 0;
}

[data-theme="institutionnel"] .support-inst-side-badge-sub {
    font-size: 0.7rem;
    color: var(--theme-text-muted);
    margin: 0.1rem 0 0 0;
}

[data-theme="institutionnel"] .support-inst-side-body {
    padding: 1rem 1.25rem;
}

[data-theme="institutionnel"] .support-inst-side-address-main {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--theme-primary-strong);
    margin: 0 0 0.2rem 0;
}

[data-theme="institutionnel"] .support-inst-side-address-sub {
    font-size: 0.78rem;
    color: var(--theme-text-muted);
    margin: 0;
}

[data-theme="institutionnel"] .support-inst-side-meta-label {
    font-size: 0.7rem;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.25rem 0;
}

[data-theme="institutionnel"] .support-inst-side-entity-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--theme-primary-strong);
    margin: 0 0 0.75rem 0;
}

[data-theme="institutionnel"] .support-inst-phone-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-bg-muted);
    text-decoration: none;
    transition: border-color 0.12s ease;
    margin-bottom: 0.75rem;
}

[data-theme="institutionnel"] .support-inst-phone-link:hover {
    border-color: var(--theme-primary);
}

[data-theme="institutionnel"] .support-inst-phone-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 5px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--theme-success);
}

[data-theme="institutionnel"] .support-inst-phone-number {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--theme-primary-strong);
    margin: 0;
}

[data-theme="institutionnel"] .support-inst-phone-label {
    font-size: 0.72rem;
    color: var(--theme-text-muted);
    margin: 0.1rem 0 0 0;
}

[data-theme="institutionnel"] .support-inst-tip-box {
    border: 1px solid var(--theme-secondary);
    border-radius: 6px;
    background: rgba(184,151,46,0.04);
    padding: 0.75rem 1rem;
}

[data-theme="institutionnel"] .support-inst-tip-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8a6e1a;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0 0.5rem 0;
}

[data-theme="institutionnel"] .support-inst-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.775rem;
    color: var(--theme-text-muted);
    line-height: 1.5;
    margin-bottom: 0.375rem;
}

[data-theme="institutionnel"] .support-inst-side-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-bg-muted);
    font-size: 0.775rem;
    color: var(--theme-text-muted);
    line-height: 1.55;
}

[data-theme="institutionnel"] .support-inst-no-entity {
    padding: 1rem 1.25rem;
}

/* ── Bandeau support prioritaire (Premium institutionnel) ────────────────── */

[data-theme="institutionnel"] .support-inst-premium {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    border: 1.5px solid var(--theme-secondary);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(26,58,92,0.04) 0%, rgba(184,151,46,0.06) 100%);
    flex-wrap: wrap;
}

[data-theme="institutionnel"] .support-inst-premium-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    border: 1px solid var(--theme-secondary);
    background: rgba(184,151,46,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--theme-secondary);
    flex-shrink: 0;
}

[data-theme="institutionnel"] .support-inst-premium-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-secondary);
    margin: 0 0 0.2rem 0;
}

[data-theme="institutionnel"] .support-inst-premium-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0 0 0.25rem 0;
}

[data-theme="institutionnel"] .support-inst-premium-text {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    margin: 0;
}

[data-theme="institutionnel"] .support-inst-premium-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    border: 1.5px solid var(--theme-primary);
    background: var(--theme-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

[data-theme="institutionnel"] .support-inst-premium-cta:hover {
    background: var(--theme-primary-strong);
    border-color: var(--theme-primary-strong);
}

/* ── /status — tableau de bord institutionnel ──────────────────────────── */

[data-theme="institutionnel"] .status-inst-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}

[data-theme="institutionnel"] .status-inst-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 0;
    font-size: 0.875rem;
    color: var(--theme-text-muted);
}

/* Bandeau état global */

[data-theme="institutionnel"] .status-inst-overall {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 1.5px solid var(--theme-border);
    background: var(--theme-surface);
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(26,58,92,0.05);
}

[data-theme="institutionnel"] .status-inst-overall.operational {
    border-color: rgba(39,103,73,0.3);
    background: rgba(39,103,73,0.04);
}

[data-theme="institutionnel"] .status-inst-overall.degraded {
    border-color: rgba(184,151,46,0.3);
    background: rgba(184,151,46,0.04);
}

[data-theme="institutionnel"] .status-inst-overall.down {
    border-color: rgba(185,28,28,0.3);
    background: rgba(185,28,28,0.04);
}

[data-theme="institutionnel"] .status-inst-overall-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
    color: var(--theme-text-muted);
}

[data-theme="institutionnel"] .status-inst-overall.operational .status-inst-overall-icon {
    border-color: rgba(39,103,73,0.25);
    background: rgba(39,103,73,0.08);
    color: var(--theme-success);
}

[data-theme="institutionnel"] .status-inst-overall.degraded .status-inst-overall-icon {
    border-color: rgba(184,151,46,0.25);
    background: rgba(184,151,46,0.08);
    color: #8a6e1a;
}

[data-theme="institutionnel"] .status-inst-overall.down .status-inst-overall-icon {
    border-color: rgba(185,28,28,0.25);
    background: rgba(185,28,28,0.08);
    color: #b91c1c;
}

[data-theme="institutionnel"] .status-inst-overall-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0 0 0.2rem 0;
}

[data-theme="institutionnel"] .status-inst-overall-meta {
    font-size: 0.825rem;
    color: var(--theme-text-muted);
    margin: 0;
}

/* Tableau composants */

[data-theme="institutionnel"] .status-inst-components {
    background: var(--theme-surface);
    border: 1.5px solid var(--theme-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 6px rgba(26,58,92,0.05);
}

[data-theme="institutionnel"] .status-inst-components-header {
    padding: 1rem 1.5rem 0.875rem;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
}

[data-theme="institutionnel"] .status-inst-components-title {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0 0 0.15rem 0;
    font-family: Georgia, Cambria, "Times New Roman", serif;
}

[data-theme="institutionnel"] .status-inst-components-count {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    margin: 0;
}

[data-theme="institutionnel"] .status-inst-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--theme-border);
    transition: background-color 0.1s ease;
}

[data-theme="institutionnel"] .status-inst-row:last-child {
    border-bottom: none;
}

[data-theme="institutionnel"] .status-inst-row:hover {
    background: var(--theme-bg-muted);
}

[data-theme="institutionnel"] .status-inst-row-icon {
    font-size: 0.875rem;
    width: 1.25rem;
    text-align: center;
    color: var(--theme-text-muted);
    flex-shrink: 0;
}

[data-theme="institutionnel"] .status-inst-row-flex { flex: 1; }

[data-theme="institutionnel"] .status-inst-row-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-primary-strong);
    margin: 0 0 0.1rem 0;
}

[data-theme="institutionnel"] .status-inst-row-desc {
    font-size: 0.775rem;
    color: var(--theme-text-muted);
    margin: 0;
}

/* Pills de statut */

[data-theme="institutionnel"] .status-inst-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-muted);
    color: var(--theme-text-muted);
    white-space: nowrap;
}

[data-theme="institutionnel"] .status-inst-pill .status-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

[data-theme="institutionnel"] .status-inst-pill.operational {
    background: rgba(39,103,73,0.08);
    border-color: rgba(39,103,73,0.25);
    color: var(--theme-success);
}

[data-theme="institutionnel"] .status-inst-pill.degraded {
    background: rgba(184,151,46,0.08);
    border-color: rgba(184,151,46,0.25);
    color: #8a6e1a;
}

[data-theme="institutionnel"] .status-inst-pill.down {
    background: rgba(185,28,28,0.07);
    border-color: rgba(185,28,28,0.25);
    color: #b91c1c;
}

[data-theme="institutionnel"] .status-inst-pill.beta {
    background: rgba(109,40,217,0.07);
    border-color: rgba(109,40,217,0.2);
    color: #6d28d9;
}

[data-theme="institutionnel"] .status-inst-pill.maintenance {
    background: rgba(71,85,105,0.08);
    border-color: rgba(71,85,105,0.25);
    color: #475569;
}

/* Grille statistiques */

[data-theme="institutionnel"] .status-inst-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

[data-theme="institutionnel"] .status-inst-stat-card {
    background: var(--theme-surface);
    border: 1.5px solid var(--theme-border);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(26,58,92,0.04);
}

[data-theme="institutionnel"] .status-inst-stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    line-height: 1;
    margin: 0 0 0.35rem 0;
    color: var(--theme-primary-strong);
}

[data-theme="institutionnel"] .status-inst-stat-value.operational { color: var(--theme-success); }
[data-theme="institutionnel"] .status-inst-stat-value.degraded    { color: #8a6e1a; }
[data-theme="institutionnel"] .status-inst-stat-value.down        { color: #b91c1c; }

[data-theme="institutionnel"] .status-inst-stat-label {
    font-size: 0.78rem;
    color: var(--theme-text-muted);
    margin: 0;
}

/* Historique / uptime */

[data-theme="institutionnel"] .status-inst-history {
    background: var(--theme-surface);
    border: 1.5px solid var(--theme-border);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(26,58,92,0.04);
}

[data-theme="institutionnel"] .status-inst-history-icon {
    font-size: 1.75rem;
    color: var(--theme-text-muted);
    opacity: 0.45;
    margin-bottom: 0.75rem;
}

[data-theme="institutionnel"] .status-inst-history-title {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--theme-primary-strong);
    margin: 0 0 0.3rem 0;
}

[data-theme="institutionnel"] .status-inst-history-desc {
    font-size: 0.825rem;
    color: var(--theme-text-muted);
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   NAVBAR INSTITUTIONNELLE (LoginDisplay)
   Préfixe : nav-inst-*
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Header wrapper ─────────────────────────────────────────────────────── */
[data-theme="institutionnel"] .nav-inst-header {
    position:         sticky;
    top:              0;
    z-index:          50;
    width:            100%;
    background:       #ffffff;
    border-bottom:    1px solid var(--theme-border);
    box-shadow:       0 1px 10px rgba(15, 35, 64, 0.06);
}

/* ── Conteneur interne ──────────────────────────────────────────────────── */
[data-theme="institutionnel"] .nav-inst-inner {
    display:          flex;
    align-items:      center;
    justify-content:  space-between;
    max-width:        1200px;
    margin:           0 auto;
    padding:          0 1.5rem;
    height:           64px;
    gap:              1rem;
}

/* ── Logo / marque ──────────────────────────────────────────────────────── */
[data-theme="institutionnel"] .nav-inst-brand {
    display:          flex;
    align-items:      center;
    gap:              0.55rem;
    text-decoration:  none;
    flex-shrink:      0;
}
[data-theme="institutionnel"] .nav-inst-logo {
    width:       38px;
    height:      38px;
    flex-shrink: 0;
}
[data-theme="institutionnel"] .nav-inst-brand-name {
    font-size:       1.05rem;
    font-weight:     600;
    color:           var(--theme-primary);
    letter-spacing:  0.03em;
    white-space:     nowrap;
}
[data-theme="institutionnel"] .nav-inst-brand-name strong {
    font-weight: 800;
}

/* ── Navigation desktop ─────────────────────────────────────────────────── */
[data-theme="institutionnel"] .nav-inst-nav {
    display:    none;
    gap:        0.15rem;
    flex:       1;
    margin:     0 1.5rem;
}
@media (min-width: 768px) {
    [data-theme="institutionnel"] .nav-inst-nav {
        display: flex;
    }
}
[data-theme="institutionnel"] .nav-inst-link {
    padding:         0.4rem 0.85rem;
    border-radius:   5px;
    font-size:       0.8rem;
    font-weight:     700;
    letter-spacing:  0.06em;
    text-transform:  uppercase;
    color:           var(--theme-text);
    text-decoration: none;
    transition:      background 0.15s ease, color 0.15s ease;
}
[data-theme="institutionnel"] .nav-inst-link:hover {
    background: rgba(26, 58, 92, 0.07);
    color:      var(--theme-primary);
}

/* ── Zone d'actions (switcher + auth + hamburger) ───────────────────────── */
[data-theme="institutionnel"] .nav-inst-actions {
    display:     flex;
    align-items: center;
    gap:         0.5rem;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    [data-theme="institutionnel"] .nav-inst-inner {
        padding: 0 0.85rem;
        gap:     0.6rem;
    }

    [data-theme="institutionnel"] .nav-inst-actions {
        gap: 0.35rem;
    }

    [data-theme="institutionnel"] .nav-inst-btn-primary,
    [data-theme="institutionnel"] .nav-inst-btn-secondary {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    [data-theme="institutionnel"] .nav-inst-btn-primary {
        font-size: 0.72rem;
    }

    [data-theme="institutionnel"] .nav-inst-btn-secondary {
        font-size: 0.72rem;
    }

    [data-theme="institutionnel"] .nav-inst-brand-name {
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    [data-theme="institutionnel"] .nav-inst-actions {
        gap: 0.25rem;
    }

    [data-theme="institutionnel"] .nav-inst-btn-primary,
    [data-theme="institutionnel"] .nav-inst-btn-secondary {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    [data-theme="institutionnel"] .nav-inst-hamburger {
        width: 32px;
        height: 32px;
    }
}

/* ── Bouton primaire (Connexion) ────────────────────────────────────────── */
[data-theme="institutionnel"] .nav-inst-btn-primary {
    display:         inline-flex;
    align-items:     center;
    gap:             0.4rem;
    padding:         0.45rem 1rem;
    border-radius:   6px;
    background:      var(--theme-primary);
    color:           #ffffff;
    font-size:       0.78rem;
    font-weight:     600;
    text-decoration: none;
    border:          none;
    cursor:          pointer;
    white-space:     nowrap;
    transition:      background 0.15s ease;
}
[data-theme="institutionnel"] .nav-inst-btn-primary:hover {
    background: var(--theme-primary-strong);
}

/* ── Bouton secondaire (Mon compte) ─────────────────────────────────────── */
[data-theme="institutionnel"] .nav-inst-btn-secondary {
    display:         inline-flex;
    align-items:     center;
    gap:             0.4rem;
    padding:         0.45rem 1rem;
    border-radius:   6px;
    background:      rgba(26, 58, 92, 0.07);
    border:          1px solid rgba(26, 58, 92, 0.18);
    color:           var(--theme-primary);
    font-size:       0.78rem;
    font-weight:     600;
    text-decoration: none;
    white-space:     nowrap;
    transition:      background 0.15s ease, border-color 0.15s ease;
}
[data-theme="institutionnel"] .nav-inst-btn-secondary:hover {
    background:    rgba(26, 58, 92, 0.13);
    border-color:  rgba(26, 58, 92, 0.3);
}

/* ── Label bouton (masqué sur très petits écrans) ───────────────────────── */
[data-theme="institutionnel"] .nav-inst-btn-label {
    display: none;
}
@media (min-width: 480px) {
    [data-theme="institutionnel"] .nav-inst-btn-label {
        display: inline;
    }
}

/* ── Hamburger mobile ───────────────────────────────────────────────────── */
[data-theme="institutionnel"] .nav-inst-hamburger {
    display:          flex;
    align-items:      center;
    justify-content:  center;
    width:            36px;
    height:           36px;
    flex-shrink:      0;
    border-radius:    6px;
    border:           1px solid rgba(26, 58, 92, 0.15);
    background:       transparent;
    color:            var(--theme-primary);
    font-size:        0.9rem;
    cursor:           pointer;
    transition:       background 0.15s ease;
}
[data-theme="institutionnel"] .nav-inst-hamburger:hover {
    background: rgba(26, 58, 92, 0.07);
}
@media (min-width: 768px) {
    [data-theme="institutionnel"] .nav-inst-hamburger {
        display: none;
    }
}

/* ── Menu mobile déroulant ──────────────────────────────────────────────── */
[data-theme="institutionnel"] .nav-inst-mobile-menu {
    position:      sticky;
    top:           64px;
    z-index:       49;
    width:         100%;
    background:    #ffffff;
    border-bottom: 1px solid var(--theme-border);
    box-shadow:    0 8px 24px rgba(15, 35, 64, 0.08);
    display:       flex;
    flex-direction: column;
    padding:       0.4rem;
    gap:           2px;
}
[data-theme="institutionnel"] .nav-inst-mobile-link {
    display:         flex;
    align-items:     center;
    gap:             0.75rem;
    padding:         0.7rem 1rem;
    border-radius:   5px;
    color:           var(--theme-text);
    text-decoration: none;
    font-weight:     600;
    font-size:       0.875rem;
    letter-spacing:  0.03em;
    transition:      background 0.15s ease, color 0.15s ease;
}
[data-theme="institutionnel"] .nav-inst-mobile-link:hover {
    background: rgba(26, 58, 92, 0.06);
    color:      var(--theme-primary);
}
[data-theme="institutionnel"] .nav-inst-mobile-link i {
    color:      var(--theme-secondary);
    width:      1rem;
    text-align: center;
    font-size:  0.85rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   SHOP B2B — Thème Institutionnel
   Classes si-* scoped à la page /shop.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
[data-theme="institutionnel"] .si-shop-page {
    background-color: var(--theme-bg);
}

/* ── Hero ── */
[data-theme="institutionnel"] .si-hero {
    padding: 5.5rem 0 3.5rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--theme-bg) 100%);
    border-bottom: 1px solid var(--theme-border);
}

[data-theme="institutionnel"] .si-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1.75rem;
}

[data-theme="institutionnel"] .si-info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-border);
}

[data-theme="institutionnel"] .si-info-item span:first-child {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--theme-text-muted);
    margin-bottom: 0.22rem;
}

[data-theme="institutionnel"] .si-info-item a,
[data-theme="institutionnel"] .si-info-item strong {
    color: var(--theme-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
[data-theme="institutionnel"] .si-info-item a:hover {
    color: var(--theme-primary-strong);
    text-decoration: underline;
}

/* ── Grille 3 cibles ── */
[data-theme="institutionnel"] .si-cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

[data-theme="institutionnel"] .si-target-card h3 {
    color: var(--theme-primary-strong);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
}

[data-theme="institutionnel"] .si-target-card p {
    color: var(--theme-text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

[data-theme="institutionnel"] .si-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 58, 92, 0.07);
    border: 1px solid rgba(26, 58, 92, 0.16);
    color: var(--theme-primary);
    font-size: 1.1rem;
}

/* ── Split Pourquoi + Infos ── */
[data-theme="institutionnel"] .si-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

[data-theme="institutionnel"] .si-split-card h3 {
    color: var(--theme-primary-strong);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

[data-theme="institutionnel"] .si-checklist,
[data-theme="institutionnel"] .si-infolist {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

[data-theme="institutionnel"] .si-checklist li,
[data-theme="institutionnel"] .si-infolist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--theme-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

[data-theme="institutionnel"] .si-checklist li i {
    color: var(--theme-secondary);
    margin-top: 0.18rem;
    flex-shrink: 0;
}

[data-theme="institutionnel"] .si-infolist li i {
    color: var(--theme-primary);
    margin-top: 0.18rem;
    flex-shrink: 0;
}

[data-theme="institutionnel"] .si-info-link {
    display: inline-block;
    margin-top: 1.1rem;
}

/* ── Process steps ── */
[data-theme="institutionnel"] .si-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

[data-theme="institutionnel"] .si-step-card h4 {
    color: var(--theme-primary-strong);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0.7rem 0 0.35rem;
}

[data-theme="institutionnel"] .si-step-card p {
    color: var(--theme-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

[data-theme="institutionnel"] .si-step-num {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgba(184, 151, 46, 0.48);
    color: var(--theme-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.55rem;
}

/* ── CTA final band ── */
[data-theme="institutionnel"] .si-cta-band {
    background-color: var(--theme-primary-strong);
    padding: 4rem 0;
}

[data-theme="institutionnel"] .si-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

[data-theme="institutionnel"] .si-cta-band h2 {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    color: #ffffff;
    font-size: clamp(1.3rem, 2.8vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 0.4rem;
}

[data-theme="institutionnel"] .si-cta-band p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    line-height: 1.6;
    max-width: 55ch;
}

[data-theme="institutionnel"] .si-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.82rem 1.6rem;
    border-radius: 8px;
    background-color: var(--theme-secondary);
    color: var(--theme-primary-strong);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 16px rgba(184, 151, 46, 0.32);
}
[data-theme="institutionnel"] .si-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: var(--theme-primary-strong);
    text-decoration: none;
}

/* ── Responsive institutionnel shop ── */
@media (max-width: 960px) {
    [data-theme="institutionnel"] .si-cards-3,
    [data-theme="institutionnel"] .si-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    [data-theme="institutionnel"] .si-split {
        grid-template-columns: 1fr;
    }
    [data-theme="institutionnel"] .si-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    [data-theme="institutionnel"] .si-hero {
        padding: 5rem 0 2.5rem;
    }
    [data-theme="institutionnel"] .si-cta-row {
        flex-direction: column;
    }
    [data-theme="institutionnel"] .si-cta-row .institutional-button-primary,
    [data-theme="institutionnel"] .si-cta-row .institutional-button-secondary {
        width: 100%;
        justify-content: center;
    }
    [data-theme="institutionnel"] .si-cards-3,
    [data-theme="institutionnel"] .si-steps {
        grid-template-columns: 1fr;
    }
    [data-theme="institutionnel"] .si-info-strip {
        gap: 1.1rem;
    }
}

/* ── Fin du thème institutionnel ───────────────────────────────────────── */



