/**
 * Bundle Public Shell — Navbar + composants structurels pour pages publiques (header.php)
 * Sources : navbar_header + sections + icon-band + bars + quick_nav + pagination
 * Sprint 4 — Consolidation CSS
 */

/* ============================================================
 * SOURCE: components/navbar_header.css
 * ============================================================ */
/* ============================================
   NAVBAR HEADER - Styles isolés pour navbar.php
   ============================================ */

/* Variables CSS pour la navbar */
:root {
    /* Fixed heights per bar */
    --navbar-h: 140px;   /* logo + menus */
    --roles-h: 120px;    /* roles-band height when present */
    --quick-gap: 8px;    /* spacing between roles-band and quick-nav */
    
    /* Total reserved height for fixed top area */
    --nav-height: calc(var(--navbar-h) + var(--roles-h));
}

/* If roles-band not shown, collapse its height */
body:not(.has-roles-band) {
    --roles-h: 0px;
    --nav-height: var(--navbar-h);
}

/* ============================================
   NAVIGATION PRINCIPALE
   ============================================ */

/* Navigation principale - Spécificité augmentée pour override Bootstrap */
nav.navbar {
    background: var(--primary-color) !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1050 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    height: var(--navbar-h) !important;
    padding: 8px 0 !important;
    box-sizing: border-box !important;
}

.navbar .container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    gap: 40px;
}

/* ============================================
   LOGO
   ============================================ */

.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.navbar .logo img {
    height: 120px;
    width: auto;
    margin: 0;
    transition: transform 0.3s ease;
}

.navbar .logo img:hover {
    transform: scale(1.05);
}

/* ============================================
   MENU
   ============================================ */

.navbar .menu {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 0;
}

.navbar .menu .menu-colonne {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.navbar .menu .menu-colonne ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar .menu .menu-colonne ul li {
    width: 100%;
    text-align: left;
}

.navbar .menu .menu-colonne ul li a {
    display: block;
    width: 100%;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar .menu .menu-colonne ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar .menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.navbar .menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.navbar .menu ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ============================================
   AUTH SECTION (Connexion/Inscription)
   ============================================ */

.navbar .auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 0;
    list-style: none;
    height: 100%;
}

.navbar .auth .nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.navbar .auth .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.navbar .auth .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ============================================
   BOUTONS NAVBAR
   ============================================ */

/* Styles génériques pour compatibilité */
.btn-login, .btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
    color: white;
    text-align: center;
    min-width: 120px;
    justify-content: center;
    white-space: nowrap;
}

.btn-login:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(44, 62, 80, 0.4) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: rgba(255,255,255,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.8);
}

/* Styles spécifiques navbar - priorité élevée */
.navbar-btn-login, .navbar-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    text-align: center !important;
    min-width: 120px !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.navbar-btn-login:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(44, 62, 80, 0.4) 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.navbar-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.navbar-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.8) !important;
}

