/* ==========================================================================
   Portfolio Management de Projet & Arts : Style Ana Mosaic (ana.sh)
   Esthetique : Sombre organique, points de couleur vibrants, textures 35mm
   Strict zero em-dash rule in all comments and text
   ========================================================================== */

:root {
  /* Fond et Surfaces */
  --bg-base: #0A0D12;
  --bg-surface: #12161F;
  --bg-surface-elevated: #181E2A;
  --bg-surface-hover: #1D2331;
  --bg-drawer: #0D1016;

  /* Bordures */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);

  /* Ombre unique douce */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.6);

  /* Accent unique + sémantiques rares */
  --accent: #A78BFA;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --accent-border: rgba(167, 139, 250, 0.35);
  --status-green: #10B981;

  /* Typographie : display / corps / metadata */
  --font-display: 'Playfair Display', 'Didot', 'Georgia', serif;
  --font-serif: 'Playfair Display', 'Didot', 'Georgia', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', monospace;

  /* Textes */
  --text-primary: #EDEDEF;
  --text-secondary: #A6ADBB;
  --text-muted: #8A8F98;

  /* Formes et mouvement */
  --radius-card: 20px;
  --radius-inner: 12px;
  --radius-pill: 9999px;
  --spring-snappy: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --spring-fluid: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  color-scheme: dark;
  background-color: var(--bg-base);
  font-family: var(--font-sans);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-base);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Texture de grain argentique 35mm physique */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url('../assets/textures/grain.svg');
  background-repeat: repeat;
  opacity: 0.05;
  z-index: 9999;
}

.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 56px 32px;
}

/* Hero display type Snellenberg */
.hero-display {
  padding: 56px 8px 36px 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.hero-display-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-subrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 10px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.hero-btn.primary {
  background: var(--text-primary);
  color: #0A0D12;
  border-color: var(--text-primary);
}

.hero-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

/* Reveal on scroll discret */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s var(--spring-fluid);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Header / Top Navigation
   ========================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--spring-snappy), border-color 0.2s ease;
}

.brand-monogram img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
}

.brand-monogram:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.nav-right-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.nav-pill-link:hover,
.nav-pill-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.pill-count {
  color: var(--accent);
  font-weight: 600;
}

.nav-location-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.location-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.location-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* ==========================================================================
   Layout Principal : Colonne Profil (320px) + Mosaïque Bento
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

/* ==========================================================================
   Colonne Profil Gauche Incarnée (Style Ana)
   ========================================================================== */
/* Colonne profil statique façon Ana : elle reste, le reste défile */
.profile-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
}

.profile-column::-webkit-scrollbar {
  display: none;
}

.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.avatar-bio-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.avatar-container {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.avatar-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.avatar-silhouette {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: block;
}

.profile-intro-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.intro-greeting {
  font-size: 14.5px;
  font-weight: 500;
  color: #FFFFFF;
}

.name-highlight {
  color: var(--accent);
  font-weight: 700;
}

.intro-description {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.fun-facts-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.section-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.fun-facts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fun-facts-list li {
  position: relative;
  padding-left: 14px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #CBD5E1;
}

.fun-facts-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.portrait-featured-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.portrait-frame {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #08090C;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.portrait-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-lens-flare {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at top right, rgba(167, 139, 250, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.caption-tag {
  color: #94A3B8;
  font-weight: 600;
}

.profile-contact-strip {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.contact-prompt {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.contact-link:hover {
  color: #C4B5FD;
  text-decoration: underline;
}

/* ==========================================================================
   Grille Mosaïque Bento Centrale (12 modules asymétriques)
   ========================================================================== */
.bento-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--spring-snappy);
  overflow: hidden;
}

/* Effet Spotlight discret, uniquement sur cartes cliquables */
.bento-card::before,
.profile-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.035),
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.bento-card:hover::before,
.profile-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.mini-card-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.mini-card-kicker svg {
  color: var(--text-muted);
}

/* ==========================================================================
   Module 1 : Statut (Compact 1x1)
   ========================================================================== */
.card-status {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px 0;
}

.status-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.status-live-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--status-green);
}

