/**
 * RQ3i Intranet — Feuille de styles principale
 * Mobile-first · BEM · Variables CSS · Pas de !important sauf override thème
 */

/* ═══════════════════════════════════════════════════════════════
   0. OVERRIDE — Masquer admin bar WordPress
   ═══════════════════════════════════════════════════════════════ */
#wpadminbar { display: none !important; }
html.wp-toolbar { padding-top: 0 !important; }
body.admin-bar { margin-top: 0 !important; }
.admin-bar .rq3i-dash-header { top: 0 !important; }
.admin-bar .rq3i-header { top: 0 !important; }

/* ═══════════════════════════════════════════════════════════════
   1. VARIABLES
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Couleurs */
    --rq3i-bleu: #1b3c86;
    --rq3i-bleu-clair: #2a52a8;
    --rq3i-vert: #85c06c;
    --rq3i-vert-hover: #6fa857;
    --rq3i-marine: #1b2a4a;
    --rq3i-blanc: #ffffff;
    --rq3i-gris: #f8f9fa;
    --rq3i-gris-texte: #4a5568;
    --rq3i-bordure: #e2e8f0;
    --rq3i-rouge: #dc2626;

    /* Typographie */
    --rq3i-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Espacement */
    --rq3i-radius: 12px;
    --rq3i-radius-sm: 8px;
    --rq3i-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --rq3i-shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.1);

    /* Layout */
    --rq3i-header-h: 64px;
    --rq3i-sidebar-w: 260px;
    --rq3i-footer-h: 60px;
}

/* ═══════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

.rq3i-login-page,
.rq3i-login-page *,
.rq3i-dashboard-page,
.rq3i-dashboard-page *,
.rq3i-header,
.rq3i-header *,
.rq3i-footer,
.rq3i-footer *,
.rq3i-sidebar,
.rq3i-sidebar *,
.rq3i-dashboard,
.rq3i-dashboard *,
.rq3i-bottin-page,
.rq3i-bottin-page *,
.rq3i-drawer,
.rq3i-drawer * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.rq3i-login-page,
.rq3i-dashboard-page,
.rq3i-dashboard,
.rq3i-bottin-page,
.rq3i-header,
.rq3i-sidebar {
    font-family: var(--rq3i-font);
    color: var(--rq3i-marine);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════
   3. HEADER STICKY
   ═══════════════════════════════════════════════════════════════ */

.rq3i-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--rq3i-header-h);
    background: var(--rq3i-marine);
    color: var(--rq3i-blanc);
}

.rq3i-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 24px;
}

.rq3i-header__logo img {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(10);
}

.rq3i-header__nav {
    display: none;
    gap: 4px;
}

.rq3i-header__nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.rq3i-header__nav-link:hover {
    color: var(--rq3i-blanc);
    background: rgba(255, 255, 255, 0.1);
}

.rq3i-header__nav-link--active {
    color: var(--rq3i-blanc);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -2px 0 var(--rq3i-bleu-clair);
}

.rq3i-header__user {
    margin-left: auto;
    position: relative;
}

.rq3i-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rq3i-bleu);
    color: var(--rq3i-blanc);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: border-color 0.2s;
}

.rq3i-header__avatar:hover {
    border-color: var(--rq3i-bleu-clair);
}

.rq3i-header__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--rq3i-blanc);
    border-radius: var(--rq3i-radius-sm);
    box-shadow: var(--rq3i-shadow-lg);
    min-width: 200px;
    overflow: hidden;
    color: var(--rq3i-marine);
    z-index: 1001;
}

.rq3i-header__dropdown[hidden] {
    display: none;
}

.rq3i-header__dropdown-name {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--rq3i-bordure);
}

.rq3i-header__dropdown-item {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--rq3i-gris-texte);
    font-size: 0.9rem;
    transition: background 0.15s;
}

.rq3i-header__dropdown-item:hover {
    background: var(--rq3i-gris);
}

.rq3i-header__dropdown-item--logout {
    color: var(--rq3i-rouge);
    border-top: 1px solid var(--rq3i-bordure);
}

/* Hamburger */
.rq3i-header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.rq3i-header__hamburger span {
    width: 22px;
    height: 2px;
    background: var(--rq3i-blanc);
    border-radius: 2px;
    transition: transform 0.2s;
}

/* ═══════════════════════════════════════════════════════════════
   4. DRAWER MOBILE
   ═══════════════════════════════════════════════════════════════ */

.rq3i-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
}

.rq3i-drawer-overlay[hidden] { display: none; }

.rq3i-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--rq3i-blanc);
    z-index: 1101;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.rq3i-drawer[hidden] { display: none; }
.rq3i-drawer.rq3i-drawer--open { transform: translateX(0); }

