@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&family=Caveat:wght@600;700&display=swap');

:root {
  --purple: #7a3db8;
  --purple-dark: #5a2790;
  --purple-light: #f3ecfb;
  --bg: #f2eefa;
  --ink: #14283a;
  --muted: #647384;
  --white: #ffffff;
  --radius: clamp(24px, 2vw, 40px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  font-size: 15px;
}

/* ==========================================================================
   1. PORTAIL D'ACCUEIL (index.html)
   ========================================================================== */
body.portal-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.portal-container {
  width: 98vw;
  max-width: 2000px;
  padding: clamp(12px, 1.5vw, 32px);
}

.portal-card-hub {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 35px 80px rgba(43, 27, 61, 0.18);
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  overflow: hidden;
  min-height: clamp(680px, 86vh, 1100px);
}

.portal-media {
  position: relative;
  width: 100%;
  height: 100%;
  background: #2b1b3d;
}

.portal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-media-overlay {
  position: absolute;
  bottom: clamp(20px, 2.5vw, 48px);
  left: clamp(20px, 2.5vw, 48px);
  z-index: 2;
}

.location-tag {
  background: rgba(20, 40, 58, 0.85);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: clamp(12px, 0.9vw, 18px);
  font-weight: 700;
  padding: clamp(8px, 0.6vw, 14px) clamp(16px, 1.2vw, 28px);
  border-radius: 999px;
}

.portal-content {
  padding: clamp(32px, 3.2vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 2vw, 48px);
}

.portal-header {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.5vw, 32px);
}

.portal-logo {
  width: clamp(52px, 4vw, 96px);
  height: auto;
}

.portal-badge {
  font-size: clamp(10px, 0.75vw, 15px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--purple);
  background: var(--purple-light);
  padding: clamp(4px, 0.4vw, 8px) clamp(10px, 0.8vw, 18px);
  border-radius: 8px;
}

.portal-title-wrap h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 3.2vw, 72px);
  text-transform: uppercase;
  margin: clamp(2px, 0.3vw, 8px) 0 0;
  line-height: 1;
}

.portal-tagline {
  font-family: cursive;
  font-size: clamp(18px, 1.5vw, 32px);
  color: var(--purple);
  margin: clamp(2px, 0.3vw, 8px) 0 0;
}

.portal-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(12px, 1.2vw, 28px);
}

.hub-button {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.2vw, 24px);
  padding: clamp(16px, 1.4vw, 32px) clamp(20px, 1.6vw, 36px);
  border-radius: clamp(14px, 1.2vw, 24px);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-button:hover { transform: translateY(-4px); }

.hub-button.primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(122, 61, 184, 0.32);
}

.hub-button.outline {
  background: #f7f5fb;
  color: var(--purple);
  border: 1.5px solid rgba(122, 61, 184, 0.25);
}

.hub-icon { font-size: clamp(24px, 2vw, 44px); }
.hub-text { display: flex; flex-direction: column; flex: 1; }
.hub-text strong { font-size: clamp(14px, 1.1vw, 22px); line-height: 1.2; }
.hub-text small { font-size: clamp(11px, 0.85vw, 16px); opacity: 0.85; margin-top: 4px; }
.hub-arrow { font-size: clamp(18px, 1.4vw, 30px); font-weight: 800; }

/* --- SECTION ACTUALITÉS & CARROUSEL VERROUILLÉ --- */
.portal-news-section {
  background: #f8f9fc;
  border: 1px solid #e5e8f0;
  border-radius: clamp(16px, 1.4vw, 28px);
  padding: clamp(16px, 1.5vw, 28px);
  overflow: hidden; /* Empêche tout débordement extérieur */
  width: 100%;
  box-sizing: border-box;
}

.news-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.news-section-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(22px, 1.8vw, 38px);
  text-transform: uppercase;
  margin: 0;
}

.all-news-link {
  font-size: clamp(12px, 0.9vw, 18px);
  font-weight: 800;
  color: var(--purple);
  text-decoration: none;
}

.news-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.news-carousel-track-wrapper {
  overflow: hidden; /* Verrouille les cartes dans le cadre */
  width: 100%;
  border-radius: 12px;
}