.status-role-focus {
  font-size: 11.5px;
  line-height: 1.4;
  color: #CBD5E1;
}

/* Module Paris Live (fusion statut + meteo) */
.card-paris-live {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Liste texte sociaux style Snellenberg */
.social-text-list {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.social-row:first-child {
  border-top: none;
}

.social-row:hover {
  color: var(--text-primary);
  padding-left: 6px;
}

.social-row .arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

/* ==========================================================================
   Module 2 : Météo Paris (Compact 1x1)
   ========================================================================== */
.card-weather {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.weather-temp-display {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 8px 0;
}

.weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.weather-icon:empty {
  display: none;
}

.temp-big {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
}

.weather-sky-cond {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.weather-clock-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
}

.clock-live-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.clock-tz {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

/* ==========================================================================
   Module 3 : Carte Mapbox Dark Paris (Span 1 ou 2)
   ========================================================================== */
.card-paris-map {
  grid-column: span 1;
  padding: 0 !important;
  height: 155px;
}

.map-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-underlay-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-floating-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(10, 13, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #FFFFFF;
  backdrop-filter: blur(6px);
}

.pin-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ==========================================================================
   Module 4 : Polaroid Tilted Photo Stack (Span 1)
   ========================================================================== */
.card-polaroid-stack {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.polaroid-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.polaroid-photo-tilted {
  width: 110px;
  height: 130px;
  transform: rotate(3.5deg);
  transition: transform 0.35s var(--spring-snappy), filter 0.35s ease;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7));
  cursor: pointer;
}

.card-polaroid-stack:hover .polaroid-photo-tilted {
  transform: rotate(0deg) scale(1.06) translateY(-4px);
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.85));
}

.polaroid-img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Module 5 : Currently Listening Compact (Span 2 ou 1)
   ========================================================================== */
.card-audio-compact {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

.ambient-audio-halo {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.22);
  filter: blur(24px);
  pointer-events: none;
  transition: background 0.5s ease;
}

.audio-compact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.audio-wave-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}

.audio-wave-equalizer span {
  width: 3px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.4;
  transition: height 0.2s ease;
}

.card-audio-compact.is-playing .audio-wave-equalizer span:nth-child(1) { animation: barPlay 0.7s infinite alternate ease-in-out; }
.card-audio-compact.is-playing .audio-wave-equalizer span:nth-child(2) { animation: barPlay 0.9s 0.2s infinite alternate ease-in-out; }
.card-audio-compact.is-playing .audio-wave-equalizer span:nth-child(3) { animation: barPlay 0.6s 0.4s infinite alternate ease-in-out; }
.card-audio-compact.is-playing .audio-wave-equalizer span:nth-child(4) { animation: barPlay 0.8s 0.1s infinite alternate ease-in-out; }

@keyframes barPlay {
  0% { height: 3px; opacity: 0.4; }
  100% { height: 12px; opacity: 1; }
}

.audio-track-compact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 10px 0;
  position: relative;
  z-index: 1;
}