.rq3i-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rq3i-bordure);
    font-weight: 700;
    font-size: 1.1rem;
}

.rq3i-drawer__close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--rq3i-gris-texte);
    line-height: 1;
}

.rq3i-drawer__link {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--rq3i-marine);
    font-weight: 500;
    border-bottom: 1px solid var(--rq3i-bordure);
    transition: background 0.15s;
}

.rq3i-drawer__link:hover {
    background: var(--rq3i-gris);
}

.rq3i-drawer__link--logout {
    color: var(--rq3i-rouge);
}

.rq3i-drawer__footer {
    margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════
   5. PAGE CONNEXION
   ═══════════════════════════════════════════════════════════════ */

.rq3i-login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--rq3i-gris);
}

.rq3i-login {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Panneau de marque */
.rq3i-login__brand {
    background: var(--rq3i-bleu);
    color: var(--rq3i-blanc);
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.rq3i-login__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    pointer-events: none;
}

.rq3i-login__brand-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Mobile : logo compact, lien à droite */
.rq3i-login__logo {
    height: 36px;
    width: auto;
    margin: 0;
}

.rq3i-login__site-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.rq3i-login__site-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

/* Formulaire */
.rq3i-login__form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: var(--rq3i-blanc);
}

.rq3i-login__form-inner {
    width: 100%;
    max-width: 420px;
}

.rq3i-login__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rq3i-bleu);
    margin-bottom: 4px;
}

.rq3i-login__subtitle {
    font-size: 0.95rem;
    color: var(--rq3i-gris-texte);
    margin-bottom: 28px;
}

.rq3i-login__error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    color: var(--rq3i-rouge);
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: var(--rq3i-radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.rq3i-login__field {
    margin-bottom: 18px;
}

.rq3i-login__field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rq3i-marine);
    margin-bottom: 6px;
}

.rq3i-login__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rq3i-login__input-icon {
    position: absolute;
    left: 14px;
    color: var(--rq3i-gris-texte);
    opacity: 0.5;
    pointer-events: none;
}

.rq3i-login__input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--rq3i-bordure);
    border-radius: var(--rq3i-radius-sm);
    font-size: 1rem;
    font-family: var(--rq3i-font);
    color: var(--rq3i-marine);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--rq3i-blanc);
}

.rq3i-login__input-wrap input:focus {
    outline: none;
    border-color: var(--rq3i-bleu);
    box-shadow: 0 0 0 3px rgba(27, 60, 134, 0.15);
}

.rq3i-login__toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rq3i-gris-texte);
    padding: 4px;
    display: flex;
}

.rq3i-login__toggle-pass:hover {
    color: var(--rq3i-marine);
}

.rq3i-login__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.rq3i-login__remember label {
    font-size: 0.9rem;
    color: var(--rq3i-gris-texte);
    font-weight: 400;
    cursor: pointer;
}

.rq3i-login__submit {
    width: 100%;
    padding: 14px;
    background: var(--rq3i-vert);
    color: var(--rq3i-blanc);
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--rq3i-font);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.rq3i-login__submit:hover {
    background: var(--rq3i-vert-hover);
}

.rq3i-login__submit:active {
    transform: scale(0.98);
}

.rq3i-login__forgot-wrap {
    text-align: center;
    margin-top: 16px;
}

.rq3i-login__forgot {
    color: var(--rq3i-bleu);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.rq3i-login__forgot:hover {
    text-decoration: underline;
}

.rq3i-login__footer {
    text-align: center;
    color: var(--rq3i-gris-texte);
    font-size: 0.8rem;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--rq3i-bordure);
}

.rq3i-login__success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 14px 18px;
    border-radius: var(--rq3i-radius-sm);
    margin: 20px 0 24px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rq3i-login__back {
    display: inline-block;
    color: var(--rq3i-bleu);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.rq3i-login__back:hover {
    color: var(--rq3i-marine);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   6. DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

.rq3i-dashboard-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--rq3i-gris);
}

.rq3i-dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--rq3i-font);
}

/* Header */
.rq3i-dash-header {
    background: var(--rq3i-bleu);
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 2rem;
}

.admin-bar .rq3i-dash-header {
    top: 32px;
}

.rq3i-dash-header__left {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.rq3i-dash-header__logo {
    height: 52px;
    width: auto;
}

.rq3i-dash-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.rq3i-dash-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.rq3i-dash-nav a:hover,
.rq3i-dash-nav a.rq3i-dash-nav--active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.rq3i-dash-nav--admin {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fbbf24 !important;
}
.rq3i-dash-nav--admin:hover {
    background: rgba(251, 191, 36, 0.15) !important;
    border-color: #fbbf24;
}

.rq3i-dash-header__user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    white-space: nowrap;
}

