/* --- Lema HUD Theme for Reveal.js & Talk-Control --- */

body[data-theme='lema'] {
  /* Overrides Reveal.js Template (exposer.scss) */
  --r-background-color: #0b0f1a; /* Fond bleu nuit très profond */
  --r-main-color: #f8fafc;
  --r-heading-color: #ffffff;
  --r-link-color: #a855f7; /* Violet Gemma */
  --r-link-color-hover: #c084fc;
  --r-selection-background-color: rgba(168, 85, 247, 0.3);
  --accent-color: #2563eb; /* Bleu Roi (plus lisible sur blanc que le cyan) */
  
  /* Overrides Talk-Control Custom Properties (talk-control-custom-properties.scss) */
  --tc-primary-color: #a855f7;   /* Violet IA */
  --tc-secondary-color: #22c55e; /* Vert Local / Success */
  --tc-bg-color: var(--r-background-color);
  --tc-text-color: var(--r-main-color);
  --tc-heading-color: var(--accent-color);
  --tc-multiple-col-heading-color:var(--accent-color);
  --tc-multiple-col-color:var(--r-main-color);
  --tc-table-bg: rgba(168, 85, 247, 0.25);
  --tc-transition-color: var(--accent-color);
  
  /* Layout & Design System */
  --tc-border-radius: 12px;
  --tc-border-color: rgba(255, 255, 255, 0.1);
  --r-heading-text-transform: none;
  --r-heading-font: 'Fira Code', monospace;
  --r-main-font: 'Inter', sans-serif;

    /* Icons */
  --tc-icon-color: white;

  /* Code */
  --tc-code-font-size: var(--tc-big-code-font-size);
  --tc-code-line-height: var(--tc-big-code-line-height);
}

/* Style des titres avec effet "Glow" discret */
.reveal h1, .reveal h2, .reveal h3 {
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  letter-spacing: -1px;
}

/* Mise en avant du code (essentiel pour ton talk) */
.reveal pre {
  border: 1px solid var(--tc-border-color);
  border-radius: var(--tc-border-radius);
  background: rgba(15, 23, 42, 0.6) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

/* Style spécifique pour Talk-Control Layouts (Grid/Side-by-side) */
.tc-layout-side-by-side {
  gap: 40px;
  align-items: center;
}

/* L'élément "HUD" de Lema (intégration visuelle) */
.lema-hud-container {
  border-left: 3px solid var(--tc-primary-color);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.1) 0%, transparent 100%);
  padding: 20px;
  margin: 20px 0;
  font-family: var(--r-heading-font);
}

/* Scanline effect (optionnel, pour le look "Old School Terminal") */
.reveal::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.3;
}

/* Animation pour les transitions de slides via Lema */
.reveal .slides section.present {
  animation: fadeInBlur 0.6s ease-out;
}

.reveal .slides section .grid-vision{
  margin-top:-250px;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-areas: 'camera lema'
        'camera chat'; 
  grid-template-columns: 400px 1fr;
  grid-template-rows: 1fr 1fr;
}


.reveal .slides section {
    
    code.hljs.has-highlights table tr:not(.highlight-line){
        opacity: 0.1;
    }

}

@keyframes fadeInBlur {
  0% { filter: blur(10px); opacity: 0; transform: scale(0.95); }
  100% { filter: blur(0); opacity: 1; transform: scale(1); }
}

/* Toast notification */
.tc-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: #1e293b;
    color: #f8fafc;
    border-left: 4px solid #22c55e;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-size: 1rem;
    font-family: sans-serif;
    animation: tc-toast-in 0.3s ease forwards;
    pointer-events: none;
}

.tc-toast.tc-toast-out {
    animation: tc-toast-out 0.4s ease forwards;
}

@keyframes tc-toast-in {
    from { transform: translateY(2rem); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes tc-toast-out {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(2rem); opacity: 0; }
}