/* ============================================
   BURGER MENU
   ============================================ */

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 120px;
        padding: 10px 0;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 1rem;
        align-items: center;
    }
    
    .navbar .logo {
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .navbar .menu {
        order: 2;
        width: 100%;
        margin-bottom: 20px;
        gap: 15px;
        max-width: 600px;
    }
    
    .navbar .menu .menu-colonne ul li a {
        padding: 6px 8px;
        font-size: 0.8rem;
        border-radius: 4px;
    }
    
    .navbar .auth {
        order: 3;
        width: 100%;
    }
    
    .navbar .auth .nav-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .btn-login, .btn-primary {
        flex: 1;
        max-width: 180px;
        justify-content: center;
        margin: 0 5px;
        font-size: 1.1rem;
        padding: 15px 25px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .navbar .menu {
        display: none;
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: calc(100vh - var(--navbar-h));
        overflow-y: auto;
    }
    
    .navbar .menu.active {
        display: flex;
    }
    
    .navbar .menu .menu-colonne {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .navbar .menu .menu-colonne ul {
        width: 100%;
    }
    
    .navbar .menu .menu-colonne ul li {
        width: 100%;
    }
    
    .navbar .menu .menu-colonne ul li a {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .navbar .auth {
        width: 100%;
        margin-left: 0;
    }
    
    .navbar .auth .nav-links {
        width: 100%;
        flex-direction: column;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================================
 * SOURCE: components/sections.css
 * ============================================================ */
/* Navigation rapide */
.quick-nav {
    position: fixed;
    top: 180px;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    background-color: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 0;
    z-index: 1000;
    border-bottom: 1px solid #eeeeee;
    display: block;
    visibility: visible;
}

.quick-nav .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.quick-nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.quick-nav a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 8px 12px;
    color: #444444;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 4px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2C3E50;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.quick-nav a:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(44, 62, 80, 0.1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-color: rgba(52, 152, 219, 0.2);
}

.quick-nav i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .quick-nav {
        top: 60px;
        padding: 5px 0;
    }
    
    .quick-nav .container {
        padding: 0 10px;
    }
    
    .quick-nav ul {
        gap: 6px;
    }
    
    .quick-nav a {
        font-size: 0.85rem;
        padding: 8px;
        width: calc(50% - 3px);
        justify-content: center;
    }

    .quick-nav i {
        margin-right: 4px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .quick-nav a {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
}

/* Offset pour les ancres avec menus fixes */
section[id] {
    scroll-margin-top: 240px;
}

/* Fallback pour navigateurs sans support scroll-margin */
@supports not (scroll-margin-top: 240px) {
    section[id]::before {
        content: '';
        display: block;
        height: 240px;
        margin-top: -240px;
        visibility: hidden;
    }
}

/* Section description */
.description-section {
    margin-top: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    color: rgb(211, 255, 249);
    padding: 4rem 0;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

.description-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.description-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.description-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.description-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.description-section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.description-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

.description-section p:last-child {
    font-size: 1.4rem;
    text-align: center;
    font-weight: 500;
    margin-top: 2rem;
    animation-delay: 0.6s;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.description-section p:last-child:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .description-section {
        padding: 3rem 1rem;
        margin: 1rem 0;
    }

    .description-section h2 {
        font-size: 2rem;
    }

    .description-section p {
        font-size: 1.1rem;
        text-align: left;
    }
}

/* Séparateurs de groupes */
.group-separator {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    background: white;
    z-index: 1;
    margin: 0;
}

.group-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.group-title {
    display: inline-block;
    background: #fff;
    padding: 0 20px;
    position: relative;
    color: #666;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Icônes des sections */
.service-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-section h2 i {
    font-size: 1.5em;
    color: #4a90e2;
}

/* Fallback pour Edge et autres navigateurs */
.quick-nav li {
    display: inline-block;
    margin: 0 5px;
}

/* Support pour gap manquant */
@supports not (gap: 10px) {
    .quick-nav ul {
        margin: 0 -5px;
    }
    
    .quick-nav li {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .quick-nav {
        top: 180px;
        padding: 5px 0;
    }
    
    .quick-nav ul {
        gap: 6px;
    }

    .quick-nav a {
        font-size: 0.85rem;
        padding: 8px;
        width: calc(50% - 3px);
        justify-content: center;
    }

    .quick-nav i {
        margin-right: 4px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .quick-nav a {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
}

/* ============================================================
 * SOURCE: components/icon-band.css
 * ============================================================ */
/* Icon band component */
.icon-band { background:#223243; color:#cfe8ff; padding:16px 0; border-top:1px solid rgba(255,255,255,0.05); border-bottom:1px solid rgba(0,0,0,0.15); }
.icon-band .icon-band-list { display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; row-gap:24px; list-style:none; padding:0; margin:0; }
.icon-band .icon-item { flex:1 1 140px; min-width:140px; text-align:center; }
.icon-band .icon-item i { font-size:28px; color:#58a6ff; }
.icon-band .icon-item h3 { margin:8px 0 4px; font-weight:600; font-size:16px; color:#e6f1ff; }
.icon-band .icon-item p { margin:0; font-size:14px; opacity:.85; }
.icon-band .icon-item .subtitle { color:#cde3ff; opacity:.9; }

/* Links inside items */
.icon-band .icon-item .icon-link { display:block; padding:12px 8px; border-radius:10px; transition:background .2s ease, transform .2s ease, box-shadow .2s ease; text-decoration:none; color:inherit; }
.icon-band .icon-item .icon-link:hover { background:rgba(255,255,255,0.06); transform:translateY(-1px); box-shadow:0 2px 6px rgba(0,0,0,0.15); }

/* Tooltip */
.icon-band .icon-item .icon-link { position:relative; }
.icon-band .icon-item .icon-link::after {
  content: attr(data-tooltip);
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:calc(100% + 8px);
  background:rgba(20,30,40,0.95);
  color:#e6f1ff;
  padding:6px 10px;
  border-radius:6px;
  font-size:12px;
  line-height:1.3;
  white-space:nowrap;
  box-shadow:0 4px 12px rgba(0,0,0,0.25);
  opacity:0; pointer-events:none; transition:opacity .15s ease; z-index:5;
}
.icon-band .icon-item .icon-link:hover::after { opacity:1; }

/* Active state for roles band */
.roles-band .icon-item.active .icon-link { background:linear-gradient(180deg, rgba(88,166,255,0.20), rgba(88,166,255,0.10)); border:1px solid rgba(88,166,255,0.45); }
.roles-band .icon-item.active i { color:#7bb4ff; }

/* Single-line slider behavior for roles band */
.roles-band { position: sticky; top: calc(var(--nav-height, 90px)); margin-top: 12px; margin-bottom: 12px; z-index: 1200; }
.roles-band + main { padding-top: 28px; }

/* Ensure in-page anchors are not hidden behind navbar + roles band */
:target { scroll-margin-top: calc(var(--nav-height, 180px) + 48px); }
.roles-band .container { overflow-x:auto; overflow-y:hidden; position:relative; }
.roles-band .icon-band-list { flex-wrap:nowrap; justify-content:flex-start; gap:18px; scroll-snap-type:x mandatory; }
.roles-band .icon-item { flex:0 0 auto; min-width:160px; }
.roles-band .icon-item .icon-link { scroll-snap-align:start; }
.roles-band .container::-webkit-scrollbar { height:8px; }
.roles-band .container::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.15); border-radius:8px; }
.roles-band .container::-webkit-scrollbar-track { background:transparent; }

/* Arrow buttons */
.roles-band .roles-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(20,30,40,0.65); color:#e6f1ff; border:none; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:5; box-shadow:0 2px 8px rgba(0,0,0,0.25); }
.roles-band .roles-nav:hover { background:rgba(20,30,40,0.85); }
.roles-band .roles-nav i { font-size:16px; }
.roles-band .roles-nav.roles-nav-prev { left:8px; }
.roles-band .roles-nav.roles-nav-next { right:8px; }

@media (max-width: 576px) {
  .roles-band .roles-nav { display:none; }
}

@media (max-width: 576px) {
  .icon-band .icon-band-list { justify-content:center; }
}

/* Homepage: show roles-band in normal flow */
.home .roles-band { position: relative; top: 0; margin-top: 8px; z-index: 1200; }
.home .roles-band + main { padding-top: 0; }

/* When roles-band is placed inside the navbar, keep it in normal flow under menus */
.navbar .roles-band { position: relative; top: 0; margin-top: 10px; margin-bottom: 12px; z-index: 1200; }

/* ============================================================
 * SOURCE: components/bars.css
 * ============================================================ */
/* Combined stacking and layout rules for top bars: navbar, roles-band, quick-nav */

/* Fixed heights per bar (adjust to your real pixels) */
:root {
  --navbar-h: 140px;    /* logo + menus - réduit de 180px à 80px */
  --roles-h: 120px;    /* roles-band height when present - réduit aussi */
  --quick-gap: 4px;    /* space between roles-band and quick-nav - réduit pour moins d'espace */

  /* Total reserved height for fixed top area */
  --nav-height: calc(var(--navbar-h) + var(--roles-h));
}

/* If roles-band not shown, collapse its height */
body:not(.has-roles-band) {
  --roles-h: 0px;
  --nav-height: var(--navbar-h);
}

/* Roles-band fixed below the navbar: top = navbar height + gap */
.roles-band {
  position: fixed;
  top: calc(var(--navbar-h, 140px) + 2px);  /* Réduit l'espace de 8px à 2px */
  left: 0;
  right: 0;
  z-index: 1200; /* above quick-nav */
}

/* Quick-nav positioned under the whole top area (navbar + roles-band) */
.quick-nav {
  position: sticky;
  top: calc(var(--navbar-h, 140px) + var(--roles-h, 120px) + 4px);  /* Réduit l'espace à 4px */
  z-index: 900; /* below roles-band */
  margin: 0;  /* Supprime les marges pour réduire l'espace */
}

/* Assurer que le contenu principal soit en dessous des barres de navigation */
main, .main-content, body > .container:first-of-type {
  padding-top: calc(var(--nav-height) + 20px);
}

/* Si pas de roles-band, utiliser seulement la hauteur navbar */
body:not(.has-roles-band) main,
body:not(.has-roles-band) .main-content,
body:not(.has-roles-band) body > .container:first-of-type {
  padding-top: calc(var(--navbar-h) + 20px);
}

/* Règle spécifique pour la quick-nav quand il n'y a pas de roles-band */
body:not(.has-roles-band) .quick-nav {
  top: calc(var(--navbar-h, 140px) + 4px);  /* Espace réduit aussi */
}

@media (max-width: 768px) {
  .quick-nav {
    top: calc(var(--navbar-h, 140px) + var(--roles-h, 120px) + 4px);  /* Espace réduit aussi sur mobile */
  }
}

/* ============================================================
 * SOURCE: components/quick_nav.css
 * ============================================================ */
/* ============================================
   QUICK NAV - Navigation rapide
   Styles fusionnés pour les deux versions
   ============================================ */

/* Variables CSS pour la navigation rapide */
:root {
    --quick-nav-bg: #ffffff;
    --quick-nav-shadow: 0 2px 4px rgba(0,0,0,0.05);
    --quick-nav-border: #eeeeee;
    --quick-nav-text: #333;
    --quick-nav-text-light: #666;
    --quick-nav-primary: #3498db;
    --quick-nav-hover-bg: #f8f9fa;
    --quick-nav-transition: all 0.3s ease;
    --quick-nav-radius: 6px;
    /* Heights for stacking below fixed bars */
    --nav-height: 260px; /* navbar 140px + roles-band 120px */
    --roles-band-height: 120px; /* estimated height of roles band (home) */
}

/* Homepage: quick-nav sticky too, will appear below roles-band initially (DOM order) */
.home .quick-nav { 
    position: sticky; 
    top: calc(140px + 120px + 4px); 
    z-index: 900; 
}

/* When roles-band is sticky (non-home pages), keep offset under navbar */
.has-roles-band .quick-nav { 
    top: calc(var(--nav-height, 260px) + 4px); 
}

/* ============================================
   VERSION MODERNE (avec glassmorphism)
   ============================================ */

.quick-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 70px;
    z-index: calc(var(--z-sticky) - 1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.quick-nav-wrapper {
    position: relative;
}

.quick-nav-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 100%);
    z-index: 1;
}

.quick-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.quick-nav-item {
    flex: 0 0 auto;
}

.quick-nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: var(--border-radius-xl);
    transition: var(--transition-fast);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.quick-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-normal);
}

.quick-nav-link:hover::before,
.quick-nav-link:focus::before {
    left: 100%;
}

.quick-nav-link:hover,
.quick-nav-link:focus,
.quick-nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-primary);
    text-decoration: none;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quick-nav-link.active {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: white;
    border-color: var(--color-secondary);
}

.quick-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.quick-nav-link:hover .quick-nav-icon,
.quick-nav-link.active .quick-nav-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.quick-nav-link i {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.quick-nav-link:hover i,
.quick-nav-link.active i {
    opacity: 1;
}

.quick-nav-label {
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
}

.quick-nav-link:hover .quick-nav-label,
.quick-nav-link.active .quick-nav-label {
    font-weight: var(--font-weight-semibold);
}

/* Responsive */
@media (max-width: 768px) {
    .quick-nav {
        top: 60px;
        padding: var(--spacing-sm) 0;
    }

    .quick-nav-list {
        gap: var(--spacing-xs);
        overflow-x: auto;
        padding: 0 var(--spacing-md);
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
    }

    .quick-nav-list::-webkit-scrollbar {
        display: none;
    }

    .quick-nav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
        border-radius: var(--border-radius-lg);
        min-width: auto;
    }

    .quick-nav-label {
        display: none;
    }

    .quick-nav-icon {
        width: 20px;
        height: 20px;
    }

    .quick-nav-link i {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 576px) {
    .quick-nav {
        padding: var(--spacing-xs) 0;
    }

    .quick-nav-list {
        gap: 2px;
    }

    .quick-nav-link {
        padding: var(--spacing-xs);
    }
}

/* Animation pour les éléments actifs */
@keyframes quickNavPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quick-nav-link.active {
    animation: quickNavPulse 2s infinite;
}

/* Indicateur de progression */
.quick-nav-progress {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    transition: var(--transition-normal);
}

.quick-nav-link.active .quick-nav-progress {
    width: 100%;
}

/* Effet glassmorphism avancé */
@media (min-width: 769px) {
    .quick-nav {
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    }

    .quick-nav::before {
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 20%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0.3) 80%,
            transparent 100%);
    }
}

/* ============================================
   BURGER MENU (Mobile)
   ============================================ */

/* Bouton burger pour quick-nav (mobile uniquement) */
.quick-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.quick-nav-burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--quick-nav-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.quick-nav-burger.active .quick-nav-burger-bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.quick-nav-burger.active .quick-nav-burger-bar:nth-child(2) {
    opacity: 0;
}

.quick-nav-burger.active .quick-nav-burger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Titre pour le burger menu mobile */
.quick-nav-title {
    display: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--quick-nav-text);
    margin: 0;
}

/* Bloquer le scroll du body quand le menu quick-nav est ouvert */
body.quick-nav-open {
    overflow: hidden;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Animation pour l'apparition de la navigation */
@keyframes quickNavSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

/* Amélioration de l'accessibilité */
.quick-nav a:focus,
.quick-nav-link:focus {
    outline: 2px solid var(--quick-nav-primary);
    outline-offset: 2px;
}

.quick-nav a:focus:not(:focus-visible),
.quick-nav-link:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   THÈME SOMBRE
   ============================================ */

/* Support pour les thèmes sombres */
@media (prefers-color-scheme: dark) {
    :root {
        --quick-nav-bg: #2c3e50;
        --quick-nav-text: #ecf0f1;
        --quick-nav-text-light: #bdc3c7;
        --quick-nav-border: #34495e;
        --quick-nav-hover-bg: #34495e;
    }
}

/* ============================================================
 * SOURCE: components/pagination.css
 * ============================================================ */
/**
 * Pagination Component Styles
 * Utilisé par PaginationHelper::renderHtml() et le bouton "Charger plus"
 */

/* Override Bootstrap pagination pour cohérence BookConnect */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.pagination .page-link:hover {
    background-color: #f0f4ff;
    border-color: #667eea;
    color: #667eea;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bouton "Charger plus" (feed) */
.btn-load-more {
    border-radius: 25px;
    padding: 0.6rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-load-more:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
    }
    .pagination .page-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
}
