/* ✅ Components.css : Boutons, formulaires, cartes réutilisables */

.tile {
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  padding:1rem;
  margin-bottom:1rem;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
}



.btn-primary {
    display: inline-block;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
}
.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.template-list {
    list-style-type: none;
    padding: 0;
}

.template-list li {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.template-list h3 {
    margin-top: 0;
}

.template-list .btn {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.template-list .btn:hover {
    background-color: #0055A4;
}

.historique-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.historique-table th, .historique-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.historique-table th {
    background-color: #003366;
    color: white;
}

.historique-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.historique-table tr:hover {
    background-color: #ddd;
}
.btn-ai {
    display: inline-block;
    padding: 8px 12px;
    background-color: #003366;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
    font-weight: bold;
}

.btn-ai:hover {
    background-color: #0055A4;
}
.api-matrix {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.api-matrix th, .api-matrix td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.api-matrix th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.api-matrix td.green {
    background-color: #d4edda;
    color: #155724;
}

.api-matrix td.red {
    background-color: #f8d7da;
    color: #721c24;
}
.btn-red {
  background-color: #dc3545;
  color: #fff !important;   /* 🔥 force le blanc */
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-green {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-red:hover, .btn-green:hover {
  opacity: 0.9;
}
.text-success {
  color: #28a745 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.btn-outline-light {
  color: #222;
  border: 1px solid #ccc;
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}

.btn-outline-light:hover {
  color: #fff;
  background-color: #000;
  border-color: #000;
}

.btn-outline-light:active {
  background-color: #000;
  border-color: #111;
}

/* AInvestor pedagogical information bubble (mouse, keyboard and touch). */
.ainvestor-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: .35rem;
  vertical-align: middle;
}

.ainvestor-info-trigger {
  display: inline-grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  padding: 0;
  border: 1px solid #0787ad;
  border-radius: 50%;
  background: #e9f9ff;
  color: #056d91;
  font: 800 .76rem/1 Arial, sans-serif;
  cursor: help;
}

.ainvestor-info-trigger:hover,
.ainvestor-info-trigger:focus-visible {
  background: #087cff;
  border-color: #087cff;
  color: #fff;
  outline: 2px solid rgba(8, 124, 255, .28);
  outline-offset: 2px;
}

.ainvestor-info-text {
  position: absolute;
  z-index: 1400;
  left: 50%;
  bottom: calc(100% + .55rem);
  width: min(320px, calc(100vw - 2rem));
  padding: .7rem .8rem;
  border: 1px solid #65cfee;
  border-radius: 10px;
  background: #0d1b2e;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  font: 500 .83rem/1.4 Arial, sans-serif;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, .25rem);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.ainvestor-info:hover .ainvestor-info-text,
.ainvestor-info:focus-within .ainvestor-info-text {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .ainvestor-info-text {
    left: auto;
    right: 0;
    transform: translateY(.25rem);
  }

  .ainvestor-info:hover .ainvestor-info-text,
  .ainvestor-info:focus-within .ainvestor-info-text {
    transform: translateY(0);
  }
}
