@charset "utf-8";
/* =====================================================================
   UNIVERSITÉ DE SAÏDA DR MOULAY TAHAR — DESIGN OPAC (maquette approuvée)
   Source : pmb-design-preview.html — intégration du 2026-11-03
   ---------------------------------------------------------------------
   Couche de présentation 100 % additive :
     - toutes les règles sont limitées à body.usd (classe posée par
       styles/zen/javascript/saida_design.js) ;
     - si le JS est absent / désactivé, PMB s'affiche comme avant.
   Désactivation : supprimer ce fichier + javascript/saida_design.js.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/v4-shims.min.css');

/* Anti-flash : le contenu PMB est masqué le temps que le JS reconstruise la page */
html.usd-pre #container { opacity: 0 !important; }

/* =============================== 1. TOKENS =============================== */
body.usd {
  --usd-navy: #1B2D5B;
  --usd-navy-deep: #0F1E40;
  --usd-navy-dark: #0A1329;
  --usd-navy-light: #2A4380;
  --usd-sky: #2563EB;
  --usd-sky-hover: #1D4ED8;
  --usd-sky-light: #60A5FA;
  --usd-sky-pale: #EFF6FF;
  --usd-gold: #F59E0B;
  --usd-gold-dark: #D97706;
  --usd-emerald: #10B981;
  --usd-rose: #EF4444;
  --usd-bg: #F8FAFC;
  --usd-border: #E2E8F0;
  --usd-border-dark: #CBD5E1;
  --usd-text: #0F172A;
  --usd-muted: #64748B;
  --usd-light: #94A3B8;
  --usd-r-sm: 6px;
  --usd-r-md: 10px;
  --usd-r-lg: 16px;
  --usd-r-full: 9999px;
  --usd-sh-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --usd-sh-md: 0 4px 14px rgba(27,45,91,0.08);
  --usd-sh-lg: 0 12px 30px rgba(27,45,91,0.12);
  --usd-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --usd-font-ar: 'Cairo', 'Noto Sans Arabic', sans-serif;

  font-family: var(--usd-font) !important;
  background: var(--usd-bg) !important;
  color: var(--usd-text) !important;
  line-height: 1.6 !important;
  font-size: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reset limité aux blocs construits par le design */
body.usd .usd-blk,
body.usd .usd-blk *,
body.usd .usd-blk *::before,
body.usd .usd-blk *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.usd .usd-blk { font-family: var(--usd-font); line-height: 1.6; color: var(--usd-text); }
body.usd .usd-blk a { color: var(--usd-sky); text-decoration: none; transition: all .18s ease; }
body.usd .usd-blk a:hover { color: var(--usd-sky-hover); }
body.usd .usd-blk img { max-width: 100%; height: auto; display: block; }
body.usd .usd-blk ul { list-style: none; }
body.usd .usd-blk button { font-family: inherit; }
body.usd .usd-container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 28px; }

