/* ============================================================
   UNIVERSITÉS DE PHARMACEUTIQUES 2026 - PWA
   Charte officielle "RECONCILIATION" :
   Bleu roi #1E50B5 + Rouge #E63946 + Jaune #FFCB35 + Crème #F4ECD8
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- Variables --- */
:root {
  /* Palette principale (brochure officielle) */
  --royal-blue: #1E50B5;
  --royal-blue-dark: #163E8E;
  --royal-blue-light: #2A60C8;
  --brand-red: #E63946;
  --brand-red-dark: #C62836;
  --brand-yellow: #FFCB35;
  --brand-cream: #F4ECD8;
  --brand-navy: #0B1A2F;

  /* Surfaces */
  --bg-primary: var(--royal-blue);
  --bg-secondary: var(--royal-blue-dark);
  --bg-card: #ffffff;
  --bg-card-hover: #f5f7fb;
  --bg-soft: rgba(255, 255, 255, 0.08);
  --bg-soft-strong: rgba(255, 255, 255, 0.16);

  /* Texte */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-on-card: #0F1B3D;
  --text-on-card-soft: #4A5A7A;

  /* Bordures */
  --border: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.32);
  --border-card: #E5E9F2;

  /* Métrics */
  --nav-height: 64px;
  --header-height: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
input, select, textarea { font: inherit; }

/* --- App Container --- */
#app {
  height: 100%;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

/* --- Pages --- */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  background: var(--bg-primary);
  z-index: 1;
}

.page.active {
  display: flex;
  z-index: 10;
  animation: pageIn 0.3s ease-out;
}

.page.leaving {
  display: flex;
  z-index: 5;
  animation: pageOut 0.3s ease-in forwards;
}

@keyframes pageIn {
  from { transform: translateX(100%); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pageOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-30%); opacity: 0; }
}

/* --- Page Header --- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  padding: 0 16px;
  padding-top: var(--safe-top);
  background: var(--royal-blue-dark);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  color: var(--text-primary);
}

.page-header h2 {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.back-btn,
.search-toggle-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding-top: var(--safe-top);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.back-btn { left: 12px; }
.search-toggle-btn { right: 12px; }

.back-btn svg { width: 24px; height: 24px; }
.search-toggle-btn svg { width: 22px; height: 22px; }

/* --- Page Content --- */
.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px);
}

/* --- Scrollbar --- */
.page-content::-webkit-scrollbar { width: 3px; }
.page-content::-webkit-scrollbar-track { background: transparent; }
.page-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* ============================================================
   SPLASH (1ère page) — fidèle à la brochure
   ============================================================ */
#page-splash {
  /* Bleu exact de l'affiche (#184AB2) pour une continuité parfaite avec l'image */
  background: #184AB2;
  z-index: 100;
}

#page-splash .page-content {
  padding-bottom: 0;
  position: relative;
}

/* ===== Accueil = affiche officielle plein écran ===== */
.splash-affiche {
  position: absolute;
  inset: 0;
  background: #184AB2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.splash-affiche-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
  animation: splashFadeUp 0.7s ease-out;
}

/* Bouton "Entrer" superposé en bas de l'affiche */
#page-splash .splash-enter {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 30px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--royal-blue);
  color: #ffffff;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.4);
}

#page-splash .splash-enter svg {
  stroke: #ffffff;
}

#page-splash .splash-enter:active {
  transform: translateX(-50%) scale(0.96);
}

.splash-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100%;
  padding: 60px 28px 40px;
  position: relative;
  overflow: hidden;
}

/* Hexagones décoratifs grands croppés aux bords */
.splash-hex {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 0;
}

/* Hexagone bleu foncé en haut-gauche (cropped) */
.splash-hex-1 {
  width: 280px;
  height: 280px;
  background: var(--royal-blue-dark);
  top: -140px;
  left: -120px;
}

/* Hexagone rouge bas-droite (cropped) */
.splash-hex-2 {
  width: 320px;
  height: 320px;
  background: var(--brand-red);
  bottom: -110px;
  right: -130px;
}

/* Hexagone jaune/olive bas-gauche */
.splash-hex-3 {
  width: 220px;
  height: 220px;
  background: #B8A53A;
  bottom: -70px;
  left: -90px;
  opacity: 0.85;
}

/* Hexagone crème en bas */
.splash-hex-4 {
  width: 180px;
  height: 180px;
  background: var(--brand-cream);
  bottom: 280px;
  right: -90px;
  opacity: 0.95;
}

/* Pattern de points */
.splash-dots {
  position: absolute;
  background-image: radial-gradient(circle, rgba(255,255,255,0.35) 2.2px, transparent 2.2px);
  background-size: 14px 14px;
  z-index: 0;
}

