/* Palette inspirée de ton image */
:root {
  --bg-color: #050608;
  --bg-elevated: #0b0f16;
  --accent-blue: #0b75d1;
  --accent-blue-soft: rgba(11, 117, 209, 0.4);
  --text-color: #f5f5f5;
  --text-muted: #c8c8c8;
}

/* Reset simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

/* remplace ton body actuel par ceci (garde les couleurs) */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
}

/* pour que le contenu prenne l’espace restant entre header et footer */
main {
  flex: 1;
}
/* ---------- HEADER & NAV ---------- */

.tg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 8, 0.98),
    rgba(5, 6, 8, 0.92),
    rgba(5, 6, 8, 0.88)
  );
  border-bottom: 1px solid var(--accent-blue-soft);
  backdrop-filter: blur(10px);
}

.tg-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */

.tg-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.tg-logo-img {
  width: 40px;
  height: auto;
  /*border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(11, 117, 209, 0.8);*/
}

.tg-logo-text {
  font-family: "Bangers", system-ui, sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.4rem;
  color: var(--accent-blue);
  text-shadow:
    0 0 8px rgba(11, 117, 209, 0.8),
    0 0 18px rgba(11, 117, 209, 0.6);
}

/* Menu desktop */

.tg-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tg-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

/* Soulignement animé bleu */
.tg-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-blue);
  box-shadow: 0 0 12px rgba(11, 117, 209, 0.9);
  transition: width 0.2s ease;
}

.tg-nav a:hover {
  color: var(--accent-blue);
}

.tg-nav a:hover::after {
  width: 100%;
}

/* Lien du menu pour la page active */
.tg-nav a.active {
  color: var(--accent-blue);
}

.tg-nav a.active::after {
  width: 100%;
}

/* Bouton hamburger (caché sur grand écran) */

.tg-nav-toggle {
  display: none;
  padding: 0.35rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  cursor: pointer;
  outline: none;
}

.tg-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-color);
  margin: 4px 0;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .tg-header-inner {
    padding-inline: 1rem;
  }

  /* Afficher le hamburger */
  .tg-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Cacher le menu horizontal au départ */
  .tg-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(5, 6, 8, 0.98);
    border-bottom: 1px solid var(--accent-blue-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
  }

  .tg-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.75rem;
  }

  .tg-nav a {
    font-size: 0.95rem;
  }

  /* Quand le menu est ouvert */
  .tg-nav.is-open {
    max-height: 260px; /* assez pour 4 items */
  }
}

/* ---------- HERO / ACCUEIL ---------- */

.tg-hero {
  padding: 3.5rem 1.25rem 3rem;
  background:
    radial-gradient(circle at top left, rgba(11, 117, 209, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(11, 117, 209, 0.25), transparent 55%),
    var(--bg-color);
}

.tg-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.tg-hero-visual {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

.tg-hero-visual img {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(11, 117, 209, 0.8));
}

/* Texte */

.tg-hero-content {
  flex: 1 1 320px;
  max-width: 520px;
}

.tg-hero-content h1 {
  font-family: "Bangers", system-ui, sans-serif;
  font-size: clamp(2.1rem, 3vw + 1.2rem, 3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  text-shadow:
    0 0 12px rgba(11, 117, 209, 0.8),
    0 0 22px rgba(11, 117, 209, 0.6);
  margin-bottom: 1rem;
}

.tg-hero-content p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

/* Bouton */

.tg-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.9rem;

  background: linear-gradient(
    to right,
    var(--accent-blue),
    #19a0ff
  );
  color: #ffffff;
  box-shadow:
    0 0 14px rgba(11, 117, 209, 0.9),
    0 0 30px rgba(11, 117, 209, 0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.tg-hero-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 20px rgba(11, 117, 209, 1),
    0 0 40px rgba(11, 117, 209, 0.8);
  filter: brightness(1.05);
}

/* Responsive hero */

@media (max-width: 900px) {
  .tg-hero {
    padding-top: 2.5rem;
  }

  .tg-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .tg-hero-content {
    max-width: 100%;
  }

  .tg-hero-button {
    width: 100%;
    max-width: 260px;
  }
}

/* ---------- FOOTER ---------- */

.tg-footer {
  background: linear-gradient(
    to top,
    rgba(5, 6, 8, 0.98),
    rgba(5, 6, 8, 0.92)
  );
  border-top: 1px solid var(--accent-blue-soft);
}

.tg-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo gauche */

.tg-footer-left {
  display: flex;
  align-items: center;
}

.tg-footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(11, 117, 209, 0.8));
}

/* Texte centre */

.tg-footer-center {
  text-align: center;
  flex: 1;
}

.tg-footer-center p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Icônes droite */

.tg-footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tg-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(11, 117, 209, 0.1);
  border: 1px solid rgba(11, 117, 209, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.tg-social-link img {
  width: 50px;
  height: auto;
  object-fit: contain;
}

.tg-social-link:hover {
  background: var(--accent-blue);
  box-shadow: 0 0 16px rgba(11, 117, 209, 0.9);
  transform: translateY(-1px) scale(1.05);
}

/* Responsive footer */

@media (max-width: 700px) {
  .tg-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .tg-footer-right {
    justify-content: center;
  }
}

/* ---------- SECTION : SITE EN DÉVELOPPEMENT – SPLIT LAYOUT ---------- */

.tg-status {
  position: relative;
  overflow: hidden;
  background: #000000; /* fallback si la vidéo ne charge pas */
  padding: 3.5rem 1.5rem 3.75rem;
}

.tg-status-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* Colonne texte à gauche */

.tg-status-text {
  flex: 1 1 50%;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
}

/* barre bleue verticale */
.tg-status-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    var(--accent-blue),
    rgba(11, 117, 209, 0.2)
  );
  box-shadow: 0 0 14px rgba(11, 117, 209, 0.9);
}