.rq3i-dash-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rq3i-vert);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rq3i-dash-logout {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.rq3i-dash-logout:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Main */
.rq3i-dash-main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    width: 100%;
}

/* Bienvenue */
.rq3i-dash-welcome {
    margin-bottom: 2rem;
}

.rq3i-dash-welcome h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rq3i-bleu);
    margin: 0 0 0.25rem;
}

.rq3i-dash-welcome p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Grille accès rapides */
.rq3i-dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.rq3i-dash-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rq3i-dash-card:hover {
    border-color: var(--rq3i-bleu);
    box-shadow: 0 4px 12px rgba(27, 60, 134, 0.1);
    transform: translateY(-2px);
}

.rq3i-dash-card__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.rq3i-dash-card__content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.2rem;
}

.rq3i-dash-card__content p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.rq3i-dash-card__arrow {
    margin-left: auto;
    color: #d1d5db;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.rq3i-dash-card:hover .rq3i-dash-card__arrow {
    color: var(--rq3i-bleu);
    transform: translateX(3px);
}

/* Section publications */
.rq3i-dash-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.rq3i-dash-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rq3i-bleu);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.rq3i-dash-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.rq3i-dash-list__item:last-child {
    border-bottom: none;
}

.rq3i-dash-list__content h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 0.2rem;
}

.rq3i-dash-list__date {
    font-size: 0.78rem;
    color: #9ca3af;
}