.splash-dots-1 {
  top: 80px;
  right: 30px;
  width: 110px;
  height: 130px;
}

.splash-dots-2 {
  bottom: 180px;
  left: 30px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, var(--royal-blue) 2.2px, transparent 2.2px);
}

/* Contenu splash */
.splash-text {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  margin-top: 20px;
  animation: splashFadeUp 0.8s ease-out;
}

.splash-edition {
  display: inline-block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.splash-title {
  font-family: 'Anton', sans-serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  color: #ffffff;
  text-transform: uppercase;
}

.splash-title .title-line {
  display: block;
}

.splash-title .title-pharma {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.5px;
  text-transform: none;
  margin-top: 6px;
  color: #ffffff;
}

/* Logo officiel "Les Universités de Pharmaceutiques" (haut de l'accueil) */
.splash-logo {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

/* Logo "Pharmaceutiques" (bas de l'accueil) */
.splash-brand-logo {
  display: block;
  width: 300px;
  max-width: 82%;
  height: auto;
  margin: 0 auto;
  opacity: 0.95;
}

/* "RECONCILIATION" avec effet d'écho */
.splash-theme-wrap {
  position: relative;
  margin-bottom: 36px;
  height: 110px;
}

.splash-theme {
  position: absolute;
  left: 0;
  right: 0;
  font-family: 'Anton', sans-serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.splash-theme.echo-1 {
  color: var(--brand-red);
  top: 0;
}

.splash-theme.echo-2 {
  color: rgba(244, 236, 216, 0.55);
  top: 32px;
  font-size: 32px;
}

.splash-theme.echo-3 {
  color: rgba(255, 203, 53, 0.4);
  top: 60px;
  font-size: 28px;
}

.splash-info {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 500;
}

.splash-info strong {
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}

.splash-enter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px;
  background: var(--brand-cream);
  color: var(--royal-blue);
  font-size: 17px;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
}

.splash-enter:active {
  transform: scale(0.96);
}

.splash-enter svg {
  width: 22px;
  height: 22px;
  stroke: var(--royal-blue);
}

.splash-brand {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

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

/* ============================================================
   ACCUEIL / SOMMAIRE
   ============================================================ */
#page-sommaire {
  background: var(--royal-blue);
}

.sommaire-banner {
  position: relative;
  background: linear-gradient(135deg, var(--royal-blue-dark) 0%, var(--royal-blue) 100%);
  padding: 22px 22px 24px;
  margin: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.sommaire-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--brand-red);
  opacity: 0.85;
}

.sommaire-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--brand-yellow);
  opacity: 0.5;
}

.banner-edition {
  display: block;
  font-size: 11px;
  color: var(--brand-yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.banner-title {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.banner-theme {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--brand-red);
  background: rgba(255, 255, 255, 0.96);
  padding: 3px 10px;
  border-radius: 4px;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.banner-date {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Grille */
.sommaire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 6px 14px 14px;
}

.sommaire-tile {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.15s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 2px solid transparent;
}

.sommaire-tile:active {
  transform: scale(0.97);
  border-color: var(--brand-yellow);
}

.tile-icon {
  width: 58px;
  height: 58px;
  background: var(--royal-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon svg {
  width: 30px;
  height: 30px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Variations colorées pour chaque tuile */
.sommaire-tile.tile-red .tile-icon { background: var(--brand-red); }
.sommaire-tile.tile-yellow .tile-icon { background: var(--brand-yellow); }
.sommaire-tile.tile-yellow .tile-icon svg { stroke: var(--royal-blue); }
.sommaire-tile.tile-cream .tile-icon { background: var(--brand-cream); }
.sommaire-tile.tile-cream .tile-icon svg { stroke: var(--royal-blue); }
.sommaire-tile.tile-blue .tile-icon { background: var(--royal-blue); }

.tile-label {
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--royal-blue);
  text-align: center;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  padding: 0 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--royal-blue-dark);
}

.search-bar.open {
  max-height: 60px;
  padding: 8px 12px;
}

.search-bar input {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-on-card);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input::placeholder {
  color: var(--text-on-card-soft);
}

.search-bar input:focus {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(255, 203, 53, 0.3);
}

/* --- Sort Bar --- */
.sort-bar {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: var(--royal-blue);
  gap: 6px;
}

.sort-bar select {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  padding: 6px 12px;
  border-radius: 6px;
}

.sort-bar select option {
  background: #ffffff;
  color: var(--text-on-card);
}

.sort-label {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* ============================================================
   LISTS (Participants & Intervenants)
   ============================================================ */
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  transition: background 0.15s;
  cursor: pointer;
  color: var(--text-on-card);
}

.list-item:active {
  background: var(--bg-card-hover);
}

/* Avatar */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: var(--royal-blue);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;   /* cadrage biaisé vers le haut : garde la tête entière */
}

.avatar.large {
  width: 140px;
  height: 140px;
  font-size: 40px;
  border: 4px solid var(--brand-cream);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.list-info {
  flex: 1;
  min-width: 0;
}

.list-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-on-card);
}

.list-function {
  font-size: 13px;
  color: var(--text-on-card-soft);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.list-company {
  font-size: 13px;
  color: var(--royal-blue);
  font-weight: 700;
  margin-top: 2px;
}

.list-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--royal-blue);
  opacity: 0.5;
}

/* Letter separator */
.letter-separator {
  padding: 8px 16px;
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--brand-yellow);
  background: var(--royal-blue-dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: rgba(255,255,255,0.85);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ============================================================
   INTERVENANT DETAIL
   ============================================================ */
.detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 28px;
  background: linear-gradient(180deg, var(--royal-blue-dark) 0%, var(--royal-blue) 100%);
  position: relative;
  overflow: hidden;
}

.detail-header::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--brand-red);
  opacity: 0.35;
}

