/* Styles de base */
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 2rem; }
.card { border: 1px solid #ddd; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card.error { border-color: #fca5a5; background-color: #fee2e2; color: #991b1b; }
.card.success { border-color: #6ee7b7; background-color: #d1fae5; color: #047857; }
table { border-collapse: collapse; width: 100%; margin-top: .5rem; }
th, td { border: 1px solid #e5e7eb; padding: .5rem .6rem; vertical-align: top; }
th { background: #f8fafc; text-align: left; }
details { margin-top: .5rem; }

/* Styles des boutons et onglets */
.tabs-container { background: #f8fafc; border-radius: 12px; border: 1px solid #e5e7eb; padding: 1rem; }
.tabs-buttons { display: flex; gap: 0.5rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1rem; }
.tab-button {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #4b5563;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}
.tab-button:hover {
    color: #111;
    border-bottom-color: #6b7280;
}
.tab-button.active {
    color: #111;
    border-bottom-color: #111;
    font-weight: 600;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Style du bouton d'upload */
button{ padding:.5rem .8rem; border-radius:10px; border:1px solid #ccc; background:#111; color:#fff; cursor:pointer;}
button:hover{opacity:.9;}


h1, h2, h3, h4, h5, h6 {
	font-family: "Roboto", sans-serif;
    color: #31968e;
}

.header2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-family: sans-serif;
}

/* Menu horizontal */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: #007acc;
}

/* Zone info à droite */
.info {
    font-size: 0.85rem;
    color: #555;
    text-align: right;
}

.info p {
    margin: 2px 0;
}

.info strong {
    color: #000;
}

.zerrenda, .zerrendattipi{
	list-style: none;
	padding:0;
	}
.zerrendattipi{
	font-size:0.9em;
	}
	
ul.zerrenda li:nth-child(odd), ul.zerrendattipi li:nth-child(odd) {
  background: #f8fafc;
}
ul.zerrenda li:nth-child(even), ul.zerrendattipi li:nth-child(even) {
  background-color: lightyellow;
}



/** Pop-up **/
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
}

.popup:target {
  display: block;
}

.popup-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}

.popup-content {
  position: relative;
  background: #fff;
  max-width: 90vw;
  max-height: 90vh;
  margin: 5% auto;
  padding: 20px;
  z-index: 10;
  overflow-y: auto;
  box-sizing: border-box;
}
.popup-close {
  float: right;
  text-decoration: none;
  font-size: 24px;
  color: #333;
}

.popup-table {
  border-collapse: collapse;
  width: 100%;
}

.popup-table th, .popup-table td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: left;
}

.raw-record {
  background: #f8f8f8;
  border: 1px solid #ccc;
  padding: 10px;
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap; /* retour à la ligne auto si très long */
  word-break: break-all;
  margin-top: 1em;
}
.tableinput {
	margin:1em;
}
.tableinput input {
	font-size:1.3em;
	padding:0.2em;
	border:0;
	background:lightyellow;
}

a {
    display: inline-block;      /* Pour que le padding fonctionne */
    padding: 6px 12px;          /* Espacement interne */
    border: 1px solid #ccc;     /* Bordure légère */
    border-radius: 4px;         /* Coins arrondis */
    background-color: #f9f9f9;  /* Fond clair */
    color: #333;                /* Couleur du texte */
    text-decoration: none;      /* Supprime le soulignement */
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s; /* Animation légère */
}

a:hover {
    background-color: #e6e6e6;  /* Fond légèrement plus foncé au survol */
    color: #000;
}

.audit-table code{
	font-weight:800;
	font-size:1.1em;
}

.audit-table ul{
	list-style-type: "- ";
	padding:0;
	margin:0;
}
.audit-table ul code{
	font-size:1em;
}
.gabe {
	padding:0;
	margin:0;
	font-size:0.9em;
	color:#888;
}
.ttiki {
	padding:0;
	margin:0;
	font-size:0.8em;
	color:#888;
}
.ohar {
	padding:0;
	margin:0;
	font-size:0.9em;
	color:#888;
}

.ezda {color:#888;font-size:0.9em;background-color:#f8fafc;}