.tg-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(11, 117, 209, 0.12);
  border: 1px solid rgba(11, 117, 209, 0.7);
  color: var(--accent-blue);
}

.tg-status-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.tg-status-text p {
  line-height: 1.7;
  font-size: 0.98rem;
  margin-bottom: 0.6rem;
}

/* bouton texte */

.tg-status-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 117, 209, 0.7);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: transparent;
  box-shadow: 0 0 12px rgba(11, 117, 209, 0.5);
  transition: background 0.15s ease, color 0.15s ease,
              transform 0.12s ease, box-shadow 0.12s ease;
}

.tg-status-button:hover {
  background: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 0 18px rgba(11, 117, 209, 0.9),
    0 0 34px rgba(11, 117, 209, 0.7);
}

/* Colonne image à droite */

.tg-status-image-wrap {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
}

.tg-status-image-frame {
  position: relative;
  width: min(420px, 90%);
  padding: 0.9rem;
  border-radius: 22px;
  background: #050608;
  border: 1px solid rgba(11, 117, 209, 0.8);
  box-shadow:
    0 0 30px rgba(11, 117, 209, 1),
    0 0 60px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

/* halo bleu discret derrière */
.tg-status-image-frame::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle, rgba(11, 117, 209, 0.25), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.tg-status-image-frame img {
  position: relative;
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .tg-status-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .tg-status-text {
    padding-left: 0;
  }

  .tg-status-text::before {
    display: none;
  }

  .tg-status-text h2 {
    font-size: 1.6rem;
  }

  .tg-status-button {
    width: 100%;
    max-width: 280px;
  }
}

/* Video de fond */
.tg-status-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.tg-status-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.22) saturate(1.2); /* assombrit pour que le texte reste lisible */
}

/* Overlay sombre + bleu au-dessus de la vidéo */
.tg-status::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(11, 117, 209, 0.3), transparent 60%),
    radial-gradient(circle at bottom right, rgba(11, 117, 209, 0.25), transparent 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
  z-index: 1;
}

/* Le contenu principal doit être au-dessus de la vidéo + overlay */
.tg-status-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* ---------- SECTION CHATBOT OLLAMA ---------- */

.tg-chat {
  padding: 3rem 1.5rem 3.5rem;
  background:
    radial-gradient(circle at top left, rgba(11, 117, 209, 0.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(11, 117, 209, 0.2), transparent 60%),
    var(--bg-elevated);
  border-top: 1px solid var(--accent-blue-soft);
}

.tg-chat-inner {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(5, 6, 8, 0.9);
  border-radius: 22px;
  border: 1px solid rgba(11, 117, 209, 0.7);
  box-shadow:
    0 0 25px rgba(11, 117, 209, 0.55),
    0 0 40px rgba(0, 0, 0, 0.95);
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tg-chat-header h2 {
  font-family: "Bangers", system-ui, sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  text-shadow:
    0 0 10px rgba(11, 117, 209, 0.8),
    0 0 20px rgba(11, 117, 209, 0.6);
  margin-bottom: 0.25rem;
}

.tg-chat-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Fenêtre de messages */

.tg-chat-window {
  background: #050608;
  border-radius: 14px;
  padding: 0.9rem;
  max-height: 360px;
  min-height: 180px;
  overflow-y: auto;
  border: 1px solid rgba(11, 117, 209, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Messages */

.tg-chat-message {
  display: flex;
}

.tg-chat-user {
  justify-content: flex-end;
}

.tg-chat-assistant {
  justify-content: flex-start;
}

.tg-chat-bubble {
  max-width: 80%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Couleurs bulles */

.tg-chat-user .tg-chat-bubble {
  background: linear-gradient(to right, var(--accent-blue), #19a0ff);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.tg-chat-assistant .tg-chat-bubble {
  background: #0b0f16;
  color: var(--text-muted);
  border: 1px solid rgba(11, 117, 209, 0.35);
  border-bottom-left-radius: 4px;
}

/* Zone d'input */

.tg-chat-input {
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.tg-chat-input textarea {
  flex: 1;
  resize: vertical;
  min-height: 44px;
  max-height: 120px;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #050608;
  color: var(--text-color);
  font-size: 0.95rem;
  font-family: inherit;
}

.tg-chat-input textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(11, 117, 209, 0.6);
}

.tg-chat-input button {
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(to right, var(--accent-blue), #19a0ff);
  color: #ffffff;
  box-shadow:
    0 0 12px rgba(11, 117, 209, 0.9),
    0 0 24px rgba(11, 117, 209, 0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.tg-chat-input button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 18px rgba(11, 117, 209, 1),
    0 0 34px rgba(11, 117, 209, 0.8);
  filter: brightness(1.05);
}

/* Texte d’aide */

.tg-chat-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Responsive */

@media (max-width: 700px) {
  .tg-chat {
    padding-inline: 1rem;
  }

  .tg-chat-inner {
    padding-inline: 1rem;
  }

  .tg-chat-bubble {
    max-width: 100%;
  }

  .tg-chat-input {
    flex-direction: column;
    align-items: stretch;
  }

  .tg-chat-input button {
    width: 100%;
  }
}