/* ============================ 2. TOP BAR ============================ */
body.usd .usd-topbar { background: var(--usd-navy-dark); color: #94A3B8; font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,.08); padding: 7px 0; }
body.usd .usd-topbar .usd-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
body.usd .usd-topbar-info { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
body.usd .usd-topbar-item { display: inline-flex; align-items: center; gap: 6px; color: #CBD5E1; }
body.usd .usd-topbar-item i { color: var(--usd-sky-light); font-size: 12px; }
body.usd .usd-topbar-item a { color: #CBD5E1; }
body.usd .usd-topbar-item a:hover { color: #fff; }
body.usd .usd-topbar-links { display: flex; align-items: center; gap: 14px; }
body.usd .usd-topbar-link { color: #CBD5E1 !important; display: inline-flex; align-items: center; gap: 5px; }
body.usd .usd-topbar-link:hover { color: #fff !important; }
body.usd .usd-topbar-lang { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: var(--usd-r-sm); color: #fff; font-size: 11.5px; font-weight: 600; }

/* ============================ 3. HEADER ============================ */
body.usd .usd-header { background: #fff; border-bottom: 1px solid var(--usd-border); padding: 16px 0; position: relative; }
body.usd .usd-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body.usd .usd-brand { display: flex; align-items: center; gap: 20px; color: inherit !important; }
body.usd .usd-logo-wrap { flex-shrink: 0; width: 82px; height: 82px; border-radius: var(--usd-r-md); display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 4px 12px rgba(27,45,91,.08); border: 1px solid var(--usd-border); padding: 6px; }
body.usd .usd-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
body.usd .usd-header-text { display: flex; flex-direction: column; }
body.usd .usd-republic { font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; color: var(--usd-muted); margin-bottom: 2px; }
body.usd .usd-univ-title { font-size: 21px; font-weight: 800; color: var(--usd-navy); letter-spacing: -.3px; line-height: 1.25; margin: 0; font-family: var(--usd-font); border: 0; background: none; padding: 0; text-transform: none; }
body.usd .usd-univ-ar { font-family: var(--usd-font-ar); font-size: 15px; font-weight: 700; color: var(--usd-navy-light); line-height: 1.3; margin-top: 1px; }
body.usd .usd-buc-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 13.5px; font-weight: 700; color: var(--usd-sky); }
body.usd .usd-header-actions { display: flex; align-items: center; gap: 12px; }
body.usd .usd-status-pill { display: flex; align-items: center; gap: 8px; background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; padding: 7px 14px; border-radius: var(--usd-r-full); font-size: 12.5px; font-weight: 600; }
body.usd .usd-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--usd-emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
body.usd .usd-btn-login { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--usd-navy) 0%, var(--usd-navy-light) 100%); color: #fff !important; padding: 9px 18px; border-radius: var(--usd-r-full); font-size: 13px; font-weight: 600; cursor: pointer; border: none; box-shadow: 0 4px 12px rgba(27,45,91,.18); transition: all .2s ease; }
body.usd .usd-btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27,45,91,.25); background: linear-gradient(135deg, var(--usd-sky-hover) 0%, var(--usd-sky) 100%); color: #fff !important; }
body.usd .usd-btn-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--usd-bg); border: 1px solid var(--usd-border); color: var(--usd-navy) !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: all .18s; }
body.usd .usd-btn-icon:hover { background: var(--usd-sky-pale); color: var(--usd-sky) !important; border-color: var(--usd-sky-light); }
body.usd .usd-cart-count { position: absolute; top: -3px; right: -3px; background: var(--usd-rose); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }

/* ============================ 4. NAVBAR ============================ */
body.usd .usd-navbar { background: linear-gradient(180deg, var(--usd-navy) 0%, var(--usd-navy-deep) 100%); border-bottom: 3px solid var(--usd-sky); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 18px rgba(10,19,41,.15); }
body.usd .usd-nav-container { display: flex; align-items: center; justify-content: space-between; }
body.usd .usd-nav-menu { display: flex; align-items: center; list-style: none; flex-wrap: wrap; }
body.usd .usd-nav-item { position: relative; }
body.usd .usd-nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; height: 50px; line-height: 50px; color: #F1F5F9 !important; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: all .15s ease; border-bottom: 3px solid transparent; margin-bottom: -3px; }
body.usd .usd-nav-link i.fa-angle-down { font-size: 11px; color: #94A3B8; transition: transform .2s ease; }
body.usd .usd-nav-item:hover > .usd-nav-link,
body.usd .usd-nav-item.active > .usd-nav-link { background: rgba(37,99,235,.22); color: #fff !important; border-bottom-color: var(--usd-sky); }
body.usd .usd-nav-item:hover > .usd-nav-link i.fa-angle-down { transform: rotate(180deg); color: #fff; }
body.usd .usd-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 260px; border-radius: var(--usd-r-md); box-shadow: 0 16px 36px rgba(15,23,42,.18); border: 1px solid var(--usd-border); padding: 8px; list-style: none; z-index: 1100; animation: usdFade .18s ease-out; }
body.usd .usd-dropdown.wide { min-width: 320px; }
body.usd .usd-nav-item:hover > .usd-dropdown { display: block; }
@keyframes usdFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
body.usd .usd-dropdown-link { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: var(--usd-r-sm); color: var(--usd-text) !important; font-size: 13px; font-weight: 500; transition: all .15s; }
body.usd .usd-dropdown-link i { color: var(--usd-sky); font-size: 11px; transition: transform .15s; }
body.usd .usd-dropdown-link:hover { background: var(--usd-sky-pale); color: var(--usd-sky-hover) !important; transform: translateX(4px); }
body.usd .usd-nav-portal { margin-left: auto; display: flex; align-items: center; }
body.usd .usd-btn-portal { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--usd-r-full); background: rgba(255,255,255,.12); color: #fff !important; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(255,255,255,.22); transition: all .18s; }
body.usd .usd-btn-portal:hover { background: var(--usd-sky); color: #fff !important; border-color: var(--usd-sky); transform: translateY(-1px); }
body.usd .usd-mobile-btn { display: none; background: transparent; border: none; color: #fff; font-size: 20px; padding: 10px; cursor: pointer; }

/* ========================= 5. HERO + CONSOLE ========================= */
body.usd .usd-hero { position: relative; background: linear-gradient(135deg, rgba(15,30,64,.92) 0%, rgba(27,45,91,.88) 100%), url('images/univ_saida/hero_campus_1.png') center/cover no-repeat; padding: 56px 0 64px; color: #fff; overflow: hidden; border-bottom: 4px solid var(--usd-gold); }
body.usd .usd-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(37,99,235,.25) 0%, transparent 60%); pointer-events: none; }
body.usd .usd-hero-content { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; text-align: center; }
body.usd .usd-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); padding: 6px 16px; border-radius: var(--usd-r-full); font-size: 12.5px; font-weight: 700; color: #E0E7FF; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.2); letter-spacing: .5px; text-transform: uppercase; }
body.usd .usd-hero-eyebrow i { color: var(--usd-gold); }
body.usd .usd-hero-title { font-size: 38px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; color: #fff; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,.3); font-family: var(--usd-font); background: none; border: 0; padding: 0; text-transform: none; }
body.usd .usd-hero-subtitle { font-size: 16px; color: #CBD5E1; max-width: 720px; margin: 0 auto 28px; line-height: 1.5; }
body.usd .usd-hero-subtitle strong { color: #fff; }
/* Pages internes : bandeau de recherche compact (pas de vide inutile) */
body.usd .usd-hero.usd-hero--compact { padding: 22px 0 24px; border-bottom-width: 3px; }
body.usd .usd-hero--compact .usd-hero-content { max-width: 1100px; }
body.usd .usd-hero--compact .usd-console { padding: 16px 18px; }
body.usd .usd-hero--compact .usd-scopes { margin-bottom: 12px; }

body.usd .usd-console { background: #fff; border-radius: var(--usd-r-lg); padding: 24px; box-shadow: 0 16px 45px rgba(0,0,0,.28); color: var(--usd-text); text-align: left; }
body.usd .usd-scopes { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
body.usd .usd-scope-btn { background: var(--usd-bg); border: 1px solid var(--usd-border); color: var(--usd-muted) !important; padding: 7px 16px; border-radius: var(--usd-r-full); font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; line-height: 1.4; }
body.usd .usd-scope-btn:hover { background: var(--usd-sky-pale); color: var(--usd-sky) !important; border-color: var(--usd-sky-light); }
body.usd .usd-scope-btn.active { background: var(--usd-navy); color: #fff !important; border-color: var(--usd-navy); box-shadow: 0 2px 8px rgba(27,45,91,.2); }

/* Le vrai formulaire PMB (déplacé ici) */
body.usd .usd-console form.searchbox { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; display: block !important; width: auto !important; float: none !important; position: static !important; top: auto !important; left: auto !important; height: auto !important; opacity: 1 !important; overflow: visible !important; z-index: auto !important; transition: none !important; }
body.usd .usd-console form.searchbox > .searchbox_title,
body.usd .usd-console form.searchbox > br,
body.usd .usd-console form.searchbox .button_search_help,
body.usd .usd-console form.searchbox .search_radio_button,
body.usd .usd-console form.searchbox .search_advanced_link,
body.usd .usd-console form.searchbox label.visually-hidden { display: none !important; }
body.usd .usd-console .research_inputs { display: none !important; }
body.usd .usd-input-group { display: flex; align-items: stretch; gap: 8px; background: #fff; border: 2px solid var(--usd-border); border-radius: var(--usd-r-md); padding: 4px; transition: border-color .2s, box-shadow .2s; }
body.usd .usd-input-group:focus-within { border-color: var(--usd-sky); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
body.usd .usd-filter-select { background: var(--usd-bg) !important; border: none !important; border-right: 1px solid var(--usd-border) !important; padding: 0 14px !important; font-size: 13px !important; font-weight: 600 !important; color: var(--usd-text) !important; border-radius: var(--usd-r-sm) !important; outline: none; cursor: pointer; height: auto !important; min-height: 48px; font-family: var(--usd-font) !important; width: auto !important; margin: 0 !important; box-shadow: none !important; }
body.usd .usd-input-wrap { flex: 1; position: relative; display: flex; align-items: center; min-width: 0; }
body.usd .usd-input-wrap > i.usd-search-icon { position: absolute; left: 14px; color: var(--usd-light); font-size: 16px; pointer-events: none; z-index: 1; }
body.usd .usd-console input.search_txt,
body.usd .usd-console input.usd-search-input { width: 100% !important; height: 48px !important; border: none !important; outline: none !important; padding: 0 40px 0 42px !important; font-size: 15px !important; font-family: var(--usd-font) !important; color: var(--usd-text) !important; background: transparent !important; box-shadow: none !important; margin: 0 !important; border-radius: 0 !important; max-width: none !important; }
body.usd .usd-console input.search_txt::placeholder { color: var(--usd-light) !important; opacity: 1; }
body.usd .usd-btn-search { background: linear-gradient(135deg, var(--usd-navy) 0%, var(--usd-sky) 100%) !important; color: #fff !important; border: none !important; padding: 0 26px !important; border-radius: var(--usd-r-sm) !important; font-size: 14.5px !important; font-weight: 700 !important; cursor: pointer; display: inline-flex !important; align-items: center; gap: 8px; transition: all .2s; font-family: var(--usd-font) !important; height: auto !important; min-height: 48px; margin: 0 !important; box-shadow: none; white-space: nowrap; }
body.usd .usd-btn-search:hover { background: linear-gradient(135deg, var(--usd-sky) 0%, var(--usd-navy) 100%) !important; transform: scale(1.02); box-shadow: 0 4px 14px rgba(37,99,235,.3); }
body.usd .usd-console-sub { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }
body.usd .usd-popular { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--usd-muted); }
body.usd .usd-chip { background: var(--usd-bg); color: var(--usd-navy); padding: 3px 10px; border-radius: var(--usd-r-full); font-size: 11.5px; font-weight: 500; border: 1px solid var(--usd-border); transition: all .15s; cursor: pointer; }
body.usd .usd-chip:hover { background: var(--usd-sky-pale); color: var(--usd-sky); border-color: var(--usd-sky-light); }
body.usd .usd-adv-toggle { color: var(--usd-sky); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: none; font-size: 13px; }
body.usd .usd-adv-toggle:hover { text-decoration: underline; }
body.usd .usd-adv-drawer { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--usd-border); animation: usdFade .2s ease-out; }
body.usd .usd-adv-drawer.open { display: block; }
body.usd .usd-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
body.usd .usd-blk a.usd-adv-card { display: flex !important; visibility: visible !important; height: auto !important; pointer-events: auto !important; align-items: flex-start; gap: 10px; padding: 12px 14px !important; border: 1px solid var(--usd-border); border-radius: var(--usd-r-sm); background: var(--usd-bg); color: var(--usd-text); font-size: 13px; line-height: 1.4; }
body.usd .usd-blk a.usd-adv-card:hover { border-color: var(--usd-sky); background: var(--usd-sky-pale); color: var(--usd-text); }
body.usd .usd-adv-card i { color: var(--usd-sky); font-size: 15px; margin-top: 2px; }
body.usd .usd-adv-card strong { display: block; color: var(--usd-navy); font-size: 13px; }
body.usd .usd-adv-card span { color: var(--usd-muted); font-size: 12px; }

/* ============================ 6. METRICS ============================ */
body.usd .usd-metrics { background: #fff; border-bottom: 1px solid var(--usd-border); padding: 24px 0; }
body.usd .usd-metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
body.usd .usd-metric { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: var(--usd-r-md); background: var(--usd-bg); border: 1px solid var(--usd-border); transition: transform .2s, box-shadow .2s; }
body.usd .usd-metric:hover { transform: translateY(-2px); box-shadow: var(--usd-sh-md); background: #fff; }
body.usd .usd-metric-icon { width: 52px; height: 52px; border-radius: var(--usd-r-md); background: var(--usd-sky-pale); color: var(--usd-sky); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
body.usd .usd-metric.gold .usd-metric-icon { background: #FEF3C7; color: var(--usd-gold-dark); }
body.usd .usd-metric.emerald .usd-metric-icon { background: #ECFDF5; color: var(--usd-emerald); }
body.usd .usd-metric.purple .usd-metric-icon { background: #F3E8FF; color: #9333EA; }
body.usd .usd-metric-number { font-size: 24px; font-weight: 800; color: var(--usd-navy); line-height: 1.1; }
body.usd .usd-metric-label { font-size: 12.5px; font-weight: 500; color: var(--usd-muted); margin-top: 3px; }

/* ============================ 7. SECTIONS ============================ */
body.usd .usd-section { padding: 50px 0; }
body.usd .usd-section.white { background: #fff; }
body.usd .usd-section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 2px solid var(--usd-border); padding-bottom: 14px; position: relative; }
body.usd .usd-section-header::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: var(--usd-sky); }
body.usd .usd-section-title-wrap { display: flex; flex-direction: column; }
body.usd .usd-eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--usd-sky); margin-bottom: 4px; }
body.usd .usd-section-title { font-size: 24px; font-weight: 800; color: var(--usd-navy); letter-spacing: -.2px; margin: 0; font-family: var(--usd-font); background: none; border: 0; padding: 0; text-transform: none; }
body.usd .usd-view-all { font-size: 13.5px; font-weight: 700; color: var(--usd-sky); display: inline-flex; align-items: center; gap: 6px; }
body.usd .usd-view-all:hover { transform: translateX(3px); }

/* Facultés */
body.usd .usd-faculties { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
body.usd a.usd-faculty { background: #fff; border: 1px solid var(--usd-border); border-radius: var(--usd-r-md); padding: 22px 20px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: all .22s ease; color: inherit !important; }
body.usd a.usd-faculty::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--fac-accent, var(--usd-sky)); transition: height .2s; }
body.usd a.usd-faculty:hover { transform: translateY(-4px); box-shadow: var(--usd-sh-lg); border-color: rgba(37,99,235,.3); }
body.usd a.usd-faculty:hover::before { height: 5px; }
body.usd .usd-fac-icon { width: 48px; height: 48px; border-radius: var(--usd-r-sm); background: var(--fac-bg, var(--usd-sky-pale)); color: var(--fac-accent, var(--usd-sky)); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
body.usd .usd-fac-code { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--fac-accent, var(--usd-sky)); margin-bottom: 4px; }
body.usd .usd-fac-name { font-size: 15.5px; font-weight: 700; color: var(--usd-navy); line-height: 1.3; margin-bottom: 8px; font-family: var(--usd-font); background: none; border: 0; padding: 0; text-transform: none; }
body.usd .usd-fac-desc { font-size: 12px; color: var(--usd-muted); line-height: 1.5; margin-bottom: 14px; flex-grow: 1; }
body.usd .usd-fac-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--usd-border); padding-top: 10px; font-size: 11.5px; color: var(--usd-muted); }
body.usd .usd-fac-meta strong { color: var(--usd-navy); }

/* Nouvelles acquisitions (notices réelles PMB) */
body.usd .usd-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
body.usd a.usd-tab { background: #fff; border: 1px solid var(--usd-border); color: var(--usd-muted) !important; padding: 8px 18px; border-radius: var(--usd-r-full); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
body.usd a.usd-tab:hover { background: var(--usd-sky-pale); color: var(--usd-sky) !important; }
body.usd a.usd-tab.active { background: var(--usd-navy); color: #fff !important; border-color: var(--usd-navy); }
body.usd .usd-books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
body.usd a.usd-book { background: #fff; border: 1px solid var(--usd-border); border-radius: var(--usd-r-md); overflow: hidden; display: flex; flex-direction: column; transition: all .22s ease; box-shadow: var(--usd-sh-sm); color: inherit !important; }
body.usd a.usd-book:hover { transform: translateY(-4px); box-shadow: var(--usd-sh-lg); border-color: var(--usd-sky-light); }
body.usd .usd-book-cover { height: 170px; background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%); display: flex; align-items: center; justify-content: center; position: relative; padding: 16px; color: #fff; text-align: center; overflow: hidden; }
body.usd .usd-book-cover::after { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 8px; background: rgba(0,0,0,.25); z-index: 3; }
body.usd .usd-book-cover-title { font-size: 14px; font-weight: 700; line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,.5); z-index: 1; }
body.usd .usd-book-cover img.usd-book-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #F1F5F9; z-index: 2; padding: 10px; }
body.usd .usd-book-badge { position: absolute; top: 10px; right: 10px; background: rgba(37,99,235,.85); backdrop-filter: blur(4px); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--usd-r-sm); text-transform: uppercase; z-index: 4; }
body.usd .usd-book-info { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
body.usd .usd-book-title { font-size: 14.5px; font-weight: 700; color: var(--usd-navy); line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--usd-font); background: none; border: 0; padding: 0; text-transform: none; }
body.usd .usd-book-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--usd-border); font-size: 11.5px; }
body.usd .usd-book-status { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--usd-emerald); }
body.usd .usd-book-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--usd-emerald); }
body.usd .usd-book-more { color: var(--usd-sky); font-weight: 600; }

/* ---- Nouvelles acquisitions : cartes centrées, échelle ajustée ---- */
body.usd .usd-books { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 24px; }
body.usd a.usd-book { flex: 0 1 280px; max-width: 300px; min-width: 0; }
body.usd .usd-book-cover { height: 230px; padding: 18px; }
body.usd .usd-book-cover.has-thumb { background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #EEF2F7 70%, #E2E8F0 100%) !important; }
body.usd .usd-book-cover.has-thumb::after { display: none; }
body.usd .usd-book-cover.has-thumb .usd-book-cover-title { display: none; }
body.usd .usd-book-cover img.usd-book-thumb { position: relative; inset: auto; width: auto !important; height: 180px !important; max-width: 72%; max-height: 190px; object-fit: contain; background: none; padding: 0; border-radius: 3px 6px 6px 3px; box-shadow: -3px 0 0 rgba(0,0,0,.18) inset, 0 10px 22px rgba(15,23,42,.28), 0 2px 6px rgba(15,23,42,.15); transition: transform .25s ease; z-index: 2; }
body.usd a.usd-book:hover .usd-book-cover img.usd-book-thumb { transform: translateY(-3px) scale(1.03); }
body.usd .usd-book-info { padding: 14px 16px 16px; }
body.usd .usd-book-title { font-size: 14px; min-height: 2.7em; text-align: center; }
body.usd .usd-book-meta { gap: 8px; }
@media (max-width: 640px) {
  body.usd a.usd-book { flex: 1 1 100%; max-width: 360px; }
  body.usd .usd-book-cover { height: 210px; }
  body.usd .usd-book-cover img.usd-book-thumb { height: 165px !important; }
}

/* Plateformes */
body.usd .usd-platforms-section { background: linear-gradient(180deg, #F1F5F9 0%, #fff 100%); border-top: 1px solid var(--usd-border); border-bottom: 1px solid var(--usd-border); }
body.usd .usd-platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.usd a.usd-platform { background: #fff; border: 1px solid var(--usd-border); border-radius: var(--usd-r-md); padding: 22px; display: flex; align-items: flex-start; gap: 16px; transition: all .2s ease; color: inherit !important; }
body.usd a.usd-platform:hover { transform: translateY(-3px); box-shadow: var(--usd-sh-md); border-color: var(--usd-sky-light); }
body.usd .usd-platform-icon { width: 48px; height: 48px; border-radius: var(--usd-r-md); background: var(--usd-sky-pale); color: var(--usd-sky); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
body.usd .usd-platform-title { font-size: 15.5px; font-weight: 700; color: var(--usd-navy); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; font-family: var(--usd-font); background: none; border: 0; padding: 0; text-transform: none; }
body.usd .usd-platform-title i { font-size: 11px; color: var(--usd-sky-light); }
body.usd .usd-platform-desc { font-size: 12.5px; color: var(--usd-muted); line-height: 1.45; }

/* Actualités / Agenda / Infos */
body.usd .usd-news-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 24px; align-items: start; }
body.usd a.usd-news-card { background: #fff; border: 1px solid var(--usd-border); border-radius: var(--usd-r-md); padding: 24px; margin-bottom: 16px; display: flex; gap: 20px; align-items: center; transition: all .2s; color: inherit !important; }
body.usd a.usd-news-card:hover { box-shadow: var(--usd-sh-md); border-color: var(--usd-sky-light); }
body.usd .usd-news-date { width: 60px; height: 60px; border-radius: var(--usd-r-md); background: var(--usd-sky-pale); color: var(--usd-sky); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; border: 1px solid rgba(37,99,235,.15); }
body.usd .usd-news-card:nth-child(even) .usd-news-date { background: #ECFDF5; color: #059669; }
body.usd .usd-news-day { font-size: 20px; line-height: 1; }
body.usd .usd-news-month { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
body.usd .usd-news-content h4 { font-size: 15.5px; font-weight: 700; color: var(--usd-navy); margin-bottom: 6px; font-family: var(--usd-font); background: none; border: 0; padding: 0; text-transform: none; }
body.usd .usd-news-content p { font-size: 13px; color: var(--usd-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

body.usd .usd-cal-card { background: #fff; border: 1px solid var(--usd-border); border-radius: var(--usd-r-md); padding: 22px; box-shadow: var(--usd-sh-sm); display: flex; flex-direction: column; transition: all .2s; }
body.usd .usd-cal-card:hover { box-shadow: var(--usd-sh-md); border-color: var(--usd-sky-light); }
body.usd .usd-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--usd-sky); }
body.usd .usd-cal-title { display: flex; align-items: center; gap: 8px; color: var(--usd-navy); font-size: 15px; font-weight: 700; }
body.usd .usd-cal-title i { color: var(--usd-sky); }
body.usd .usd-cal-event { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--usd-border); display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--usd-muted); line-height: 1.45; }
body.usd .usd-cal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--usd-sky); margin-top: 4px; flex-shrink: 0; }

/* Calendrier Dojo réel de PMB, habillé comme la maquette */
body.usd .usd-cal-card .cms_module_agenda { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; width: 100% !important; }
body.usd .usd-cal-card .cms_module_agenda > h3 { display: none !important; }
body.usd .usd-cal-card .dijitCalendar { width: 100% !important; border: 0 !important; background: none !important; box-shadow: none !important; font-family: var(--usd-font) !important; padding: 0 !important; margin: 0 !important; }
body.usd .usd-cal-card .dijitCalendarMonthContainer { display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px; background: none !important; border: 0 !important; padding: 0 0 10px !important; height: auto !important; }
body.usd .usd-cal-card .dijitCalendarMonthLabel,
body.usd .usd-cal-card .dijitCalendarMonthContainer .dijitInline { font-size: 12.5px !important; font-weight: 700 !important; color: var(--usd-navy) !important; text-transform: capitalize !important; }
body.usd .usd-cal-card .dijitCalendarArrow { width: 26px !important; height: 26px !important; border-radius: var(--usd-r-sm) !important; background: var(--usd-bg) !important; border: 1px solid var(--usd-border) !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; cursor: pointer; position: static !important; float: none !important; }
body.usd .usd-cal-card .dijitCalendarArrow:hover { background: var(--usd-sky) !important; border-color: var(--usd-sky) !important; }
body.usd .usd-cal-card .dijitCalendarArrow img { display: none !important; }
body.usd .usd-cal-card .dijitCalendarArrow .dijitA11ySideArrow { display: none !important; }
body.usd .usd-cal-card .dijitCalendarDecrementArrow::before { content: "\f053"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: var(--usd-navy); }
body.usd .usd-cal-card .dijitCalendarIncrementArrow::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: var(--usd-navy); }
body.usd .usd-cal-card .dijitCalendarDecrementArrow { order: 0; }
body.usd .usd-cal-card .dijitCalendarMonthContainer > .dijitInline { order: 1; min-width: 105px; text-align: center; }
body.usd .usd-cal-card .dijitCalendarIncrementArrow { order: 2; }
body.usd .usd-cal-card .dijitCalendarArrow:hover::before { color: #fff; }
body.usd .usd-cal-card .dijitCalendar table { width: 100% !important; border-collapse: separate !important; border-spacing: 3px !important; background: none !important; }
body.usd .usd-cal-card .dijitCalendar thead th,
body.usd .usd-cal-card .dijitCalendarDayLabelTemplate { background: var(--usd-bg) !important; color: var(--usd-muted) !important; font-size: 11px !important; font-weight: 700 !important; padding: 5px 0 !important; border: 0 !important; text-align: center !important; }
body.usd .usd-cal-card .dijitCalendar td { padding: 0 !important; border: 0 !important; background: none !important; text-align: center !important; }
body.usd .usd-cal-card .dijitCalendarDateLabel { height: 30px !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 12px !important; color: var(--usd-text) !important; border-radius: var(--usd-r-sm) !important; border: 0 !important; background: none !important; cursor: pointer; padding: 0 !important; }
body.usd .usd-cal-card .dijitCalendarDateLabel:hover { background: var(--usd-sky-pale) !important; color: var(--usd-sky) !important; }
body.usd .usd-cal-card .dijitCalendarPreviousMonth .dijitCalendarDateLabel,
body.usd .usd-cal-card .dijitCalendarNextMonth .dijitCalendarDateLabel { color: #CBD5E1 !important; }
body.usd .usd-cal-card .dijitCalendarCurrentDate .dijitCalendarDateLabel { background: #EFF6FF !important; color: var(--usd-sky) !important; font-weight: 800 !important; outline: 1.5px solid var(--usd-sky); }
body.usd .usd-cal-card .dijitCalendarSelectedDate .dijitCalendarDateLabel { background: var(--usd-navy) !important; color: #fff !important; }
body.usd .usd-cal-card td[class*="cms_module_agenda_event"] .dijitCalendarDateLabel,
body.usd .usd-cal-card td.cms_module_agenda_event .dijitCalendarDateLabel { background: var(--usd-sky) !important; color: #fff !important; font-weight: 700 !important; }
body.usd .usd-cal-card .dijitCalendarYearContainer { display: none !important; }
body.usd .usd-cal-card .dijitCalendar tbody td,
body.usd .usd-cal-card .dijitCalendar tbody tr { height: 30px !important; line-height: 30px !important; }
body.usd .usd-cal-card .dijitCalendar thead th { height: auto !important; line-height: 1.4 !important; }
body.usd .usd-cal-card .dijitCalendarDayLabel { display: block; font-size: 11px !important; line-height: 1.4 !important; }
body.usd .usd-cal-card .cms_module_agenda ul,
body.usd .usd-cal-card .cms_module_agenda .agenda_events { font-size: 12px; color: var(--usd-muted); }

/* ---- Agenda : ajustement d'échelle (prioritaire sur les règles #cms_module_agenda_85 de l'ancien thème) ---- */
body.usd #usd-actualites .usd-cal-card { padding: 20px 20px 18px; }
body.usd #usd-actualites .usd-cal-header { margin-bottom: 10px; padding-bottom: 10px; }
body.usd #usd-actualites .usd-cal-card .cms_module_agenda { margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; min-height: 0 !important; width: 100% !important; max-width: 100% !important; overflow: visible !important; float: none !important; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarContainer,
body.usd #usd-actualites .usd-cal-card .dijitCalendar { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
/* Barre du mois : flèches aux extrémités, mois + année au centre */
body.usd #usd-actualites .usd-cal-card .dijitCalendarMonthContainer { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px; height: auto !important; padding: 0 0 8px !important; margin: 0 !important; border: 0 !important; background: none !important; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarArrow { width: 28px !important; height: 28px !important; flex: 0 0 28px; margin: 0 !important; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarDecrementArrow { order: 0; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarMonthContainer > .dijitDropDownButton { order: 1; flex: 1 1 auto; display: flex !important; justify-content: center; align-items: center; margin: 0 !important; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarIncrementArrow { order: 2; }
body.usd #usd-actualites .usd-cal-card .dijitDropDownButton .dijitButtonNode { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; display: inline-flex !important; align-items: center; gap: 6px; }
body.usd #usd-actualites .usd-cal-card .dijitDropDownButton .dijitButtonContents { display: inline-flex !important; align-items: center; gap: 6px; cursor: pointer; }
body.usd #usd-actualites .usd-cal-card .dijitDropDownButton .dijitButtonText { display: inline-flex !important; align-items: baseline; gap: 6px; white-space: nowrap !important; padding: 0 !important; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarCurrentMonthLabel { display: inline !important; }
body.usd #usd-actualites .usd-cal-card .dijitSpacer { height: 0 !important; overflow: hidden !important; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarCurrentMonthLabel { font-size: 14px !important; font-weight: 700 !important; color: var(--usd-navy) !important; text-transform: capitalize !important; line-height: 1.2 !important; position: static !important; }
body.usd #usd-actualites .usd-cal-card .usd-cal-year { font-size: 14px; font-weight: 700; color: var(--usd-sky); }
body.usd #usd-actualites .usd-cal-card .dijitArrowButtonInner,
body.usd #usd-actualites .usd-cal-card .dijitArrowButtonChar,
body.usd #usd-actualites .usd-cal-card .dijitIcon { display: none !important; }
/* Grille des jours */
body.usd #usd-actualites .usd-cal-card table { width: 100% !important; table-layout: fixed !important; border-collapse: separate !important; border-spacing: 4px !important; margin: 0 -4px !important; width: calc(100% + 8px) !important; }
body.usd #usd-actualites .usd-cal-card thead th { height: auto !important; padding: 6px 0 !important; border: 0 !important; background: var(--usd-bg) !important; border-radius: var(--usd-r-sm); font-size: 11px !important; line-height: 1.2 !important; font-weight: 700 !important; color: var(--usd-muted) !important; text-transform: uppercase; }
body.usd #usd-actualites .usd-cal-card tbody tr { height: auto !important; }
body.usd #usd-actualites .usd-cal-card tbody td { height: 34px !important; padding: 0 !important; border: 0 !important; background: none !important; line-height: 1 !important; font-size: 12.5px !important; font-weight: 500 !important; letter-spacing: 0 !important; vertical-align: middle !important; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarDateLabel { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; height: 34px !important; padding: 0 !important; margin: 0 !important; border-radius: 8px !important; font-size: 12.5px !important; line-height: 1 !important; color: var(--usd-text) !important; background: none !important; border: 0 !important; transition: background .15s, color .15s; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarDateTemplate:hover .dijitCalendarDateLabel { background: var(--usd-sky-pale) !important; color: var(--usd-sky) !important; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarPreviousMonth .dijitCalendarDateLabel,
body.usd #usd-actualites .usd-cal-card .dijitCalendarNextMonth .dijitCalendarDateLabel { color: #CBD5E1 !important; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarSelectedDate .dijitCalendarDateLabel { background: var(--usd-bg) !important; color: var(--usd-navy) !important; box-shadow: inset 0 0 0 1px var(--usd-border-dark); }
body.usd #usd-actualites .usd-cal-card .dijitCalendarCurrentDate .dijitCalendarDateLabel { background: var(--usd-sky-pale) !important; color: var(--usd-sky) !important; font-weight: 800 !important; box-shadow: inset 0 0 0 1.5px var(--usd-sky); outline: 0 !important; }
body.usd #usd-actualites .usd-cal-card td[class*="cms_module_agenda_event"] .dijitCalendarDateLabel,
body.usd #usd-actualites .usd-cal-card td[class*="event"] .dijitCalendarDateLabel { background: var(--usd-sky) !important; color: #fff !important; font-weight: 700 !important; box-shadow: none; }
body.usd #usd-actualites .usd-cal-card .dijitCalendarYearContainer { display: none !important; }
body.usd #usd-actualites .usd-cal-event { margin-top: 12px; padding-top: 10px; }
@media (max-width: 640px) {
  body.usd #usd-actualites .usd-cal-card { padding: 16px; }
  body.usd #usd-actualites .usd-cal-card tbody td,
  body.usd #usd-actualites .usd-cal-card .dijitCalendarDateLabel { height: 38px !important; }
}

body.usd .usd-info-box { background: #fff; border: 1px solid var(--usd-border); border-radius: var(--usd-r-md); padding: 24px; }
body.usd .usd-info-header { font-size: 16px; font-weight: 700; color: var(--usd-navy); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--usd-sky); display: flex; align-items: center; gap: 8px; font-family: var(--usd-font); background: none; text-transform: none; }
body.usd .usd-info-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 13px; line-height: 1.5; }
body.usd .usd-info-row:last-child { margin-bottom: 0; }
body.usd .usd-info-row i { color: var(--usd-sky); font-size: 15px; margin-top: 2px; flex-shrink: 0; }
body.usd .usd-info-row strong { color: var(--usd-navy); }

/* ============================ 8. FOOTER ============================ */
body.usd .usd-footer { background: var(--usd-navy-dark); color: #94A3B8; border-top: 4px solid var(--usd-sky); margin-top: auto; padding-top: 50px; }
body.usd .usd-footer-grid { display: grid; grid-template-columns: 1.4fr .95fr 1fr 1fr .95fr; gap: 28px; padding-bottom: 40px; }
body.usd .usd-footer-col { display: flex; flex-direction: column; }
body.usd .usd-blk img.usd-footer-logo { height: 48px; width: auto; max-width: 100%; margin-bottom: 14px; filter: brightness(0) invert(1); align-self: flex-start; }
body.usd .usd-footer-name { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
body.usd .usd-footer-ar { font-family: var(--usd-font-ar); color: #94A3B8; font-size: 13.5px; margin-bottom: 12px; direction: rtl; text-align: left; }
body.usd .usd-footer-desc { font-size: 12.5px; line-height: 1.6; color: #94A3B8; margin-bottom: 16px; }
body.usd .usd-footer-contact { display: flex; align-items: flex-start; gap: 10px; color: #CBD5E1; font-size: 12.5px; margin-bottom: 8px; line-height: 1.45; }
body.usd .usd-footer-contact i { color: var(--usd-sky-light); font-size: 12px; margin-top: 3px; flex-shrink: 0; }
body.usd .usd-footer-social { display: flex; gap: 8px; margin-top: 14px; }
body.usd a.usd-social { width: 36px; height: 36px; border-radius: var(--usd-r-sm); background: rgba(255,255,255,.08); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); transition: all .2s; }
body.usd a.usd-social:hover { background: var(--usd-sky); border-color: var(--usd-sky); transform: translateY(-2px); }
body.usd .usd-footer-title { color: #fff; font-size: 14.5px; font-weight: 700; margin-bottom: 16px; position: relative; padding-bottom: 8px; font-family: var(--usd-font); background: none; border: 0; text-transform: none; }
body.usd .usd-footer-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 26px; height: 2px; background: var(--usd-sky); }
body.usd .usd-footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
body.usd .usd-footer-links li a { color: #94A3B8 !important; font-size: 12.5px; display: inline-flex !important; visibility: visible !important; height: auto !important; pointer-events: auto !important; align-items: center; gap: 7px; line-height: 1.4; transition: all .15s; }
body.usd .usd-footer-links li a i { color: var(--usd-sky); font-size: 10px; }
body.usd .usd-footer-links li a:hover { color: var(--usd-sky-light) !important; transform: translateX(4px); }
body.usd .usd-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 12.5px; color: #64748B; }
body.usd .usd-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
body.usd .usd-footer-bottom-inner strong { color: #CBD5E1; }
body.usd .usd-legal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.usd .usd-legal a { color: #94A3B8 !important; font-size: 12px; }
body.usd .usd-legal a:hover { color: #fff !important; }
body.usd .usd-legal .sep { color: rgba(255,255,255,.2); }
body.usd .usd-a11y { display: inline-flex; gap: 4px; align-items: center; }
body.usd .usd-a11y button { background: rgba(255,255,255,.08); color: #CBD5E1; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; font-size: 11px; padding: 1px 6px; cursor: pointer; }
body.usd .usd-a11y button:hover { background: var(--usd-sky); color: #fff; }

/* ============================ 9. LOGIN MODAL ============================ */
body.usd .usd-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(10,19,41,.65); backdrop-filter: blur(4px); z-index: 3000; align-items: center; justify-content: center; padding: 20px; }
body.usd .usd-modal-backdrop.open { display: flex; animation: usdModal .2s ease-out; }
@keyframes usdModal { from { opacity: 0; } to { opacity: 1; } }
body.usd .usd-modal { background: #fff; border-radius: var(--usd-r-lg); width: 100%; max-width: 440px; box-shadow: 0 24px 50px rgba(0,0,0,.3); overflow: hidden; border: 1px solid var(--usd-border); position: relative; }
body.usd .usd-modal-header { background: linear-gradient(135deg, var(--usd-navy) 0%, var(--usd-navy-light) 100%); color: #fff; padding: 22px 24px; position: relative; }
body.usd .usd-modal-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: #fff; font-family: var(--usd-font); background: none; border: 0; padding: 0 40px 0 0; text-transform: none; }
body.usd .usd-modal-header p { font-size: 12.5px; color: #CBD5E1; }
body.usd .usd-modal-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.15); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; }
body.usd .usd-modal-close:hover { background: rgba(255,255,255,.3); }
body.usd .usd-modal-body { padding: 24px; }
body.usd .usd-modal-body form { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
body.usd .usd-modal-body form > label,
body.usd .usd-modal-body form > br { display: none !important; }
body.usd .usd-form-group { margin-bottom: 16px; }
body.usd .usd-form-group > label { display: block !important; font-size: 12.5px; font-weight: 600; color: var(--usd-navy); margin-bottom: 6px; }
body.usd .usd-form-wrap { position: relative; display: flex; align-items: center; }
body.usd .usd-form-wrap > i.usd-fi { position: absolute; left: 12px; color: var(--usd-light); font-size: 14px; z-index: 1; pointer-events: none; }
body.usd .usd-modal-body .myform-password-text-visually { display: contents !important; }
body.usd .usd-modal-body input.login,
body.usd .usd-modal-body input.password { width: 100% !important; height: 42px !important; border: 1px solid var(--usd-border) !important; border-radius: var(--usd-r-sm) !important; padding: 0 40px 0 36px !important; font-size: 14px !important; outline: none; font-family: var(--usd-font) !important; transition: border-color .18s; background: #fff !important; color: var(--usd-text) !important; margin: 0 !important; box-shadow: none !important; max-width: none !important; }
body.usd .usd-modal-body input.login:focus,
body.usd .usd-modal-body input.password:focus { border-color: var(--usd-sky) !important; box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important; }
body.usd .usd-modal-body #myform-password-visually { position: absolute !important; right: 8px; top: 50%; transform: translateY(-50%); background: none !important; border: 0 !important; color: var(--usd-light) !important; cursor: pointer; width: 28px; height: 28px; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
body.usd .usd-form-options { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 20px; font-size: 12.5px; }
body.usd .usd-form-options a { font-size: 12px; color: var(--usd-sky) !important; display: inline !important; }
body.usd .usd-btn-submit { width: 100% !important; height: 44px !important; background: var(--usd-sky) !important; color: #fff !important; border: none !important; border-radius: var(--usd-r-sm) !important; font-size: 14px !important; font-weight: 700 !important; cursor: pointer; display: flex !important; align-items: center; justify-content: center; gap: 8px; transition: background .18s; font-family: var(--usd-font) !important; margin: 0 !important; }
body.usd .usd-btn-submit:hover { background: var(--usd-sky-hover) !important; }
body.usd .usd-modal-body .usd-account-box { font-size: 13.5px; color: var(--usd-text); }
body.usd .usd-modal-body .usd-account-box a { color: var(--usd-sky); }

/* ===================== 10. PMB : CHROME ANCIEN MASQUÉ ===================== */
body.usd #intro,
body.usd #main_header,
body.usd #cms_module_section_173,
body.usd #footer,
body.usd #bandeau_2,
body.usd #cms_module_search_22,
body.usd #connexion,
body.usd #accueil,
body.usd #adresse,
body.usd #cms_module_htmlcode_141,
body.usd #cms_module_articleslist_130,
body.usd #home_on_top { display: none !important; }
body.usd #resume_panier { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
body.usd.usd-home #cms_module_articleslist_38,
body.usd.usd-home #cms_module_articleslist_21,
body.usd.usd-home #cms_module_recordslist_23,
body.usd.usd-home #cms_module_htmlcode_170 { display: none !important; }

/* ===================== 11. PMB : PAGES DE CONTENU ===================== */
body.usd #container { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; width: 100% !important; max-width: 1440px !important; margin: 24px auto 40px !important; padding: 0 28px !important; min-height: 0 !important; flex: 0 0 auto !important; background: none !important; align-items: start !important; }
body.usd.usd-has-side #container { grid-template-columns: minmax(0, 1fr) 300px !important; }
body.usd #main { display: contents !important; }
body.usd #main_hors_footer { order: 1 !important; grid-column: 1 !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 24px 28px !important; background: #fff !important; border: 1px solid var(--usd-border) !important; border-radius: var(--usd-r-md) !important; box-shadow: var(--usd-sh-sm) !important; min-width: 0 !important; float: none !important; }
body.usd #bandeau { order: 2 !important; grid-column: 2 !important; display: none !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; }
body.usd.usd-has-side #bandeau { display: flex !important; flex-direction: column !important; gap: 16px !important; }
body.usd.usd-has-side #bandeau > * { background: #fff; border: 1px solid var(--usd-border); border-radius: var(--usd-r-md); padding: 16px; box-shadow: var(--usd-sh-sm); }
body.usd.usd-has-side #bandeau > *:empty { display: none !important; }
body.usd.usd-home #container { margin: 0 auto !important; gap: 0 !important; }
/* Accueil : le conteneur PMB résiduel ne doit jamais créer de carte vide / d'espace */
body.usd.usd-home #main_hors_footer { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
body.usd.usd-home #main_hors_footer > * { margin-top: 0; }
body.usd.usd-home.usd-empty #container { display: none !important; }

/* Titres et éléments PMB courants dans le contenu */
body.usd #main_hors_footer h3.searchResult-title,
body.usd #main_hors_footer .searchResult-title { font-family: var(--usd-font) !important; color: var(--usd-navy) !important; font-weight: 800 !important; font-size: 20px !important; background: none !important; border: 0 !important; border-bottom: 2px solid var(--usd-border) !important; padding: 0 0 10px !important; margin: 0 0 14px !important; text-transform: none !important; letter-spacing: -.2px; }
body.usd #main_hors_footer a { color: var(--usd-sky); }
body.usd #main_hors_footer a:hover { color: var(--usd-sky-hover); }
body.usd #main_hors_footer input.bouton,
body.usd #main_hors_footer button.bouton,
body.usd #main_hors_footer input[type="submit"],
body.usd #main_hors_footer input[type="button"] { background: var(--usd-navy) !important; color: #fff !important; border: 0 !important; border-radius: var(--usd-r-sm) !important; padding: 7px 14px !important; font-family: var(--usd-font) !important; font-weight: 600 !important; cursor: pointer; }
body.usd #main_hors_footer input.bouton:hover,
body.usd #main_hors_footer input[type="submit"]:hover { background: var(--usd-sky) !important; }
body.usd #main_hors_footer input[type="text"],
body.usd #main_hors_footer select { border: 1px solid var(--usd-border); border-radius: var(--usd-r-sm); padding: 6px 10px; font-family: var(--usd-font); }
body.usd #cms_module_htmlcode_170 #boutonRetour { margin: 0 0 12px !important; padding: 0 !important; }

/* ============================ 12. RESPONSIVE ============================ */
@media (max-width: 1200px) {
  body.usd .usd-footer-grid { grid-template-columns: repeat(3, 1fr); }
  body.usd .usd-footer-col.brand { grid-column: 1 / -1; }
  body.usd .usd-faculties,
  body.usd .usd-books,
  body.usd .usd-platforms,
  body.usd .usd-metrics-grid,
  body.usd .usd-adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  body.usd.usd-has-side #container { grid-template-columns: minmax(0, 1fr) !important; }
  body.usd.usd-has-side #bandeau { grid-column: 1 !important; }
}
@media (max-width: 900px) {
  body.usd .usd-topbar { display: none; }
  body.usd .usd-status-pill { display: none; }
  body.usd .usd-nav-container { flex-wrap: wrap; }
  body.usd .usd-nav-menu { display: none; }
  body.usd .usd-nav-menu.mobile-open { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; background: var(--usd-navy-deep); padding: 12px 0; }
  body.usd .usd-nav-item { width: 100%; }
  body.usd .usd-nav-link { width: 100%; height: 42px; line-height: 42px; }
  body.usd .usd-dropdown { position: static; box-shadow: none; border-radius: 0; background: rgba(255,255,255,.05); border: 0; display: block; animation: none; }
  body.usd .usd-dropdown-link { color: #CBD5E1 !important; }
  body.usd .usd-dropdown-link:hover { color: var(--usd-sky-hover) !important; }
  body.usd .usd-mobile-btn { display: block; }
  body.usd .usd-news-grid { grid-template-columns: 1fr; }
  body.usd .usd-footer-grid { grid-template-columns: repeat(2, 1fr); }
  body.usd .usd-hero-title { font-size: 28px; }
  body.usd .usd-hero-subtitle { font-size: 14px; }
}
@media (max-width: 640px) {
  body.usd .usd-container { padding: 0 16px; }
  body.usd #container { padding: 0 12px !important; margin-top: 16px !important; }
  body.usd #main_hors_footer { padding: 16px !important; }
  body.usd .usd-brand { gap: 12px; }
  body.usd .usd-logo-wrap { width: 60px; height: 60px; }
  body.usd .usd-univ-title { font-size: 16px; }
  body.usd .usd-univ-ar { font-size: 13px; }
  body.usd .usd-republic { font-size: 10px; }
  body.usd .usd-buc-badge { font-size: 12px; }
  body.usd .usd-header-inner { gap: 10px; }
  body.usd .usd-btn-login span { display: none; }
  body.usd .usd-btn-login { padding: 0; width: 40px; height: 40px; justify-content: center; }
  body.usd .usd-hero { padding: 36px 0 44px; }
  body.usd .usd-hero.usd-hero--compact { padding: 14px 0 16px; }
  body.usd .usd-console { padding: 16px; }
  body.usd .usd-input-group { flex-direction: column; }
  body.usd .usd-filter-select { min-height: 38px; border-right: none !important; border-bottom: 1px solid var(--usd-border) !important; }
  body.usd .usd-btn-search { min-height: 44px; justify-content: center; }
  body.usd .usd-faculties,
  body.usd .usd-books,
  body.usd .usd-platforms,
  body.usd .usd-metrics-grid,
  body.usd .usd-footer-grid,
  body.usd .usd-adv-grid { grid-template-columns: 1fr; }
  body.usd .usd-footer-col.brand { grid-column: auto; }
  body.usd .usd-footer-bottom-inner { flex-direction: column; text-align: center; }
  body.usd .usd-section { padding: 36px 0; }
  /* Mobile : en-tête et bandeau de recherche compacts (pas de vide inutile) */
  body.usd .usd-header { padding: 10px 0; }
  body.usd .usd-logo-wrap { width: 52px; height: 52px; padding: 4px; }
  body.usd .usd-republic,
  body.usd .usd-buc-badge { display: none; }
  body.usd .usd-univ-title { font-size: 15px; line-height: 1.2; }
  body.usd .usd-univ-ar { font-size: 12.5px; }
  body.usd .usd-header-actions { gap: 8px; }
  body.usd .usd-btn-icon { width: 36px; height: 36px; }
  body.usd .usd-btn-login { width: 36px; height: 36px; }
  body.usd .usd-hero-eyebrow { display: none; }
  body.usd .usd-hero-title { font-size: 24px; margin-bottom: 8px; }
  body.usd .usd-hero-subtitle { font-size: 13px; margin-bottom: 18px; }
  body.usd .usd-hero { padding: 24px 0 28px; }
  body.usd .usd-scopes,
  body.usd .usd-popular { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  body.usd .usd-scopes::-webkit-scrollbar,
  body.usd .usd-popular::-webkit-scrollbar { display: none; }
  body.usd .usd-scope-btn,
  body.usd .usd-chip,
  body.usd .usd-popular > span { flex: 0 0 auto; white-space: nowrap; }
  body.usd .usd-scope-btn { padding: 6px 12px; font-size: 12px; }
  body.usd .usd-console-sub { flex-direction: column; align-items: stretch; gap: 8px; }
  body.usd .usd-console-sub > * { max-width: 100%; }
  body.usd .usd-adv-toggle { align-self: flex-start; }
}
