:root {
  --oto-red: #e53e3e;
  --oto-red-dark: #c53030;
  --oto-purple: #4a5568;
  --oto-purple-light: #718096;
  --oto-gray-light: #f7fafc;
  --oto-gray: #edf2f7;
  --oto-dark: #2d3748;
  --white: #ffffff;
  /* Couleurs de catégories */
  --cat-vision: #2b6cb0;   /* bleu */
  --cat-chat: #805ad5;     /* violet */
  --cat-voice: #d69e2e;    /* ambre */
  --cat-extract: #38a169;  /* vert */
  --max-width: 1200px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--oto-dark);
  background-color: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
/* État visuel désactivé pour les liens protégés (non authentifié) */
.card-link[aria-disabled="true"], a[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}

a[aria-disabled="true"]:hover, .card-link[aria-disabled="true"]:hover {
  text-decoration: none;
}

/* Tooltip générique basé sur data-tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2.2rem;
  background: var(--oto-dark);
  color: var(--white);
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(45, 55, 72, 0.18);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease-in-out, transform 0.12s ease-in-out;
  z-index: 1000;
}

[data-tooltip]::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.8rem;
  border: 6px solid transparent;
  border-top-color: var(--oto-dark);
  opacity: 0;
  transition: opacity 0.12s ease-in-out;
  z-index: 1000;
}

[aria-disabled="true"][data-tooltip]:hover::after,
[aria-disabled="true"][data-tooltip]:hover::before {
  opacity: 1;
}

body {
  background: linear-gradient(180deg, rgba(237, 242, 247, 0.6), rgba(255, 255, 255, 1) 35%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  padding: 8px;
}

.brand-tagline {
  font-weight: 600;
  color: var(--oto-dark);
  font-size: 0.95rem;
}

.brand-info {
  font-size: 0.85rem;
  color: var(--oto-purple-light);
}

/* Bouton déconnexion avec style 'eyebrow' (comme Portail Démos) */
.eyebrow-btn {
  display: inline-block;
  margin-top: 0.4rem;
  background: transparent;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.6rem;
  color: var(--oto-red);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.eyebrow-btn:hover {
  text-decoration: underline;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  color: var(--oto-purple);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: var(--oto-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr; /* texte + colonne logos */
  gap: 2rem;
  align-items: start;
}

.hero-text .badge {
  display: inline-block;
  background: rgba(229, 62, 62, 0.1);
  color: var(--oto-red);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  margin: 1.25rem 0;
  color: var(--oto-dark);
  line-height: 1.2;
}

.hero-text h1 span {
  display: block;
  color: var(--oto-purple);
  font-weight: 500;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.hero-text p {
  color: var(--oto-purple-light);
  max-width: 36rem;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--oto-red);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(229, 62, 62, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(229, 62, 62, 0.28);
}

.btn-secondary {
  background: var(--white);
  color: var(--oto-purple);
  border: 1px solid rgba(113, 128, 150, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(113, 128, 150, 0.12);
}

.hero-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(45, 55, 72, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-card h2 {
  font-size: 1.4rem;
  color: var(--oto-dark);
  margin-bottom: 1rem;
}

.hero-card ul {
  list-style: none;
  color: var(--oto-purple);
  display: grid;
  gap: 0.65rem;
}

.hero-card li strong {
  color: var(--oto-dark);
}

.hero-card .note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--oto-purple-light);
}

.highlights {
  padding: 2.5rem 0 1rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.highlights article {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.6rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 24px rgba(113, 128, 150, 0.12);
}

.highlights h3 {
  color: var(--oto-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.highlights p {
  color: var(--oto-purple-light);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: 0.8rem;
  color: var(--oto-red);
  font-weight: 600;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--oto-dark);
  margin-top: 0.5rem;
}

.section-header p {
  color: var(--oto-purple-light);
  max-width: 32rem;
  margin: 0.75rem auto 0;
}

/* Sections catégorisées de démos */
.demo-section {
  background: linear-gradient(180deg, var(--tint, rgba(226, 232, 240, 0.12)), rgba(255, 255, 255, 0.95) 75%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1.4rem;
  padding: 1.25rem 1.25rem 1rem;
  margin: 1.5rem 0;
}

.demo-section .section-eyebrow {
  display: inline-block;
  margin: 0 0 1rem 0;
  letter-spacing: 0.22rem;
}

/* Accents par catégorie (variables locales) */
.category-vision { --accent: var(--cat-vision); --tint: rgba(43, 108, 176, 0.08); }
.category-chat   { --accent: var(--cat-chat);   --tint: rgba(128, 90, 213, 0.08); }
.category-voice  { --accent: var(--cat-voice);  --tint: rgba(214, 158, 46, 0.10); }
.category-extract{ --accent: var(--cat-extract);--tint: rgba(56, 161, 105, 0.08); }

.category-vision .section-eyebrow,
.category-chat .section-eyebrow,
.category-voice .section-eyebrow,
.category-extract .section-eyebrow {
  color: var(--accent);
}

.category-vision .card-link { background: var(--accent); }
.category-chat .card-link   { background: var(--accent); }
.category-voice .card-link  { background: var(--accent); }
.category-extract .card-link{ background: var(--accent); }

.category-vision .card-link:hover { box-shadow: 0 12px 28px rgba(43, 108, 176, 0.3); }
.category-chat .card-link:hover   { box-shadow: 0 12px 28px rgba(128, 90, 213, 0.3); }
.category-voice .card-link:hover  { box-shadow: 0 12px 28px rgba(214, 158, 46, 0.35); }
.category-extract .card-link:hover{ box-shadow: 0 12px 28px rgba(56, 161, 105, 0.28); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1.5rem;
}

.demo-card {
  background: var(--white);
  border-radius: 1.4rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(45, 55, 72, 0.1);
  transition: all 0.3s ease-in-out;
}

.demo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(45, 55, 72, 0.18);
}

.card-body {
  padding: 2rem 2rem 1.5rem;
  display: grid;
  gap: 1rem;
  flex: 1 1 auto;
}

.card-icon {
  font-size: 2.4rem;
}

.card-body h3 {
  color: var(--oto-dark);
  font-size: 1.35rem;
}

.card-body p {
  color: var(--oto-purple-light);
  font-size: 0.95rem;
}

.card-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--oto-purple);
}

.card-list li::before {
  content: '•';
  color: var(--oto-red);
  margin-right: 0.5rem;
}

.card-link {
  margin: 0 2rem 2rem;
  margin-top: auto;
  border-radius: 0.85rem;
  padding: 0.85rem;
  text-align: center;
  font-weight: 600;
  color: var(--white);
  background: var(--oto-red);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(229, 62, 62, 0.3);
}

.practical {
  padding: 4rem 0 5rem;
}

.practical-grid {
  background: var(--white);
  border-radius: 1.6rem;
  padding: 2.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  box-shadow: 0 18px 38px rgba(113, 128, 150, 0.18);
}

.tip-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  color: var(--oto-purple);
}

.tip-list li::before {
  content: '➤';
  color: var(--oto-purple);
  margin-right: 0.6rem;
}

.contact-card {
  background: linear-gradient(160deg, rgba(74, 85, 104, 0.92), rgba(45, 55, 72, 0.94));
  color: var(--white);
  border-radius: 1.4rem;
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-card h3 {
  font-size: 1.2rem;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.85);
}

.contact-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.contact-card strong {
  color: var(--white);
}


.site-footer {
  margin-top: auto;
  background: var(--white);
  color: var(--oto-dark);
  padding: 0.13rem 0;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  align-items: center;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--oto-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--oto-purple-light);
  font-weight: 500;
}

.footer-contact p a {
  text-decoration: underline;
  color: var(--oto-red);
}

.footer-nav {
  text-align: right;
}

.copyright {
  color: var(--oto-red);
  font-weight: 500;
}

.footer-nav .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .header-content {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
  }

  .brand {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

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

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .card-link {
    margin: 0 1.5rem 1.5rem;
    margin-top: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }

  .demo-card {
    border-radius: 1rem;
  }

  .card-body h3 {
    font-size: 1.2rem;
  }

  .card-body p {
    font-size: 0.9rem;
  }
}

.hero-partners {
  justify-self: end;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0 0 0.5rem;
}

.hero-partners-eyebrow {
  color: var(--oto-purple-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hero-partners-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-partners-logos img {
  height: 40px;
  max-width: 240px;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.02);
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-partners-logos img:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.hero-partners-text {
  color: var(--oto-dark);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr; /* stack */
  }
  .hero-partners {
    justify-self: start;
    margin-top: 1rem;
  }
  .hero-partners-logos img {
    height: 40px;
    max-width: 240px;
  }
}

.nav-partners {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-partners img {
  height: 40px; /* double de 20px */
  max-width: 240px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.nav-partners img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
.nav-partners {
  display: none; /* simplifier en mobile */
  }
}

/* Modal Login */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 55, 72, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay[data-visible="true"] {
  display: flex;
}

.modal-card {
  background: var(--white);
  color: var(--oto-dark);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  box-shadow: 0 22px 60px rgba(45, 55, 72, 0.18);
  width: min(92%, 420px);
  padding: 1.6rem;
}

.modal-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--oto-dark);
}

.modal-desc {
  color: var(--oto-purple-light);
  margin-bottom: 1rem;
}

.modal-form {
  display: grid;
  gap: 0.9rem;
}

.input-group {
  display: grid;
  gap: 0.35rem;
}

.input-group span {
  font-weight: 600;
  color: var(--oto-purple);
  font-size: 0.9rem;
}

.input-group input {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  outline: none;
  color: var(--oto-dark);
}

.input-group input:focus {
  border-color: var(--oto-red);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-error {
  color: var(--oto-red);
  margin-top: 0.25rem;
}