.rq3i-dash-list__link {
    color: var(--rq3i-vert);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.rq3i-dash-list__link:hover {
    color: var(--rq3i-vert-hover);
}

.rq3i-dash-empty {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem 0;
}

/* Footer dashboard */
.rq3i-dash-footer {
    background: var(--rq3i-blanc);
    border-top: 1px solid var(--rq3i-bordure);
    padding: 1.25rem 2rem;
}

.rq3i-dash-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.rq3i-dash-footer__inner > span {
    color: #9ca3af;
    font-size: 0.8rem;
}

.rq3i-dash-footer__links {
    display: flex;
    gap: 1.5rem;
}

.rq3i-dash-footer__links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.rq3i-dash-footer__links a:hover {
    color: var(--rq3i-bleu);
}

.rq3i-icon {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   7. PAGES INTERNES — LAYOUT COMMUN
   ═══════════════════════════════════════════════════════════════ */

.rq3i-page-content {
    font-family: var(--rq3i-font);
    color: var(--rq3i-marine);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}

.rq3i-page-header {
    background: #f5f5f5;
    padding: 2rem 2.5rem;
    border-left: 4px solid #85c06c;
    width: 100%;
    box-sizing: border-box;
}

.rq3i-page-header__inner {
    max-width: 100%;
    margin: 0;
}

.rq3i-page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.rq3i-page-header p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.rq3i-breadcrumb {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.rq3i-breadcrumb a {
    color: #999;
    text-decoration: none;
}

.rq3i-breadcrumb a:hover {
    color: #333;
}

.rq3i-page-body {
    max-width: 100%;
    margin: 0;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}

.rq3i-page-back {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rq3i-bordure);
}

.rq3i-link-back {
    color: var(--rq3i-bleu);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.rq3i-link-back:hover {
    text-decoration: underline;
}

.rq3i-empty {
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 0;
}

/* Boutons */
.rq3i-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    background: var(--rq3i-bleu);
    color: #fff;
}

.rq3i-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.rq3i-btn--sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.rq3i-btn--green {
    background: var(--rq3i-vert);
}

.rq3i-btn--green:hover {
    background: var(--rq3i-vert-hover);
}

.rq3i-tag {
    display: inline-block;
    background: rgba(27, 60, 134, 0.08);
    color: var(--rq3i-bleu);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   8. DOCUMENTS OFFICIELS — SYSTÈME ENRICHI
   ═══════════════════════════════════════════════════════════════ */

/* Filtres documents */
.rq3i-doc-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.rq3i-filter-select {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #374151;
    background: #f9fafb;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.rq3i-filter-select:focus {
    outline: 2px solid #1b3c86;
    border-color: #1b3c86;
}
.rq3i-filter-statut {
    display: flex;
    gap: 0.5rem;
}
.rq3i-filter-btn {
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #6b7280;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.rq3i-filter-btn.active,
.rq3i-filter-btn:hover {
    background: #1b3c86;
    color: #fff;
    border-color: #1b3c86;
}
.rq3i-filter-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Items documents */
.rq3i-doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.rq3i-doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s;
}
.rq3i-doc-item:hover {
    border-color: #1b3c86;
    box-shadow: 0 2px 8px rgba(27,60,134,0.08);
}
.rq3i-doc-item__meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
    min-width: 100px;
}
.rq3i-doc-item__content {
    flex: 1;
}
.rq3i-doc-item__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.3rem;
}
.rq3i-doc-item__desc {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 0.4rem;
    line-height: 1.4;
}
.rq3i-doc-item__info {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: #9ca3af;
}
.rq3i-doc-item__action {
    flex-shrink: 0;
}
.rq3i-doc-item__no-file {
    font-size: 0.8rem;
    color: #d1d5db;
}

/* Badges catégories */
.rq3i-doc-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.rq3i-doc-badge--politique  { background: #eff6ff; color: #1d4ed8; }
.rq3i-doc-badge--rapport    { background: #f0fdf4; color: #166534; }
.rq3i-doc-badge--guide      { background: #fefce8; color: #854d0e; }
.rq3i-doc-badge--procedure  { background: #faf5ff; color: #7e22ce; }
.rq3i-doc-badge--charte     { background: #fff7ed; color: #c2410c; }
.rq3i-doc-badge--autre      { background: #f9fafb; color: #6b7280; }
.rq3i-doc-badge--archive    { background: #f3f4f6; color: #9ca3af; }

/* Bouton primary */
.rq3i-btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1b3c86;
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.rq3i-btn--primary:hover {
    background: #152f6b;
}

/* Zone vide */
.rq3i-doc-empty {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
    background: #fff;
    border-radius: 10px;
    border: 1px dashed #e5e7eb;
}

/* ═══════════════════════════════════════════════════════════════
   9. PUBLICATIONS
   ═══════════════════════════════════════════════════════════════ */

.rq3i-pub-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.rq3i-pub-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rq3i-pub-card:hover {
    border-color: var(--rq3i-bleu);
    box-shadow: 0 2px 8px rgba(27, 60, 134, 0.08);
}

.rq3i-pub-card__body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.rq3i-pub-card__body h3 a {
    color: #111827;
    text-decoration: none;
}

.rq3i-pub-card__body h3 a:hover {
    color: var(--rq3i-bleu);
}

.rq3i-pub-card__date {
    font-size: 0.78rem;
    color: #9ca3af;
}

.rq3i-pub-card__desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.rq3i-pub-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.rq3i-pub-card__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-start;
}

/* ═══════════════════════════════════════════════════════════════
   9b. FORMULAIRES
   ═══════════════════════════════════════════════════════════════ */

.rq3i-form-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rq3i-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.rq3i-form-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rq3i-form-card__header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.rq3i-form-card__type {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.rq3i-form-card__desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 1rem;
}

.rq3i-form-card__gf {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* ═══════════════════════════════════════════════════════════════
   9c. NOUVELLES
   ═══════════════════════════════════════════════════════════════ */

.rq3i-news-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rq3i-news-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rq3i-news-card:hover {
    border-color: var(--rq3i-bleu);
    box-shadow: 0 2px 8px rgba(27, 60, 134, 0.08);
}

.rq3i-news-card__thumb {
    width: 200px;
    flex-shrink: 0;
}

.rq3i-news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rq3i-news-card__body {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

.rq3i-news-card__date {
    font-size: 0.78rem;
    color: #9ca3af;
}

.rq3i-news-card__body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.25rem 0 0.5rem;
}

.rq3i-news-card__body h3 a {
    color: #111827;
    text-decoration: none;
}

.rq3i-news-card__body h3 a:hover {
    color: var(--rq3i-bleu);
}

.rq3i-news-card__body p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.rq3i-news-card__link {
    color: var(--rq3i-vert);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.rq3i-news-card__link:hover {
    color: var(--rq3i-vert-hover);
}

/* ═══════════════════════════════════════════════════════════════
   9d. IDENTITÉ VISUELLE
   ═══════════════════════════════════════════════════════════════ */

/* Accordéon */
.rq3i-accordion {
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.rq3i-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1E3A8A;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}
.rq3i-accordion__trigger:hover {
    background: #f9fafb;
}
.rq3i-accordion__trigger::-webkit-details-marker { display: none; }
.rq3i-accordion__trigger::marker { content: ''; }
.rq3i-accordion__trigger::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s;
}
.rq3i-accordion[open] > .rq3i-accordion__trigger::after {
    content: '−';
    color: #1E3A8A;
}
.rq3i-accordion[open] > .rq3i-accordion__trigger {
    border-bottom: 1px solid #e5e7eb;
}
.rq3i-accordion__content {
    padding: 1.25rem 1.5rem;
}

.rq3i-iv-section {
    margin-bottom: 2.5rem;
}

.rq3i-iv-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.rq3i-iv-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.75rem;
}

.rq3i-iv-section p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.rq3i-iv-intro {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
    max-width: 800px;
}

/* Grille logos */
.rq3i-iv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.rq3i-iv-grid--wide {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.rq3i-iv-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.rq3i-iv-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.rq3i-iv-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.rq3i-iv-card__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 100px;
    text-decoration: none;
    cursor: pointer;
}
.rq3i-iv-card--bg-white .rq3i-iv-card__preview { background: #fff; }
.rq3i-iv-card--bg-bleu  .rq3i-iv-card__preview { background: #1E3A8A; }
.rq3i-iv-card--bg-vert  .rq3i-iv-card__preview { background: #87C06D; }

.rq3i-iv-card__preview img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
}

.rq3i-iv-card__label {
    font-size: 0.78rem;
    color: #6b7280;
    text-align: center;
    padding: 0.6rem 0.5rem 0.3rem;
    margin: 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.rq3i-iv-card__dl {
    display: block;
    text-align: center;
    padding: 0.4rem 0.5rem 0.6rem;
    background: #f9fafb;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rq3i-bleu-clair);
    text-decoration: none;
    transition: color 0.2s;
}
.rq3i-iv-card__dl:hover {
    color: var(--rq3i-bleu);
    text-decoration: underline;
}

/* Tableau couleurs / typographie */
.rq3i-iv-table-wrap {
    overflow-x: auto;
}
.rq3i-iv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.rq3i-iv-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
}
.rq3i-iv-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}
.rq3i-iv-table code {
    font-size: 0.82rem;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1E3A8A;
}
.rq3i-iv-swatch-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Gabarits */
.rq3i-iv-gabarits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.rq3i-iv-gabarit-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}
.rq3i-iv-gabarit-card:hover {
    border-color: #1E3A8A;
}
.rq3i-iv-gabarit-card__icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.rq3i-iv-gabarit-card__info {
    flex: 1;
}
.rq3i-iv-gabarit-card__info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.2rem;
}
.rq3i-iv-gabarit-card__info p {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   9e. SINGLE POST
   ═══════════════════════════════════════════════════════════════ */

.rq3i-single-post__header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rq3i-bleu);
    margin: 0 0 0.5rem;
}

.rq3i-single-post__meta {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rq3i-single-post__image {
    margin: 0 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.rq3i-single-post__image img {
    width: 100%;
    height: auto;
    display: block;
}

.rq3i-single-post__content {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.rq3i-single-post__content h2,
.rq3i-single-post__content h3 {
    color: var(--rq3i-bleu);
    margin-top: 1.5rem;
}

.rq3i-single-post__content a {
    color: var(--rq3i-bleu);
}

/* ═══════════════════════════════════════════════════════════════
   9f. RESPONSIVE PAGES INTERNES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .rq3i-page-content { padding: 1.25rem 1rem; }
    .rq3i-page-header { padding: 1.5rem 1rem; border-left-width: 3px; }
    .rq3i-page-header h1 { font-size: 1.3rem; }
    .rq3i-page-body { padding: 1.25rem 1rem; }
    .rq3i-publication-content { padding: 24px 1rem 36px; }
    .rq3i-intranet-content { padding: 24px 1rem 36px; }
    .rq3i-formulaires-page { padding-left: 1rem; padding-right: 1rem; }
    .rq3i-doc-item { flex-direction: column; align-items: flex-start; }
    .rq3i-doc-item__meta { flex-direction: row; }
    .rq3i-doc-filters { flex-direction: column; align-items: flex-start; }
    .rq3i-filter-count { margin-left: 0; }
    .rq3i-pub-card { flex-direction: column; }
    .rq3i-pub-card__actions { align-self: flex-start; }
    .rq3i-news-card { flex-direction: column; }
    .rq3i-news-card__thumb { width: 100%; height: 160px; }
    .rq3i-iv-grid { grid-template-columns: repeat(2, 1fr); }
    .rq3i-iv-grid--wide { grid-template-columns: 1fr; }
    .rq3i-iv-gabarit-card { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   10. BOTTIN MEMBRES
   ═══════════════════════════════════════════════════════════════ */

.rq3i-bottin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--rq3i-header-h) + 24px) 20px 48px;
}

.rq3i-bottin-hero {
    text-align: center;
    padding: 24px 16px 16px;
}

.rq3i-bottin-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rq3i-marine);
    margin-bottom: 4px;
}

.rq3i-bottin-hero p {
    color: var(--rq3i-gris-texte);
    font-size: 0.95rem;
}

/* Toolbar filtres */
.rq3i-bottin-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 20px;
}

.rq3i-bottin-toolbar__group input[type="text"],
.rq3i-bottin-toolbar__group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--rq3i-bordure);
    border-radius: var(--rq3i-radius-sm);
    font-size: 0.95rem;
    font-family: var(--rq3i-font);
    background: var(--rq3i-blanc);
    color: var(--rq3i-marine);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rq3i-bottin-toolbar__group input:focus,
.rq3i-bottin-toolbar__group select:focus {
    outline: none;
    border-color: var(--rq3i-bleu-clair);
    box-shadow: 0 0 0 3px rgba(0, 152, 221, 0.12);
}

.rq3i-bottin-count {
    color: var(--rq3i-gris-texte);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Grille bottin */
.rq3i-bottin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.rq3i-bottin-card {
    background: var(--rq3i-blanc);
    border: 1px solid var(--rq3i-bordure);
    border-radius: var(--rq3i-radius);
    overflow: hidden;
    box-shadow: var(--rq3i-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rq3i-bottin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rq3i-shadow-lg);
}

.rq3i-bottin-card[hidden] { display: none; }

.rq3i-bottin-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rq3i-bottin-card__photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--rq3i-gris);
}