.audio-cover-mini {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.audio-cover-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.audio-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.track-title-mini {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist-mini {
  font-size: 10.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-compact-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.mini-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #000000;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s var(--spring-snappy);
}

.mini-play-btn:hover {
  transform: scale(1.08);
}

.mini-play-btn .icon-pause {
  display: none;
}

.card-audio-compact.is-playing .mini-play-btn .icon-play {
  display: none;
}

.card-audio-compact.is-playing .mini-play-btn .icon-pause {
  display: block;
}

.mini-progress-rail {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.mini-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.mini-skip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mini-skip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* ==========================================================================
   Module 6 : Anneaux d'Activité Cinéphile (Style Apple Fitness d'Ana)
   ========================================================================== */
.card-activity-rings {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rings-svg-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.activity-rings-svg {
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.animated-ring {
  transition: stroke-dashoffset 1s var(--spring-fluid);
}

.rings-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #CBD5E1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-pink { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.dot-green { width: 6px; height: 6px; border-radius: 50%; background: rgba(237, 237, 239, 0.5); display: inline-block; }
.dot-cyan { width: 6px; height: 6px; border-radius: 50%; background: rgba(237, 237, 239, 0.25); display: inline-block; }

/* ==========================================================================
   Module 7 : Dossier 3D Tactile (Style Ana Lavande)
   ========================================================================== */
.card-folder-3d {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(145, 129, 255, 0.08) 0%, var(--bg-surface) 75%);
}

.folder-3d-visual {
  width: 100px;
  height: 80px;
  margin-bottom: 8px;
  transition: transform 0.35s var(--spring-snappy);
}

.card-folder-3d:hover .folder-3d-visual {
  transform: scale(1.1) translateY(-4px);
}

.folder-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.folder-label-under {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folder-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.folder-action {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
}

/* ==========================================================================
   Module 8 : Carte Critique / Blog (Style Ana Blog : split texte / photo)
   ========================================================================== */
.card-blog-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  padding: 0 !important;
  overflow: hidden;
}

.blog-content-side {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
  margin: 4px 0 6px 0;
}

.blog-card-excerpt {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
}

.blog-read-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: #FFFFFF;
  transform: translateX(2px);
}

.blog-poster-side {
  position: relative;
  width: 100%;
  height: 100%;
  background: #090B0E;
}

.blog-movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-score-floating {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  padding: 2px 6px;
}

/* ==========================================================================
   Module 9 : Pinacothèque Caravage (Éventail Dynamique)
   ========================================================================== */
.card-caravaggio-fan {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.caravaggio-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.link-to-gallery {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  text-decoration: none;
}

.link-to-gallery:hover {
  text-decoration: underline;
}

.caravaggio-stage {
  position: relative;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.stack-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caravaggio-card {
  position: absolute;
  width: 70px;
  height: 95px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: transform 0.35s var(--spring-snappy), z-index 0s, border-color 0.2s ease;
}

.caravaggio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Eventail compact */
.caravaggio-card[data-index="0"] { transform: translateX(-38px) translateY(4px) rotate(-8deg); z-index: 1; }
.caravaggio-card[data-index="1"] { transform: translateX(-19px) translateY(2px) rotate(-4deg); z-index: 2; }
.caravaggio-card[data-index="2"] { transform: translateX(0px) translateY(0px) rotate(0deg); z-index: 3; }
.caravaggio-card[data-index="3"] { transform: translateX(19px) translateY(2px) rotate(4deg); z-index: 4; }
.caravaggio-card[data-index="4"] { transform: translateX(38px) translateY(4px) rotate(8deg); z-index: 5; }

.caravaggio-stage:hover .caravaggio-card[data-index="0"] { transform: translateX(-55px) rotate(-12deg); }
.caravaggio-stage:hover .caravaggio-card[data-index="1"] { transform: translateX(-28px) rotate(-6deg); }
.caravaggio-stage:hover .caravaggio-card[data-index="2"] { transform: translateX(0px) translateY(-6px); }
.caravaggio-stage:hover .caravaggio-card[data-index="3"] { transform: translateX(28px) rotate(6deg); }
.caravaggio-stage:hover .caravaggio-card[data-index="4"] { transform: translateX(55px) rotate(12deg); }

.caravaggio-card:hover {
  transform: translateY(-4px) !important;
  z-index: 50 !important;
  border-color: var(--accent);
}

.caravaggio-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
}

.active-art-label {
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* ==========================================================================
   Module 10 : Grille Réseaux Sociaux (Style Ana : 6 squircles vibrantes)
   ========================================================================== */
.card-socials-grid {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.social-squircles-cluster {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 6px;
  justify-items: center;
  align-items: center;
}

.squircle-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--spring-snappy), filter 0.25s ease;
  cursor: pointer;
}

.squircle-icon:hover {
  transform: scale(1.12) translateY(-2px);
  filter: brightness(1.15);
}

.squircle-icon.letterboxd {
  background: #14181C;
  border: 1px solid #2C3440;
  color: #00E054;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 11px;
}

.squircle-icon.instagram {
  background: linear-gradient(45deg, #F58529 0%, #D62976 50%, #962FBF 100%);
  color: #FFFFFF;
}

.squircle-icon.imdb {
  background: #F5C518;
  color: #000000;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 10.5px;
}

.squircle-icon.spotify {
  background: #1DB954;
  color: #000000;
}

.squircle-icon.linkedin {
  background: #0A66C2;
  color: #FFFFFF;
}

.squircle-icon.art-vault {
  background: #7C3AED;
  color: #FFFFFF;
}

/* ==========================================================================
   Module : Google Maps Local Guide Recommandations
   ========================================================================== */
.card-maps-guide {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.maps-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.maps-profile-link {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.2s ease;
}

.maps-profile-link:hover {
  text-decoration: underline;
}

/* Fiche Local Guide Style Google Maps Officiel */
.maps-profile-card {
  background: #FDFBF7;
  border-radius: 12px;
  padding: 14px 16px;
  color: #1F2937;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.maps-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.maps-avatar-badge {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.maps-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0B1215;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.maps-star-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFB300;
  color: #FFFFFF;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.maps-user-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.maps-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.maps-level-title {
  font-size: 11.5px;
  color: #4B5563;
  font-weight: 500;
}

.maps-quote {
  font-size: 11.5px;
  line-height: 1.45;
  color: #374151;
  margin: 0;
}

/* Barre de progression Google Maps Points */
.maps-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.maps-progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #E5E7EB;
  overflow: visible;
}

.maps-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4285F4 0%, #34A853 45%, #FBBC05 85%, #EA4335 100%);
}

.maps-progress-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D97706;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.maps-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #4B5563;
}

.maps-progress-labels strong {
  color: #111827;
  font-weight: 700;
}

/* Grille de stats Maps */
.maps-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #E5E7EB;
}

.maps-stat-item {
  display: flex;
  flex-direction: column;
}

.maps-stat-val {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

.maps-stat-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #6B7280;
}

/* Liste des lieux recommandés cliquables */
.maps-places-curated {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.curated-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.curated-chips-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.maps-place-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.maps-place-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.chip-flag {
  font-size: 15px;
  flex-shrink: 0;
}

.chip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.chip-text strong {
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-text em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-arrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Module 11 : Mini-Chat Le Projectionniste (Style Ana CatGPT)
   ========================================================================== */
.card-mini-chat {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chat-speech-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #E2E8F0;
  margin: 4px 0 8px 0;
  min-height: 48px;
}

.chat-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chat-prompt-pill {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-prompt-pill:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.45);
  color: var(--accent);
}

/* ==========================================================================
   Tiroir Lateral : Base Critique Complete (796 Films)
   ========================================================================== */
.blog-overlay-backdrop,
.blog-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: block;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  transition: opacity 0.35s ease;
}

.blog-overlay-backdrop.active,
.blog-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.blog-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 700px;
  max-width: 100vw;
  height: 100%;
  background: var(--bg-drawer);
  border-left: 1px solid var(--border-hover);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.9);
  transform: translateX(100%);
  transition: transform 0.4s var(--spring-snappy);
  display: flex;
  flex-direction: column;
  z-index: 10001;
}