.detail-name {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.8px;
  margin-top: 18px;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.detail-function {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.detail-company {
  font-size: 15px;
  color: var(--brand-yellow);
  margin-top: 4px;
  font-weight: 700;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Sections */
.detail-section {
  padding: 18px 16px 8px;
}

.detail-section-title {
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--brand-yellow);
  margin-bottom: 12px;
  padding: 0 4px;
}

.detail-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text-on-card);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.detail-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-card);
}

.detail-card-row:last-child {
  border-bottom: none;
}

.detail-card-row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--royal-blue);
}

.detail-card-row a {
  color: var(--royal-blue);
  font-size: 14px;
  word-break: break-all;
  font-weight: 600;
}

.detail-card-row span {
  font-size: 14px;
  color: var(--text-on-card);
}

.detail-bio {
  font-size: 14px;
  line-height: 1.7;
  color: #ffffff;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Paragraphes & italique dans les textes longs (bio, description) */
.detail-bio p,
.partner-description p {
  margin: 0 0 0.85em;
}
.detail-bio p:last-child,
.partner-description p:last-child {
  margin-bottom: 0;
}
.detail-bio em,
.partner-description em {
  font-style: italic;
}

/* Sessions */
.detail-session {
  background: #ffffff;
  color: var(--text-on-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-session-time {
  font-size: 12px;
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.detail-session-title {
  font-size: 14px;
  font-weight: 700;
}

/* ============================================================
   PROGRAMME
   ============================================================ */
.tabs {
  display: flex;
  background: var(--royal-blue-dark);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  position: relative;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

.tab.active {
  color: var(--brand-yellow);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--brand-yellow);
  border-radius: 3px 3px 0 0;
}

/* Session cards */
.session-card {
  margin: 8px 12px;
  background: #ffffff;
  color: var(--text-on-card);
  border-radius: var(--radius);
  padding: 16px;
  transition: background 0.15s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.session-card:active {
  background: var(--bg-card-hover);
}

/* Session en cours (jour J) — mise en surbrillance + scroll auto */
.session-card.session-current {
  border: 2px solid var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(255, 203, 53, 0.25), 0 4px 16px rgba(0, 0, 0, 0.18);
  scroll-margin-top: 80px;
}

.session-card.session-current.pause {
  border: 2px solid var(--brand-yellow);
}

.session-live {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--brand-yellow);
  color: var(--royal-blue-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.session-card.pause {
  background: transparent;
  border: 1px dashed var(--border-strong);
  text-align: center;
  padding: 12px;
  color: rgba(255,255,255,0.85);
  box-shadow: none;
}

.session-card.pause .session-time {
  color: var(--brand-cream);
}

.session-card.pause .session-title {
  color: rgba(255,255,255,0.85) !important;
}

.session-time {
  font-size: 12px;
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.session-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Intervention mise en avant (ex. Benjamin Haddad) : carte rouge */
.session-intervention {
  background: var(--brand-red);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
}
.session-intervention .session-time,
.session-intervention .session-title {
  color: #ffffff;
}
.session-intervention .session-speaker {
  color: rgba(255, 255, 255, 0.95);
}
.session-intervention .session-speaker::before {
  color: #ffffff;
}
.label-intervention {
  background: #ffffff;
  color: var(--brand-red);
}

.label-table-ronde { background: rgba(30, 80, 181, 0.15); color: var(--royal-blue); }
.label-plenary { background: rgba(230, 57, 70, 0.15); color: var(--brand-red); }
.label-dialogue { background: rgba(168, 85, 247, 0.18); color: #7c3aed; }
.label-temoignages { background: rgba(255, 203, 53, 0.25); color: #a07a08; }
.label-pour-aller-plus-loin { background: rgba(236, 72, 153, 0.18); color: #be185d; }
.label-opinions { background: rgba(20, 184, 166, 0.18); color: #0d9488; }
.label-pause { color: var(--brand-cream); }

.session-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-on-card);
}

.session-description {
  font-size: 13px;
  color: var(--text-on-card-soft);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.session-description.expanded {
  -webkit-line-clamp: unset;
}

.session-read-more {
  font-size: 12px;
  color: var(--royal-blue);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
}

.session-speakers {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-speaker {
  font-size: 12px;
  color: var(--text-on-card-soft);
  padding-left: 12px;
  position: relative;
}

.session-speaker::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: 900;
}
/* Lignes "note" (Echange avec…, Trois entrepreneurs…) : sans puce */
.session-speaker--note {
  padding-left: 0;
  font-style: italic;
  opacity: 0.9;
}
.session-speaker--note::before {
  content: none;
}
/* Saut de ligne avant "Echange avec :" */
.session-speaker--break {
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  opacity: 1;
}

/* Note de bas de journée : (*) en attente de confirmation */
.programme-footnote {
  font-size: 12px;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  padding: 6px 12px 20px;
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 8px;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--brand-yellow);
  color: var(--royal-blue);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
}

/* ============================================================
   PARTENAIRES
   ============================================================ */
.partner-category {
  padding: 20px 16px 8px;
}

.partner-category-title {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  color: var(--brand-yellow);
}

/* Page Partenaires : contenu (intro + logos) centré verticalement dans la page */
#list-partenaires {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Grille de logos partenaires (mur de partenaires) */
.partners-intro {
  text-align: center;
  color: var(--brand-yellow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  padding: 18px 24px 2px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 6px 18px;
}

.partner-tile {
  background: #ffffff;
  border-radius: var(--radius);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease;
}

.partner-tile:active {
  transform: scale(0.97);
}

/* Grille 2 colonnes : logos normalisés par surface (gabarit identique 440×160) */
.partner-tile img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Dernier logo seul (nombre impair, ex. Simmons) : tuile BLANCHE pleine largeur,
   logo centré à ~même hauteur que les autres (un poil plus grand car seul sur sa rangée) */
.partner-grid > .partner-tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.partner-grid > .partner-tile:last-child:nth-child(odd) img {
  max-width: 56%;
}

.partner-tile-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-on-card);
  text-align: center;
}


.partner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 0 12px 8px;
  background: #ffffff;
  color: var(--text-on-card);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.partner-card:active {
  background: var(--bg-card-hover);
}

.partner-logo {
  width: 56px;
  height: 56px;
  background: var(--brand-cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--royal-blue);
  text-align: center;
  padding: 4px;
  line-height: 1.1;
  overflow: hidden;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-on-card);
  flex: 1;
  text-align: center;
}

.partner-initial {
  font-size: 12px;
  color: var(--text-on-card-soft);
  margin-right: 8px;
}

/* Carte « logo seul » : le logo occupe le cartouche blanc, centré */
.partner-card--logo {
  justify-content: center;
  min-height: 84px;
}

.partner-card--logo .partner-logo {
  width: auto;
  height: 64px;
  flex: 1;
  background: transparent;
  border-radius: 0;
  padding: 4px 8px;
}

.partner-card--logo .partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: linear-gradient(180deg, var(--royal-blue-dark) 0%, var(--royal-blue) 100%);
}

.partner-detail-logo {
  width: 240px;
  max-width: 78vw;
  height: 108px;
  background: #ffffff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  color: var(--royal-blue);
  margin-bottom: 16px;
  padding: 18px 22px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.partner-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-detail-name {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
}

.partner-detail-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-yellow);
  margin-top: 6px;
  font-weight: 700;
}

.partner-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-on-card);
  padding: 14px 16px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.filter-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--royal-blue-dark);
}

.filter-select {
  padding: 8px 18px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50px;
  color: var(--royal-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.filter-select option {
  background: #ffffff;
  color: var(--text-on-card);
}

/* ============================================================
   INFOS PRATIQUES
   ============================================================ */
#page-infos {
  background: var(--royal-blue);
}

.infos-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  margin-bottom: 8px;
}

.infos-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.infos-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 26, 47, 0) 50%, var(--royal-blue) 100%);
}