.rq3i-bottin-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rq3i-bottin-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rq3i-bleu);
    background: rgba(46, 48, 146, 0.06);
}

.rq3i-bottin-card__placeholder--large {
    width: 280px;
    height: 280px;
    border-radius: var(--rq3i-radius);
    font-size: 3.5rem;
}

.rq3i-bottin-card__info {
    padding: 12px 14px 16px;
}

.rq3i-bottin-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rq3i-marine);
    margin-bottom: 4px;
    line-height: 1.3;
}

.rq3i-bottin-card__institution {
    font-size: 0.8rem;
    color: var(--rq3i-gris-texte);
    margin-bottom: 6px;
    line-height: 1.3;
}

.rq3i-bottin-card__axe {
    display: inline-block;
    background: rgba(0, 152, 221, 0.1);
    color: var(--rq3i-bleu-clair);
    border: 1px solid rgba(0, 152, 221, 0.2);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   11. FICHE MEMBRE
   ═══════════════════════════════════════════════════════════════ */

.rq3i-single-membre {
    padding-top: var(--rq3i-header-h);
}

.rq3i-hero {
    background: var(--rq3i-gris);
    padding: 24px 20px;
}

.rq3i-hero__content {
    max-width: 1000px;
    margin: 0 auto;
}

.rq3i-hero__label {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rq3i-marine);
    margin-top: 8px;
}