.blog-overlay-backdrop.active .blog-drawer-panel,
.blog-drawer-overlay.active .blog-drawer-panel {
  transform: translateX(0);
}

.drawer-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-title-cluster {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
}

.drawer-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
}

.drawer-fullscreen-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
}

.drawer-fullscreen-link:hover {
  color: #C4B5FD;
  text-decoration: underline;
}

.drawer-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.drawer-controls-box {
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-ico {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.search-field {
  width: 100%;
  padding: 8px 36px 8px 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-field:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

.drawer-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.filter-pill-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.drawer-stats-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.sort-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-select {
  background: #111114;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 3px 8px;
  outline: none;
}

.drawer-movies-grid,
#movie-grid {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
}

.movie-card {
  background: #121418;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s var(--spring-snappy), border-color 0.2s ease, background 0.2s ease;
}

.movie-card-thumb-wrap {
  width: 46px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #0b0f12;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.movie-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.movie-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.movie-card:hover {
  transform: translateY(-2px);
  background: #171A20;
  border-color: var(--border-hover);
}

.movie-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.movie-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.score-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}

.score-badge.nine {
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.score-badge.eight {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.score-badge.regular {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.score-badge.flop {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.movie-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.movie-card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.genre-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Modale Caravage
   ========================================================================== */
.detail-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10005;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: visibility 0.3s ease;
}

.detail-modal-overlay.active {
  visibility: visible;
}

.detail-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-modal-overlay.active .detail-modal-backdrop {
  opacity: 1;
}

.detail-modal-card {
  position: relative;
  z-index: 10006;
  width: 600px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  background: #111115;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95);
  padding: 22px;
  transform: scale(0.95);
  transition: transform 0.35s var(--spring-snappy);
}

.detail-modal-overlay.active .detail-modal-card {
  transform: scale(1);
}

.modal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-work-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
  color: #FFFFFF;
}

.modal-close-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.modal-artwork-wrapper {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}

.modal-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-cartel-info {
  margin-bottom: 12px;
}

.cartel-attribution {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.cartel-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-essay-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-bottom: 12px;
}

.essay-label, .palette-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.essay-text {
  font-size: 12px;
  line-height: 1.55;
  color: #D1D5DB;
  margin-top: 4px;
}

.modal-palette-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.modal-palette-strip {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.palette-swatch {
  width: 30px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Module central Projets façon Ana : dossier avec fichiers
   ========================================================================== */
.projects-folder {
  margin-top: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-margin-top: 20px;
}

.projects-tab {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 8px 18px;
  margin: 14px 0 0 22px;
}

.projects-files {
  border-top: 1px solid var(--border-subtle);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-inner);
  text-decoration: none;
  transition: background 0.25s var(--spring-fluid), transform 0.25s var(--spring-snappy);
}

.project-file:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: var(--accent);
  font-size: 17px;
  flex-shrink: 0;
}

.file-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.file-text strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.file-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
}

.file-arrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.25s var(--spring-snappy);
}

.project-file:hover .file-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1140px) {
  .main-layout {
    grid-template-columns: 280px 1fr;
  }
  .bento-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-blog-featured,
  .card-caravaggio-fan,
  .card-audio-compact,
  .card-socials-grid,
  .card-mini-chat {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .app-container {
    padding: 12px 14px 28px 14px;
  }

  .hero-display {
    padding: 36px 4px 24px 4px;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 52px);
  }

  .main-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-column {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .bento-mosaic {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-status,
  .card-paris-live,
  .card-weather,
  .card-paris-map,
  .card-polaroid-stack,
  .card-audio-compact,
  .card-activity-rings,
  .card-folder-3d,
  .card-blog-featured,
  .card-socials-grid,
  .card-maps-guide,
  .card-caravaggio-fan,
  .card-mini-chat {
    grid-column: span 1;
  }

  .card-blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-poster-side {
    height: 160px;
  }

  .portrait-frame {
    height: 240px;
  }

  .drawer-movies-grid,
  #movie-grid {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }
}