.infos-section {
  padding: 14px 16px 6px;
}

.infos-section-title {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-yellow);
  margin-bottom: 10px;
}

.infos-card {
  background: #ffffff;
  color: var(--text-on-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 8px;
}

.infos-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-on-card);
  margin-bottom: 4px;
}

.infos-card .infos-address {
  font-size: 14px;
  color: var(--text-on-card-soft);
  line-height: 1.5;
  margin-bottom: 12px;
}

.infos-itinerary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--royal-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.3px;
}

.infos-itinerary-btn svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
}

.infos-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 8px 14px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.3px;
  align-self: flex-start;
}
.infos-doc-btn svg {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
}

.infos-map {
  margin: 0 16px 8px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 240px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 2px solid var(--brand-cream);
}

/* Plan d'accès (image cliquable vers le PDF) */
.infos-plan {
  display: block;
  margin: 0 16px 8px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 2px solid var(--brand-cream);
  background: #fff;
}
.infos-plan img {
  display: block;
  width: 100%;
  height: auto;
}

.infos-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.infos-transport-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-card);
}

.infos-transport-item:last-child { border-bottom: none; }

.infos-transport-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(30, 80, 181, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infos-transport-icon svg {
  width: 18px;
  height: 18px;
  color: var(--royal-blue);
}

.infos-transport-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.infos-transport-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-on-card);
  margin-bottom: 2px;
}