.rq3i-breadcrumb {
    font-size: 0.85rem;
    color: var(--rq3i-gris-texte);
}

.rq3i-breadcrumb a {
    color: var(--rq3i-bleu);
    text-decoration: none;
}

.rq3i-breadcrumb a:hover { text-decoration: underline; }

.rq3i-membre-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.rq3i-membre-content__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rq3i-membre-content__photo img {
    width: 100%;
    max-width: 280px;
    border-radius: var(--rq3i-radius);
}

.rq3i-membre-content__details h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rq3i-marine);
    margin-bottom: 14px;
}

.rq3i-membre-taxonomies {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.rq3i-membre-tax {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rq3i-membre-tax--statut { background: rgba(46, 48, 146, 0.08); color: var(--rq3i-bleu); }
.rq3i-membre-tax--institution { background: #ecfdf5; color: #065f46; }
.rq3i-membre-tax--axe { background: rgba(0, 152, 221, 0.1); color: var(--rq3i-bleu-clair); border: 1px solid rgba(0, 152, 221, 0.2); }

.rq3i-membre-cv { color: var(--rq3i-gris-texte); line-height: 1.7; margin-bottom: 20px; }
.rq3i-membre-courriel a { color: var(--rq3i-bleu); text-decoration: none; font-weight: 600; }
.rq3i-membre-courriel a:hover { text-decoration: underline; }

.rq3i-membre-publications { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rq3i-bordure); }
.rq3i-membre-publications h2 { font-size: 1.15rem; color: var(--rq3i-marine); margin-bottom: 12px; }
.rq3i-membre-publications ul { list-style: none; }
.rq3i-membre-publications li { margin-bottom: 8px; }
.rq3i-membre-publications a { color: var(--rq3i-bleu); text-decoration: none; }
.rq3i-membre-publications a:hover { text-decoration: underline; }
.rq3i-membre-pub-year { color: var(--rq3i-gris-texte); font-size: 0.85rem; }
.rq3i-membre-back { margin-top: 24px; }

/* ═══════════════════════════════════════════════════════════════
   12. PUBLICATIONS
   ═══════════════════════════════════════════════════════════════ */

.rq3i-single-publication { padding-top: var(--rq3i-header-h); }
.rq3i-publication-content { max-width: 100%; margin: 0; padding: 32px 2.5rem 48px; box-sizing: border-box; }

.rq3i-publication-content__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rq3i-publication-content__cover img { width: 100%; max-width: 200px; border-radius: var(--rq3i-radius-sm); box-shadow: var(--rq3i-shadow); }
.rq3i-publication-title { font-size: 1.4rem; color: var(--rq3i-marine); margin-bottom: 8px; }
.rq3i-publication-date { color: var(--rq3i-gris-texte); font-size: 1rem; margin-bottom: 12px; }
.rq3i-publication-axes, .rq3i-publication-auteurs { color: var(--rq3i-gris-texte); margin-bottom: 8px; font-size: 0.95rem; }
.rq3i-publication-resume { color: var(--rq3i-gris-texte); line-height: 1.65; margin: 16px 0 20px; }
.rq3i-publication-back { margin-top: 20px; }

/* ═══════════════════════════════════════════════════════════════
   13. DOCUMENTS (grille)
   ═══════════════════════════════════════════════════════════════ */

.rq3i-documents-page, .rq3i-single-intranet { padding-top: var(--rq3i-header-h); }
.rq3i-documents-section { padding: 0 20px 32px; }
.rq3i-documents-section__inner { max-width: 100%; margin: 0; }
.rq3i-documents-section__inner h2 { font-size: 1.25rem; color: var(--rq3i-marine); margin-bottom: 16px; }
.rq3i-documents-section--dynamic { border-top: 1px solid var(--rq3i-bordure); padding-top: 32px; }

.rq3i-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.rq3i-doc-card {
    background: var(--rq3i-blanc);
    border: 1px solid var(--rq3i-bordure);
    border-radius: var(--rq3i-radius);
    box-shadow: var(--rq3i-shadow);
    padding: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rq3i-doc-card:hover { border-color: var(--rq3i-bleu-clair); box-shadow: var(--rq3i-shadow-lg); }
.rq3i-doc-card__icon { margin-bottom: 10px; }
.rq3i-doc-title { font-size: 1rem; font-weight: 600; color: var(--rq3i-marine); margin-bottom: 8px; }
.rq3i-doc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rq3i-doc-tag { background: rgba(0, 152, 221, 0.1); color: var(--rq3i-bleu); border: 1px solid rgba(0, 152, 221, 0.2); padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.rq3i-doc-meta { color: var(--rq3i-gris-texte); font-size: 0.85rem; margin-bottom: 8px; }
.rq3i-doc-desc { color: var(--rq3i-gris-texte); font-size: 0.9rem; margin-bottom: 12px; line-height: 1.45; }

.rq3i-doc-btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: var(--rq3i-radius-sm);
    background: var(--rq3i-bleu-clair);
    color: var(--rq3i-blanc);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.rq3i-doc-btn:hover { background: var(--rq3i-bleu); color: var(--rq3i-blanc); }

.rq3i-doc-card--placeholder { background: var(--rq3i-gris); border-style: dashed; }
.rq3i-documents-empty { color: var(--rq3i-gris-texte); font-style: italic; }
.rq3i-intranet-fileinfo { font-size: 0.8rem; opacity: 0.8; margin-left: 4px; }

.rq3i-intranet-content { max-width: 100%; margin: 0; padding: 32px 2.5rem 48px; box-sizing: border-box; }
.rq3i-intranet-content__inner h1 { color: var(--rq3i-marine); margin-bottom: 16px; }
.rq3i-intranet-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.rq3i-intranet-body { color: var(--rq3i-gris-texte); line-height: 1.7; margin-bottom: 24px; }
.rq3i-intranet-download { margin: 24px 0; }
.rq3i-intranet-back { margin-top: 20px; }

/* ═══════════════════════════════════════════════════════════════
   14. FORMULAIRES
   ═══════════════════════════════════════════════════════════════ */

.rq3i-formulaires-page { padding-top: var(--rq3i-header-h); max-width: 100%; margin: 0; padding-left: 2.5rem; padding-right: 2.5rem; box-sizing: border-box; }
.rq3i-formulaires-content__inner { padding: 24px 0 48px; }
.rq3i-formulaires-intro { color: var(--rq3i-gris-texte); font-size: 1rem; margin-bottom: 24px; }
.rq3i-formulaires-gf { margin-bottom: 32px; }
.rq3i-formulaires-upcoming { border-top: 1px solid var(--rq3i-bordure); padding-top: 24px; margin-bottom: 24px; }
.rq3i-formulaires-upcoming h2 { font-size: 1.15rem; color: var(--rq3i-marine); margin-bottom: 14px; }

.rq3i-admin-notice {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--rq3i-radius-sm);
    padding: 14px 18px;
    font-size: 0.85rem;
    color: #92400e;
    margin: 24px 0;
}

.rq3i-admin-notice code { background: #fef3c7; padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }
.rq3i-admin-notice a { color: #92400e; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   15. FOOTER
   ═══════════════════════════════════════════════════════════════ */

.rq3i-footer {
    height: var(--rq3i-footer-h);
    background: var(--rq3i-gris);
    border-top: 1px solid var(--rq3i-bordure);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--rq3i-gris-texte);
    font-family: var(--rq3i-font);
}

.rq3i-footer__inner a {
    color: var(--rq3i-bleu);
    text-decoration: none;
}

.rq3i-footer__inner a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   16. BOUTON GÉNÉRIQUE
   ═══════════════════════════════════════════════════════════════ */

.rq3i-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--rq3i-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--rq3i-font);
    transition: background 0.2s;
    background: var(--rq3i-gris);
    color: var(--rq3i-marine);
}

.rq3i-btn:hover { background: var(--rq3i-bordure); }

.rq3i-btn--primary {
    background: var(--rq3i-bleu-clair);
    color: var(--rq3i-blanc);
}

.rq3i-btn--primary:hover { background: var(--rq3i-bleu); color: var(--rq3i-blanc); }

/* ═══════════════════════════════════════════════════════════════
   17. RESPONSIVE — TABLET (768px+)
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {

    /* Login deux colonnes */
    .rq3i-login { flex-direction: row; }
    .rq3i-login__brand {
        width: 42%;
        min-height: 100vh;
        padding: 48px 40px;
    }
    .rq3i-login__brand-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        max-width: 400px;
    }
    .rq3i-login__logo {
        width: 75%;
        max-width: 280px;
        height: auto;
        margin-bottom: 32px;
    }
    .rq3i-login__site-link {
        margin-top: 24px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    .rq3i-login__form-wrap { width: 58%; }

    /* Bottin toolbar horizontal */
    .rq3i-bottin-toolbar { flex-direction: row; flex-wrap: wrap; }
    .rq3i-bottin-toolbar__group input[type="text"],
    .rq3i-bottin-toolbar__group select { width: auto; min-width: 200px; }

    .rq3i-bottin-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

    /* Membre single : grille */
    .rq3i-membre-content__inner { flex-direction: row; gap: 32px; }
    .rq3i-membre-content__photo { flex-shrink: 0; }

    /* Publication single : grille */
    .rq3i-publication-content__inner { flex-direction: row; gap: 28px; }
    .rq3i-publication-content__cover { flex-shrink: 0; }

}

/* ── Responsive Dashboard ──────────────────────────────────── */
@media (max-width: 1024px) {
    .rq3i-dash-grid { grid-template-columns: repeat(2, 1fr); }
    .rq3i-dash-nav a { font-size: 0.78rem; padding: 5px 8px; }
}

@media (max-width: 768px) {
    .rq3i-dash-header {
        position: relative;
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    /* Hamburger button */
    .rq3i-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 200;
    }
    .rq3i-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .rq3i-hamburger--active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .rq3i-hamburger--active span:nth-child(2) {
        opacity: 0;
    }
    .rq3i-hamburger--active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Nav slide-out */
    .rq3i-dash-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: #1b3c86;
        flex-direction: column;
        padding: 80px 1.5rem 2rem;
        z-index: 150;
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
        overflow-y: auto;
    }
    .rq3i-dash-nav.rq3i-nav--open {
        display: flex;
    }
    .rq3i-dash-nav a {
        font-size: 1rem;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
    }

    /* Overlay */
    .rq3i-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 140;
    }
    .rq3i-nav-overlay--visible {
        display: block;
    }

    .rq3i-dash-grid { grid-template-columns: 1fr; }
    .rq3i-dash-main { padding: 1.5rem 1rem; }
    .rq3i-dash-welcome h1 { font-size: 1.4rem; }
    .rq3i-dash-header__name { display: none; }
    .rq3i-dash-footer__inner { justify-content: center; text-align: center; }
}

/* Desktop — hide hamburger, force nav visible */
@media (min-width: 769px) {
    .rq3i-hamburger { display: none; }
    .rq3i-nav-overlay { display: none !important; }
    .rq3i-dash-nav { display: flex !important; }
}

/* ═══════════════════════════════════════════════════════════════
   18. RESPONSIVE — DESKTOP (1024px+)
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {

    /* Login desktop — logo imposant */
    .rq3i-login__brand { padding: 60px 48px; }
    .rq3i-login__logo {
        width: 85%;
        max-width: 340px;
        height: auto;
        margin-bottom: 40px;
    }

    /* Header nav visible, hamburger caché */
    .rq3i-header__nav { display: flex; }
    .rq3i-header__hamburger { display: none; }

    /* Bottin grille plus large */
    .rq3i-bottin-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   19. ADMIN BAR — Desactive (voir section 0)
   ═══════════════════════════════════════════════════════════════ */