.news-mini-grid {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Calcul strict : 2 cartes exactes par vue sur PC */
.news-mini-card {
  flex: 0 0 calc(50% - 8px); 
  max-width: calc(50% - 8px);
  box-sizing: border-box;
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-left: 4px solid var(--purple);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.news-mini-card:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(122, 61, 184, 0.12);
}

.news-mini-tag {
  font-size: clamp(10px, 0.75vw, 12px);
  font-weight: 800;
  color: var(--purple-dark);
  background: var(--purple-light);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.news-mini-card h4 {
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}

.news-mini-card p {
  font-size: clamp(12px, 0.9vw, 14px);
  color: #334155;
  margin: 0;
  line-height: 1.4;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--purple);
  margin-top: 8px;
}

.carousel-nav-btn {
  background: var(--white);
  border: 1px solid #cbd5e1;
  color: var(--purple-dark);
  font-size: 18px;
  font-weight: bold;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  z-index: 2;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: var(--purple);
  color: #ffffff;
  border-color: var(--purple);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background: var(--purple);
  transform: scale(1.2);
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  font-size: clamp(12px, 0.9vw, 18px);
  color: var(--muted);
  border-top: 1px solid #f0f2f5;
  padding-top: clamp(14px, 1.2vw, 24px);
}

/* ==========================================================================
   2. LIVRET INTERACTIF (STRUCTURE ET PLEINE LARGEUR)
   ========================================================================== */
body.livret-body.book-mode {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.livret-header {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid rgba(122, 61, 184, 0.15);
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.livret-nav-shell {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.livret-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.livret-brand img { width: 32px; height: auto; }
.livret-brand strong { display: block; font-size: 13.5px; }
.livret-brand small { display: block; font-size: 9.5px; color: var(--muted); letter-spacing: 0.1em; }

.livret-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.livret-nav a {
  text-decoration: none;
  color: var(--purple);
  font-weight: 700;
  font-size: 13.5px;
  padding: 5px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.livret-nav a:hover {
  background: var(--purple-light);
}

.book-container {
  display: grid;
  grid-template-columns: 290px 1fr;
  height: calc(100vh - 52px);
  gap: 14px;
  padding: 10px 14px;
  max-width: 99vw;
  width: 100%;
  margin: 0 auto;
}

.sidebar-sommaire {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(122, 61, 184, 0.18);
  box-shadow: 0 8px 20px rgba(90, 39, 144, 0.05);
  height: 100%;
  overflow-y: auto;
}

.sidebar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  margin: 0 0 8px;
  color: var(--purple-dark);
  text-transform: uppercase;
  border-bottom: 2px solid var(--purple-light);
  padding-bottom: 4px;
}

.sidebar-section-group { margin-bottom: 10px; }
.sidebar-section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-section-label .sec-num {
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.sidebar-menu-list { list-style: none; padding: 0; margin: 0; }
.sidebar-menu-list a {
  display: block;
  padding: 5px 8px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-menu-list a.active,
.sidebar-menu-list a:hover {
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 700;
  transform: translateX(3px);
}

.sidebar-menu-list .sub-code {
  color: var(--purple);
  font-weight: 800;
  margin-right: 4px;
}

.book-viewport {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(122, 61, 184, 0.18);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.book-hero-banner {
  height: 95px;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
  display: flex;
  align-items: flex-end;
  padding: 12px 20px;
  flex-shrink: 0;
  background-image: url('../assets/images/campus-hero.png');
}

.banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(20, 30, 45, 0.82) 0%, rgba(90, 39, 144, 0.75) 100%);
  z-index: 1;
}

.banner-content { position: relative; z-index: 2; color: #fff; }
.banner-content h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  margin: 0;
  text-transform: uppercase;
}

.banner-content .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #f3ecfb;
  margin: 0 0 2px;
}

/* ==========================================================================
   3. DÉSACTIVATION STRICTE DU SCROLL SUR LES PAGES
   ========================================================================== */

.pages-wrapper {
  flex: 1;
  padding: 12px 18px;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

.book-page {
  display: none !important;
  width: 100%;
  height: 100%;
}

.book-page.active {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 8px;
  height: 100%;
  overflow: hidden !important;
  animation: fadeIn 0.2s ease-in-out;
}

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

.sub-header {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  padding-top: 0 !important;
  flex-shrink: 0;
}

.sub-badge {
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 800;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
}

.sub-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  margin: 0;
}

.sub-intro { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

.page-photo-zone {
  width: 100%;
  height: 110px; 
  margin-top: auto;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.page-photo-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease-in-out;
}

.book-pagination {
  height: 44px;
  border-top: 1px solid #f1f5f9;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fcfaff;
  flex-shrink: 0;
  z-index: 10;
}

.page-btn {
  border: 1px solid rgba(122, 61, 184, 0.2); background: #fff; color: var(--purple);
  padding: 6px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: background 0.2s;
}

.page-btn:hover { background: var(--purple-light); }
.page-btn.primary { background: var(--purple); color: #fff; }
.page-btn.primary:hover { background: var(--purple-dark); }

#pageIndicator { font-size: 13.5px; font-weight: 600; }

.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-card {
  background: #ffffff; border-radius: 20px; width: 90%; max-width: 580px;
  padding: 24px; box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  transform: translateY(20px); transition: transform 0.3s ease; position: relative;
}

.modal-overlay.active .modal-card { transform: translateY(0); }

.modal-close-btn {
  position: absolute; top: 16px; right: 18px;
  background: #f1f5f9; border: none; font-size: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; color: #64748b; display: flex; align-items: center; justify-content: center;
}

.modal-header-tag { font-size: 11px; font-weight: 800; color: var(--purple); letter-spacing: 0.1em; text-transform: uppercase; }
.modal-title { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; margin: 4px 0 12px; color: #0f172a; }
.modal-body-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.modal-body-list li { background: #f8fafc; border: 1px solid #e2e8f0; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; }

/* ==========================================================================
   4. REDIMENSIONNEMENT DES IMAGES DE SECTION
   ========================================================================== */

.home-cover-wrapper { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: 12px; 
  width: 100%; 
  height: 100%;
  flex: 1;
  padding: 0; 
  overflow: hidden;
}

.home-cover-img-container { 
  width: 100%; 
  flex: 1; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  overflow: hidden;
}

.home-cover-img { 
  max-width: 100%; 
  width: auto;
  height: auto; 
  max-height: calc(100vh - 180px) !important; 
  object-fit: contain; 
  border-radius: 10px; 
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); 
}

.mot-proviseur-card {
  background: #fdfbf7;
  border: 1.5px solid #e9d5ff;
  border-radius: 14px;
  padding: 16px 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.mot-proviseur-text {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 20px;
  line-height: 1.4;
  color: #2c1810;
}

.mot-proviseur-text ul { margin: 6px 0; padding-left: 18px; }
.mot-proviseur-text li { margin-bottom: 2px; }
.mot-proviseur-signature { margin-top: 12px; text-align: right; font-weight: 700; color: #5a2790; }

.formation-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(90deg, #f7faff 0%, #fbf9fe 50%, #faf5ff 100%);
  border: 1px solid rgba(122, 61, 184, 0.18);
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.pipe-step {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap; cursor: pointer; transition: all 0.25s ease;
}
.pipe-step:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.pipe-step.step-cap { background: #e0f2fe; color: #0284c7; }
.pipe-step.step-bacpro { background: #ccfbf1; color: #0d9488; }
.pipe-step.step-bactechno { background: #fef9c3; color: #ca8a04; }
.pipe-step.step-bacgen { background: #fef3c7; color: #d97706; }
.pipe-step.step-bts { background: #f3e8ff; color: #7e22ce; }
.pipe-step.step-cpge { background: #fae8ff; color: #c026d3; }

.pipe-arrow { color: #cbd5e1; font-size: 15px; font-weight: 800; }

.formation-blocks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formation-card { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.formation-card.prebac { background: #f0f9ff; border: 1.5px solid #bfe3fe; }
.formation-card.postbac { background: #fbf5ff; border: 1.5px solid #e9d5ff; }

.formation-card-header { padding: 8px 14px; }
.prebac .formation-card-header { background: #e0f2fe; border-bottom: 1px solid #bae6fd; }
.postbac .formation-card-header { background: #f3e8ff; border-bottom: 1px solid #e9d5ff; }

.formation-card-header h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 19px; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 8px; }
.prebac .formation-card-header h4 { color: #0369a1; }
.postbac .formation-card-header h4 { color: #6b21a8; }

.formation-card-body { padding: 12px; display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 38px); }
.formation-details-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.formation-details-list li { display: flex; align-items: center; gap: 8px; line-height: 1.25; }

.count-pill {
  width: 25px; height: 25px; border-radius: 50%; background: #0284c7; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; flex-shrink: 0;
}
.count-pill.purple { background: var(--purple); }

.card-footer-box { margin-top: 10px; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.25; }
.card-footer-box.prebac-box { background: #e0f2fe; border: 1px solid #bae6fd; color: #0369a1; }
.card-footer-box.postbac-box { background: #f3e8ff; border: 1px solid #e9d5ff; color: #6b21a8; }

.conclusion-banner-box {
  margin-top: 10px; padding: 10px 14px; background: linear-gradient(90deg, #f0f9ff 0%, #fbf5ff 100%);
  border: 1px solid rgba(122, 61, 184, 0.2); border-radius: 10px; color: var(--purple-dark);
  font-size: 13.5px; font-weight: 700; text-align: center; box-shadow: 0 4px 12px rgba(122, 61, 184, 0.05);
}

.org-chiffres-bar {
  display: flex; gap: 14px; justify-content: center; align-items: center;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 14px; margin-bottom: 8px; flex-wrap: wrap;
}

.org-chiffre-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #1e293b; }
.org-chiffre-item strong { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; color: var(--purple-dark); }

.structure-tabs-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 8px; }

.struct-tab {
  background: #f1f5f9; border: 1px solid #cbd5e1; padding: 6px 14px; border-radius: 20px;
  font-size: 12.5px; font-weight: 700; color: #475569; cursor: pointer; white-space: nowrap; transition: all 0.2s ease;
}

.struct-tab:hover { background: #e2e8f0; }
.struct-tab.active { background: var(--purple); color: #fff; border-color: var(--purple-dark); box-shadow: 0 4px 10px rgba(122, 61, 184, 0.25); }

.structure-display-box { background: #fff; border: 1px solid rgba(122, 61, 184, 0.2); border-radius: 12px; padding: 12px; min-height: 140px; }
.struct-content-panel { display: none; }
.struct-content-panel.active { display: block; animation: fadeIn 0.25s ease; }

.panel-hero { padding: 10px 14px; border-radius: 8px; color: #fff; margin-bottom: 10px; }
.general-bg { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.techno-bg { background: linear-gradient(135deg, #16a34a, #15803d); }
.pro-bg { background: linear-gradient(135deg, #ea580c, #c2410c); }
.bts-bg { background: linear-gradient(135deg, #6b21a8, #581c87); }
.cpge-bg { background: linear-gradient(135deg, #7c3aed, #6d28d9); }

.panel-hero h4 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; }
.panel-hero p { margin: 2px 0 0; font-size: 12.5px; opacity: 0.9; }

.panel-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.detail-pill { background: #f8fafc; border: 1px solid #e2e8f0; padding: 6px 10px; border-radius: 8px; font-size: 13px; }

.panel-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.panel-list li { background: #f8fafc; border-left: 3px solid var(--purple); padding: 6px 10px; border-radius: 0 6px 6px 0; }

.org-table { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: left; }
.org-table th { background: #f8fafc; color: var(--purple-dark); font-weight: 800; padding: 5px 8px; border-bottom: 2px solid #e2e8f0; }
.org-table td { padding: 5px 8px; border-bottom: 1px solid #f1f5f9; }

.org-bottom-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 8px; }

.org-mlds-card { background: #fdfbf7; border: 1px solid #f59e0b; border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.org-mlds-title { display: flex; align-items: center; gap: 8px; }
.org-mlds-badge { background: #d97706; color: #fff; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.org-mlds-text strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; color: #b45309; }
.org-mlds-text span { font-size: 11px; color: #78350f; line-height: 1.15; display: block; }
.org-mlds-count { text-align: right; font-family: 'Barlow Condensed', sans-serif; line-height: 1; }
.org-mlds-count strong { font-size: 18px; color: #92400e; display: block; }
.org-mlds-count span { font-size: 9.5px; font-weight: 700; color: #a16207; text-transform: uppercase; }

.org-prebac-levels-card { background: #f8fafc; border: 1px solid #3b82f6; border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.org-prebac-title { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; color: #1d4ed8; text-align: center; text-transform: uppercase; font-weight: 800; margin-bottom: 2px; }
.org-levels-flow { display: flex; align-items: center; justify-content: space-around; }
.level-step { text-align: center; }
.level-step .lvl-name { font-size: 10.5px; font-weight: 800; color: #1e40af; display: block; }
.level-step .lvl-num { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: #2563eb; line-height: 1; }
.level-step .lvl-label { font-size: 9px; font-weight: 700; color: #64748b; text-transform: uppercase; }
.level-arrow { color: #93c5fd; font-size: 15px; font-weight: 800; }
.prebac-total-badge { border-left: 2px solid #93c5fd; padding-left: 8px; text-align: center; }
.prebac-total-badge strong { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; color: #1e3a8a; display: block; line-height: 1; }
.prebac-total-badge span { font-size: 9.5px; font-weight: 800; color: #1d4ed8; text-transform: uppercase; line-height: 1; display: block; }

.org-footnote { text-align: center; font-size: 11px; font-weight: 700; color: #334155; margin-top: 6px; }

.pop-container { display: flex; flex-direction: column; gap: 8px; }
.pop-top-row { display: grid; grid-template-columns: 1.8fr 1fr; gap: 8px; }

.pop-card {
  border-radius: 10px; padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); border: 1px solid rgba(0, 0, 0, 0.05);
}

.pop-card.bg-genre { background: #fdf8ff; border-color: #f3e8ff; }
.pop-card.bg-ips { background: #f4f8ff; border-color: #e0f2fe; }
.pop-card.bg-filiere { background: #fafafc; border-color: #f1f5f9; }
.pop-card.bg-origine { background: #f6f8fd; border-color: #e2e8f0; }
.pop-card.bg-age { background: #fbfbfe; border-color: #ede9fe; }
.pop-card.bg-emploi { background: #fffdfa; border-color: #ffedd5; }
.pop-card.bg-ecart { background: #fcf8ff; border-color: #fae8ff; }

.pop-genre-card { display: flex; align-items: center; justify-content: space-around; gap: 8px; }
.pop-genre-item { text-align: center; }

.pop-genre-num { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; font-weight: 800; line-height: 1; }
.pop-genre-num.purple { color: #7a3db8; }
.pop-genre-num.blue { color: #2563eb; }

.pop-genre-label { font-size: 9.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; margin-top: 2px; }

.pop-tag-banner {
  background: #5a2790; color: #ffffff; font-family: 'Barlow Condensed', sans-serif;
  font-size: 12.5px; font-weight: 700; text-align: center; padding: 4px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.03em;
}

.pop-ips-card { display: flex; flex-direction: column; justify-content: space-between; }
.pop-ips-header {
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 800; color: #2563eb;
  display: flex; align-items: center; gap: 6px; border-bottom: 1.5px solid #e0f2fe; padding-bottom: 3px; margin-bottom: 3px;
}

.pop-ips-list { font-size: 10.5px; color: #334155; margin: 0; padding-left: 12px; line-height: 1.25; }
.pop-ips-footer { background: #e9d5ff; color: #5b21b6; font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 4px; margin-top: 3px; }

.pop-middle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pop-card-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 15px; color: var(--purple-dark);
  margin: 0 0 4px; text-transform: uppercase; border-bottom: 1.5px solid var(--purple-light); padding-bottom: 2px; text-align: center;
}

.donut-chart-wrapper { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 2px 0; }
.donut-chart {
  width: 85px; height: 85px; border-radius: 50%;
  background: conic-gradient(#2563eb 0% 40%, #16a34a 40% 63.5%, #7a3db8 63.5% 85%, #ea580c 85% 100%);
  position: relative; flex-shrink: 0;
}

.donut-inner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; background: #ffffff; border-radius: 50%; }

.legend-list { list-style: none; padding: 0; margin: 0; font-size: 10.5px; font-weight: 700; display: flex; flex-direction: column; gap: 2px; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }

.origine-list { display: flex; flex-direction: column; gap: 4px; }
.origine-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 4px 6px; }
.origine-header { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; margin-bottom: 2px; color: #1e293b; }
.chart-bar-track { height: 5px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 4px; }
.fill-blue { background: #2563eb; }

.pop-bottom-three { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; }
.age-bar-group { display: flex; flex-direction: column; gap: 3px; }

.age-bar-row {
  display: flex; align-items: center; justify-content: space-between; padding: 3px 6px; border-radius: 5px; color: #ffffff; font-size: 10px; font-weight: 700;
}
.age-bar-row.postbac { background: #64748b; }
.age-bar-row.entrant { background: #ea580c; }
.age-bar-row.moyen { background: #2563eb; }

.emploi-card-body { display: flex; align-items: center; gap: 6px; font-size: 10.5px; line-height: 1.2; color: #334155; height: 100%; }

.ecart-bars { display: flex; align-items: flex-end; justify-content: space-around; height: 55px; }
.ecart-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ecart-bar { width: 28px; border-radius: 4px 4px 0 0; }
.ecart-bar.jeune { height: 24px; background: #7a3db8; }
.ecart-bar.ancien { height: 44px; background: #dc2626; }

.ecart-val { font-size: 10px; font-weight: 800; }
.ecart-lbl { font-size: 8.5px; font-weight: 700; color: var(--muted); }

.pop-keys-row {
  background: linear-gradient(135deg, #f3ecfb 0%, #e9d5ff 100%);
  border: 1px solid #d8b4fe; border-radius: 10px; padding: 6px 12px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px;
}

.pop-key-item { display: flex; align-items: center; gap: 5px; }
.pop-key-icon {
  font-size: 15px; background: #ffffff; color: #7a3db8; width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.pop-key-text strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; color: #4c1d95; line-height: 1; }
.pop-key-text span { font-size: 8.5px; color: #6b21a8; font-weight: 700; text-transform: uppercase; }

.placeholder-photos-box {
  background: #fafafc; border: 2px dashed #cbd5e1; border-radius: 14px; padding: 24px 16px; text-align: center; color: #64748b; margin-top: 8px;
}
.placeholder-photos-icon { font-size: 34px; margin-bottom: 4px; display: block; }
.placeholder-photos-box h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 19px; color: #334155; margin: 0 0 2px 0; text-transform: uppercase; }
.placeholder-photos-box p { font-size: 12px; margin: 0; font-style: italic; }

.options-container { display: flex; flex-direction: column; gap: 10px; }
.options-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 10px; }

.card-seconde {
  background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px;
}

.banner-seconde {
  background: #15803d; color: #ffffff; font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 800; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; display: flex; align-items: center; gap: 6px;
}

.opt-box { background: #ffffff; border: 1px solid #dcfce7; border-radius: 8px; padding: 6px 10px; }
.opt-box-title { font-size: 12.5px; font-weight: 800; color: #166534; margin-bottom: 3px; }
.opt-list-items { list-style: none; padding: 0; margin: 0; font-size: 12px; color: #1f2937; display: flex; flex-direction: column; gap: 3px; }
.opt-list-items li { display: flex; align-items: center; gap: 5px; font-weight: 600; }

.card-premiere-term {
  background: #fcf8ff; border: 1.5px solid #f3e8ff; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px;
}

.banner-prem-term {
  background: #6b21a8; color: #ffffff; font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 800; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; display: flex; align-items: center; gap: 6px;
}

.specs-13-box { background: #ffffff; border: 1px solid #e9d5ff; border-radius: 8px; padding: 8px 10px; }
.specs-13-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; border-bottom: 1px dashed #e9d5ff; padding-bottom: 3px; }
.specs-badge { background: #7e22ce; color: #ffffff; font-size: 11.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px; display: flex; align-items: center; gap: 4px; }

.specs-columns-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 11.5px; }
.specs-col-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; color: #1e1b4b; font-weight: 600; }
.specs-col-list li strong { color: #6b21a8; font-size: 12px; }
.specs-col-list li small { color: #dc2626; font-weight: 700; font-size: 10px; }

.sub-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sub-opt-box { background: #ffffff; border: 1px solid #e9d5ff; border-radius: 8px; padding: 6px 8px; }
.sub-opt-header {
  background: #581c87; color: #ffffff; font-size: 11.5px; font-weight: 800; padding: 3px 6px; border-radius: 5px; margin-bottom: 4px; display: flex; align-items: center; gap: 5px; text-transform: uppercase;
}

.techno-pro-banner {
  background: #d97706; color: #ffffff; border-radius: 8px; padding: 6px 12px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 6px;
}

.techno-pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.techno-card-item { background: #fffbf7; border: 1.5px solid #fed7aa; border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.techno-icon-box {
  width: 30px; height: 30px; border-radius: 50%; background: #f59e0b; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}

.techno-info strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 16px; color: #92400e; line-height: 1; }
.techno-info span { font-size: 11px; color: #b45309; font-weight: 700; }

.langues-container { display: flex; flex-direction: column; gap: 8px; }
.langues-top-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 8px; }

.card-sec-inter { background: #fcf8ff; border: 1.5px solid #f3e8ff; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.banner-sec-inter {
  background: #581c87; color: #ffffff; font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; display: flex; align-items: center; gap: 6px;
}

.sec-inter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sub-sec-card { background: #ffffff; border: 1px solid #e9d5ff; border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.sub-sec-title { font-family: 'Barlow Condensed', sans-serif; font-size: 13.5px; font-weight: 800; color: #6b21a8; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }
.sub-sec-subtitle { font-size: 10px; color: #7e22ce; font-weight: 700; }

.langue-badge-item { display: flex; align-items: center; gap: 5px; background: #faf5ff; border: 1px solid #f3e8ff; padding: 4px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.langue-badge-item .flag { font-size: 14px; }
.langue-badge-item .pill { background: #6b21a8; color: #ffffff; padding: 2px 5px; border-radius: 4px; font-size: 10px; font-weight: 800; }

.folder-note { background: #f3e8ff; color: #581c87; font-size: 10px; font-weight: 700; padding: 4px 6px; border-radius: 5px; display: flex; align-items: center; gap: 5px; margin-top: auto; }

.card-ens-langues { background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.banner-ens-langues {
  background: #15803d; color: #ffffff; font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; display: flex; align-items: center; gap: 6px;
}

.lv-box { background: #ffffff; border: 1px solid #dcfce7; border-radius: 8px; padding: 6px; display: flex; align-items: center; gap: 8px; }
.lv-tag { background: #15803d; color: #ffffff; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 800; padding: 4px 8px; border-radius: 6px; }
.lv-list { list-style: none; padding: 0; margin: 0; font-size: 11.5px; font-weight: 700; color: #166534; display: flex; flex-direction: column; gap: 2px; }

.card-ouv-inter { background: #fffbf7; border: 1.5px solid #ffedd5; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.banner-ouv-inter {
  background: #d97706; color: #ffffff; font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; display: flex; align-items: center; gap: 6px;
}

.ouv-inter-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
.ouv-info-box { background: #ffffff; border: 1px solid #fed7aa; border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.ouv-icon-circle { width: 32px; height: 32px; border-radius: 50%; background: #f59e0b; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ouv-text strong { display: block; font-size: 12px; color: #92400e; line-height: 1.1; }
.ouv-text span { font-size: 10.5px; color: #b45309; font-weight: 600; }

.langues-keys-row {
  background: linear-gradient(135deg, #f3ecfb 0%, #e9d5ff 100%);
  border: 1.5px solid #d8b4fe; border-radius: 10px; padding: 6px 12px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
}

.langues-key-item { display: flex; align-items: center; gap: 6px; }
.langues-key-icon { font-size: 15px; background: #ffffff; color: #7a3db8; width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
.langues-key-text strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; color: #4c1d95; line-height: 1; }
.langues-key-text span { font-size: 9px; color: #6b21a8; font-weight: 700; text-transform: uppercase; }

.erasmus-page-container { display: flex; flex-direction: column; gap: 6px; }
.erasmus-top-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.erasmus-top-card { background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.erasmus-top-icon { width: 34px; height: 34px; border-radius: 50%; background: #1e3a8a; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; flex-shrink: 0; }
.erasmus-top-info strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; color: #1e3a8a; line-height: 1; }
.erasmus-top-info span { font-size: 10px; color: #475569; font-weight: 700; line-height: 1.1; display: block; }

.erasmus-main-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6px; }
.erasmus-block-card { background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.erasmus-block-header { background: #1e3a8a; color: #ffffff; padding: 4px 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }
.erasmus-block-header.green-header { background: #15803d; }
.erasmus-block-body { padding: 6px 8px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.erasmus-block-body p { font-size: 10px; color: #334155; margin: 0; line-height: 1.25; }

.erasmus-targets-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 4px; margin-top: 2px; }
.erasmus-target-item { background: #f1f5f9; border-radius: 6px; padding: 4px; text-align: center; }
.erasmus-target-icon { width: 24px; height: 24px; border-radius: 50%; background: #1e3a8a; color: #ffffff; display: flex; align-items: center; justify-content: center; margin: 0 auto 2px auto; font-size: 11px; }
.erasmus-target-item span { font-size: 8.5px; font-weight: 700; color: #1e3a8a; display: block; line-height: 1; }

.erasmus-badge-volonte { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: 10px; font-weight: 700; padding: 4px 6px; border-radius: 5px; display: flex; align-items: center; gap: 5px; margin-top: auto; }

.erasmus-countries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; padding-bottom: 4px; border-bottom: 1px dashed #cbd5e1; }
.country-flag-item { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.country-flag-item .flag { font-size: 18px; }
.country-flag-item span { font-size: 9px; font-weight: 700; color: #334155; }

.erasmus-project-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 2px; }
.project-sub-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px; padding: 4px 5px; display: flex; align-items: center; gap: 5px; }
.project-sub-icon { width: 24px; height: 24px; border-radius: 50%; background: #15803d; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.project-sub-text strong { display: block; font-size: 10px; color: #166534; }
.project-sub-text span { font-size: 9px; color: #15803d; font-weight: 700; }

.erasmus-bottom-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 6px; }
.erasmus-years-comparison { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 5px; padding: 5px; }

.year-card { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.year-card-header { background: #1e3a8a; color: #ffffff; text-align: center; font-family: 'Barlow Condensed', sans-serif; font-size: 12.5px; font-weight: 800; padding: 1px 0; }
.year-card-body { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; text-align: center; }
.year-stat-item strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 16px; color: #1e3a8a; line-height: 1; }
.year-stat-item span { font-size: 8px; color: #64748b; font-weight: 700; display: block; }

.year-total-banner { background: #dbeafe; color: #1e3a8a; text-align: center; font-size: 9.5px; font-weight: 800; padding: 2px 0; margin-top: auto; }

.progression-box { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.progression-title { font-size: 9px; font-weight: 800; color: #1e3a8a; text-transform: uppercase; }
.progression-num { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: #1d4ed8; margin: 0; }
.progression-lbl { font-size: 8px; color: #64748b; font-weight: 700; }

.orient-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.orient-intro-card {
  background: #f4f8ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8px;
  align-items: center;
}

.orient-intro-text p {
  font-size: 10.5px;
  color: #334155;
  margin: 0;
  line-height: 1.3;
}

.orient-intro-text strong {
  color: #1e3a8a;
}

.orient-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  font-size: 8.5px;
}

.orient-mini-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #ffffff;
  border-radius: 5px;
  overflow: hidden;
}

.orient-mini-table th {
  background: #e2e8f0;
  color: #1e3a8a;
  font-weight: 800;
  padding: 2px 4px;
  border: 1px solid #cbd5e1;
  text-transform: uppercase;
}

.orient-mini-table th.th-yellow {
  background: #fef08a;
  color: #854d0e;
}

.orient-mini-table td {
  padding: 2px 4px;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
}

.orient-columns-3 {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1.35fr;
  gap: 6px;
}

.orient-col-card {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

.orient-col-card.bg-purple { background: #fcf8ff; border-color: #f3e8ff; }
.orient-col-card.bg-green { background: #f0fdf4; border-color: #dcfce7; }
.orient-col-card.bg-orange { background: #fffbf7; border-color: #ffedd5; }

.orient-col-header {
  color: #ffffff;
  padding: 4px 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.orient-col-header.purple-hdr { background: #581c87; }
.orient-col-header.green-hdr { background: #15803d; }
.orient-col-header.orange-hdr { background: #d97706; }

.orient-col-body {
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.orient-item-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 9.5px;
  color: #334155;
  line-height: 1.2;
}

.orient-item-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 1px;
}

.purple-hdr .orient-item-icon, .icon-purple { background: #581c87; }
.green-hdr .orient-item-icon, .icon-green { background: #15803d; }
.orange-hdr .orient-item-icon, .icon-orange { background: #f59e0b; }

.orient-item-content { flex: 1; }
.orient-item-content strong { display: block; color: #1e293b; font-weight: 800; font-size: 10px; }
.orient-item-content span { color: #475569; font-size: 8.5px; font-weight: 600; }

.orient-sub-section-title {
  font-size: 9px;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
  border-bottom: 1px dashed #fed7aa;
  padding-bottom: 1px;
  margin-top: 2px;
}

.imm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #334155;
  padding: 1px 0;
}

.imm-row .count-badge {
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 8.5px;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

.orient-stats-row {
  display: grid;
  grid-template-columns: 0.95fr 1fr 1fr 1fr 1fr;
  gap: 5px;
}

.orient-stat-banner-card {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}

.orient-stat-pill-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.orient-stat-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.orient-stat-text { min-width: 0; flex: 1; }
.orient-stat-text strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; line-height: 1; white-space: nowrap; }
.orient-stat-text span { font-size: 8px; color: #64748b; font-weight: 700; line-height: 1; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.disp-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disp-columns-3 {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.05fr;
  gap: 8px;
}

.disp-col-card {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

.disp-col-card.bg-purple { background: #fcf8ff; border-color: #f3e8ff; }
.disp-col-card.bg-green { background: #f0fdf4; border-color: #dcfce7; }
.disp-col-card.bg-orange { background: #fffbf7; border-color: #ffedd5; }

.disp-col-header {
  color: #ffffff;
  padding: 4px 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.disp-col-header.purple-hdr { background: #581c87; }
.disp-col-header.green-hdr { background: #15803d; }
.disp-col-header.orange-hdr { background: #d97706; }

.disp-col-body {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.mlds-block { display: flex; align-items: center; gap: 6px; }
.mlds-logo-text { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 800; color: #581c87; line-height: 1.05; }
.mlds-logo-sub { font-size: 9.5px; font-weight: 700; color: #7e22ce; text-transform: uppercase; }

.disp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; color: #334155; font-weight: 600; }
.disp-list li { display: flex; align-items: flex-start; gap: 4px; line-height: 1.2; }
.disp-list li::before { content: "✓"; color: #581c87; font-weight: 800; font-size: 10.5px; }

.disp-goal-box { background: #ffffff; border: 1px solid #e9d5ff; border-radius: 5px; padding: 5px 6px; display: flex; align-items: center; gap: 6px; margin-top: auto; }
.disp-goal-icon { width: 22px; height: 22px; border-radius: 50%; background: #581c87; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.disp-goal-text strong { display: block; font-size: 9.5px; color: #581c87; text-transform: uppercase; }
.disp-goal-text span { font-size: 9.5px; color: #475569; line-height: 1.15; display: block; }

.disp-item-box { background: #ffffff; border: 1px solid #dcfce7; border-radius: 5px; padding: 5px 6px; display: flex; align-items: center; gap: 6px; }
.disp-icon-circle-green { width: 24px; height: 24px; border-radius: 50%; background: #15803d; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.disp-box-text strong { display: block; font-size: 10.5px; color: #166534; line-height: 1.15; }
.disp-box-text span { font-size: 9.5px; color: #15803d; font-weight: 600; }

.orange-sub-item { background: #ffffff; border: 1px solid #fed7aa; border-radius: 5px; padding: 5px 6px; display: flex; align-items: center; gap: 6px; }
.orange-icon-circle { width: 24px; height: 24px; border-radius: 50%; background: #f59e0b; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.orange-stat-card { background: #ffffff; border: 1px solid #fed7aa; border-radius: 5px; padding: 5px 8px; display: flex; align-items: center; justify-content: space-around; margin-top: auto; }
.orange-stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800; color: #d97706; line-height: 1; }
.orange-stat-lbl { font-size: 10px; color: #92400e; font-weight: 700; line-height: 1.15; }

.disp-stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.disp-stat-card { background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 6px; padding: 5px 8px; display: flex; align-items: center; gap: 8px; }
.disp-stat-icon { width: 30px; height: 30px; border-radius: 50%; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.disp-stat-icon.purple { background: #581c87; }
.disp-stat-icon.blue { background: #1e3a8a; }
.disp-stat-icon.green { background: #15803d; }

.disp-stat-text strong { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-size: 20px; line-height: 1; margin-right: 3px; }
.disp-stat-text span { font-size: 10px; color: #334155; font-weight: 700; line-height: 1.1; }

.disp-bottom-card { background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.disp-bottom-header { background: #1e3a8a; color: #ffffff; padding: 4px 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }

.disp-actions-grid { display: grid; grid-template-columns: repeat(8, 1fr) 1.5fr; gap: 5px; padding: 6px; align-items: center; }
.action-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px; padding: 5px 2px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; justify-content: center; }
.action-icon { font-size: 15px; }
.action-lbl { font-size: 9px; font-weight: 700; color: #1e293b; line-height: 1.1; }

.action-summary-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 5px; padding: 5px 6px; display: flex; align-items: center; gap: 6px; height: 100%; }
.action-summary-icon { width: 22px; height: 22px; border-radius: 50%; background: #1d4ed8; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.action-summary-text p { margin: 0; font-size: 9.5px; color: #1e40af; line-height: 1.15; font-weight: 600; }

/* ==========================================================================
   5. RESPONSIVE DESIGN & MOBILE (PORTAIL + LIVRET)
   ========================================================================== */
@media (max-width: 900px) {

  /* --- PORTAIL D'ACCUEIL MOBILE (index.html) --- */
  body.portal-body {
    height: auto !important;
    min-height: 100vh;
    padding: 10px 0 !important;
    align-items: flex-start !important;
    overflow-x: hidden !important;
  }

  .portal-container {
    width: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  .portal-card-hub {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    border-radius: 20px !important;
    width: 100% !important;
  }

  .portal-media {
    height: 180px !important;
  }

  .portal-content {
    padding: 16px 12px !important;
    gap: 16px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .portal-header {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .portal-logo {
    width: 48px !important;
    flex-shrink: 0 !important;
  }

  .portal-title-wrap {
    min-width: 0 !important;
    flex: 1 !important;
  }

  .portal-title-wrap h1 {
    font-size: clamp(22px, 6.5vw, 32px) !important;
    word-break: break-word !important;
    white-space: normal !important;
    line-height: 1.05 !important;
  }

  .portal-tagline {
    font-size: clamp(14px, 4vw, 18px) !important;
  }

  .portal-actions {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .hub-button {
    padding: 14px 16px !important;
    width: 100% !important;
  }

  .portal-news-section {
    padding: 12px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .news-carousel-container {
    flex-direction: column !important;
    width: 100% !important;
  }

  .news-mini-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .carousel-nav-btn {
    display: none !important; /* Masque les flèches encombrantes sur mobile */
  }

  .portal-footer {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
  }


  /* --- LIVRET INTERACTIF MOBILE (livret.html) --- */
  body.livret-body.book-mode {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important; /* Débloque le scroll vertical sur smartphone */
  }

  .book-container {
    grid-template-columns: 1fr !important; /* Passe sur 1 seule colonne */
    height: auto !important;
    padding: 8px !important;
  }

  /* Masque le sommaire latéral sur smartphone pour afficher la page directement */
  .sidebar-sommaire {
    display: none !important; 
  }

  .book-viewport {
    height: auto !important;
    min-height: 80vh !important;
    overflow: visible !important;
  }

  .pages-wrapper {
    overflow: visible !important;
    height: auto !important;
    padding: 10px !important;
  }

  /* Rétablissement de l'affichage de la page active du livret */
  .book-page.active {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* Grilles internes adaptées sur une seule colonne */
  .pop-top-row, .pop-middle-grid, .pop-bottom-three,
  .options-grid, .techno-pro-grid,
  .langues-top-grid, .sec-inter-grid, .ouv-inter-grid,
  .orient-columns-3, .disp-columns-3, .disp-stats-row,
  .formation-blocks-grid, .org-bottom-row, .erasmus-main-grid, .erasmus-bottom-grid {
    grid-template-columns: 1fr !important;
  }

  .specs-columns-4 {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ==========================================================================
   CORRECTIFS RESPONSIVE DÉDIÉS : PAGES 1.3, 1.4 ET 2.4 (MOBILE)
   ========================================================================== */
@media (max-width: 900px) {

  /* --- PAGE 1.3 & 1.4 (POPULATION SCOLAIRE ET INFOGRAPHIES) --- */
  .pop-container,
  .pop-top-row,
  .pop-middle-grid,
  .pop-bottom-three,
  .pop-genre-card,
  .donut-chart-wrapper {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .donut-chart {
    margin: 10px auto !important; /* Centre le graphique donut sur mobile */
  }

  .pop-keys-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .ecart-bars {
    height: auto !important;
    min-height: 80px !important;
    padding: 8px 0 !important;
  }


  /* --- PAGE 2.4 (POLITIQUE D'ORIENTATION) --- */
  .orient-intro-card,
  .orient-tables-grid,
  .orient-columns-3,
  .orient-stats-row {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .orient-stat-pill-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .orient-mini-table {
    display: block !important;
    overflow-x: auto !important; /* Défilement horizontal fluide si le tableau dépasse */
    white-space: nowrap !important;
    width: 100% !important;
  }

  .orient-item-row {
    font-size: 11px !important; /* Remontée légère de la taille pour la lisibilité mobile */
  }

  /* Ajustement de sécurité pour tous les visuels et cartes de ces pages */
  .pop-card,
  .orient-col-card,
  .orient-intro-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   AJOUTS FINAUX : BOUTONS DE SORTIE, PARTENAIRES & RÉSEAUX SOCIAUX
   ========================================================================== */

/* En-tête : Icônes sociales */
.social-links-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 12px;
}

.social-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* Pied de page : Icônes sociales */
.pagination-center-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social-icons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.footer-social-icons img:hover {
  transform: scale(1.2);
}

/* Page 3.4 : Conteneur défilant et mise en page */
.cap2030-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  height: 100%;
  padding-bottom: 10px;
}

/* Boutons de redirection finale */
.final-nav-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.final-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.final-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.final-btn.primary {
  background: var(--purple);
  color: #ffffff;
}

.final-btn.secondary {
  background: #2563eb;
  color: #ffffff;
}

.final-btn.outline {
  background: #f8fafc;
  color: var(--ink);
  border: 1.5px solid #cbd5e1;
}

/* Section Partenaires */
.partners-section-container {
  background: #ffffff;
  border: 1px solid rgba(122, 61, 184, 0.18);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partners-header h4 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  color: var(--purple-dark);
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid var(--purple-light);
  padding-bottom: 4px;
}

.partners-logos-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 14px;
  padding: 6px 0;
}

.partner-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Liens réseaux sociaux dans le bloc de partenaires */
.social-footer-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}

.social-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.social-btn img {
  width: 18px;
  height: 18px;
}

.social-btn.facebook {
  background: #e7f5ff;
  color: #1877f2;
}

.social-btn.instagram {
  background: #fcf0f5;
  color: #e1306c;
}

.social-btn:hover {
  transform: translateY(-2px);
}

/* Correctifs responsive pour mobile */
@media (max-width: 900px) {
  .final-nav-actions {
    grid-template-columns: 1fr !important;
  }
  
  .partners-logos-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    justify-items: center !important;
  }
  
  .social-footer-group {
    flex-direction: column !important;
    gap: 8px !important;
  }
}