.infos-transport-text span {
  font-size: 13px;
  color: var(--text-on-card-soft);
  line-height: 1.5;
}

.infos-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  color: var(--text-on-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid var(--brand-red);
}

.infos-contact-card.primary {
  border-left-color: var(--brand-yellow);
  background: linear-gradient(135deg, #fffbea 0%, #ffffff 100%);
}

.infos-contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--royal-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.infos-contact-info { flex: 1; min-width: 0; }

.infos-contact-info strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-on-card);
}

.infos-contact-info .infos-contact-function {
  display: block;
  font-size: 12px;
  color: var(--text-on-card-soft);
  margin-bottom: 6px;
}

.infos-contact-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.infos-contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(30, 80, 181, 0.08);
  color: var(--royal-blue);
}

.infos-contact-actions a svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--royal-blue-dark);
  border-top: 1px solid var(--border);
  display: none;
  align-items: stretch;
  z-index: 1000;
}

#bottom-nav.visible {
  display: flex;
}

.nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 2px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  position: relative;
}

.nav-item.active {
  color: var(--brand-yellow);
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.nav-item span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   INSTALL BANNERS
   ============================================================ */
#install-banner,
#ios-install-banner,
#ios-not-safari-banner {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 406px;
  background: #ffffff;
  color: var(--text-on-card);
  border: 2px solid var(--brand-yellow);
  border-radius: var(--radius);
  padding: 14px 16px;
  z-index: 2000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

#install-banner {
  display: flex;
  align-items: center;
  gap: 12px;
}

#install-banner.hidden,
#ios-install-banner.hidden,
#ios-not-safari-banner.hidden { display: none; }

#install-banner p {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-on-card);
}

#install-banner .install-btn,
.ios-copy-btn {
  padding: 9px 20px;
  background: var(--royal-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
}

.ios-copy-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  font-size: 14px;
  text-align: center;
}

#install-banner .dismiss-btn,
#ios-install-banner .dismiss-btn,
#ios-not-safari-banner .dismiss-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-card-soft);
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

#ios-install-banner .dismiss-btn,
#ios-not-safari-banner .dismiss-btn {
  position: absolute;
  top: 6px;
  right: 6px;
}

.ios-install-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-on-card);
  margin-bottom: 12px;
}

.ios-install-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ios-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-on-card-soft);
  line-height: 1.4;
}

.ios-step strong {
  color: var(--royal-blue);
}

.ios-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--royal-blue);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-share-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  color: var(--royal-blue);
  margin: 0 2px;
}

.ios-step-hint {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-card);
  font-size: 12px;
  opacity: 0.8;
}

.ios-step-hint .ios-step-num {
  background: rgba(30,80,181,0.12);
  color: var(--text-on-card-soft);
  font-size: 11px;
}

#ios-not-safari-banner .ios-install-title {
  margin-bottom: 10px;
}

.ios-safari-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--royal-blue);
}

.ios-arrow-down {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--brand-yellow);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden { display: none !important; }

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 431px) {
  body {
    background: var(--royal-blue-dark);
  }

  #app {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  }
}

@supports (padding-top: env(safe-area-inset-top)) {
  .page-header {
    height: calc(var(--header-height) + var(--safe-top));
  }
}
